|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.PluginContainerConfiguration
public class PluginContainerConfiguration
Configuration properties for the plugin container and all its internal managers.
| Constructor Summary | |
|---|---|
PluginContainerConfiguration()
|
|
| Method Summary | |
|---|---|
long |
getAvailabilityScanInitialDelay()
Returns the length of time, in seconds, before resource availability scans are started. |
long |
getAvailabilityScanPeriod()
Returns the length of time, in seconds, between each availability scan. |
long |
getConfigurationDiscoveryInitialDelay()
|
long |
getConfigurationDiscoveryPeriod()
|
String |
getContainerName()
This is the name of the plugin container, as assigned to it by the software component that is embedding the plugin container. |
long |
getContentDiscoveryInitialDelay()
Returns the length of time, in seconds, before auto-discovery of content first begins. |
long |
getContentDiscoveryPeriod()
Returns the length of time, in seconds, between each auto-discovery of content. |
int |
getContentDiscoveryThreadPoolSize()
This defines the number of threads within the content discovery thread pool. |
File |
getDataDirectory()
Returns the directory where the plugins can squirrel away files with data they want to persist. |
static String |
getDefaultClassLoaderFilter()
Returns the default filter for class loading that is used to prevent leaking of agent / PC classes to plugins. |
List<String> |
getDisabledPlugins()
If any plugins are to be disabled (i.e. |
long |
getDriftDetectionInitialDelay()
Returns the length of time, in seconds, before drift detection first begins. |
long |
getDriftDetectionPeriod()
Returns the length of time, in seconds, between each drift detection scan. |
int |
getEventReportMaxPerSource()
|
int |
getEventReportMaxTotal()
|
long |
getEventSenderInitialDelay()
|
long |
getEventSenderPeriod()
|
long |
getMeasurementCollectionInitialDelay()
Returns the length of time, in seconds, before measurements begin getting collected. |
int |
getMeasurementCollectionThreadPoolSize()
When measurements are scheduled for collection, the collection will be performed by threads from a thread pool. |
long |
getOperationInvocationTimeout()
When an operation invocation is made, this is the amount of time, in seconds, that it has to complete before it is aborted. |
int |
getOperationInvokerThreadPoolSize()
When an operation is to be invoked, the execution of the operation will be performed by threads from a thread pool. |
PluginContainerDeployment |
getPluginContainerDeployment()
Indicates where the plugin container is deployed. |
File |
getPluginDirectory()
Returns the directory where all plugin jars can be found. |
PluginFinder |
getPluginFinder()
Returns the instance of PluginFinder for the container to use to locate all plugins to be loaded. |
int |
getResourceFactoryCoreThreadPoolSize()
Returns the base number of threads in the resource factory task thread pool, effectively defining the number of concurrent resource factory tasks that may take place at the same time. |
int |
getResourceFactoryKeepAliveTime()
Returns the resource factory thread pool keep alive time in milliseconds. |
int |
getResourceFactoryMaxThreadPoolSize()
Returns the maximum number of threads in the resource factory task thread pool. |
String |
getRootPluginClassLoaderRegex()
Returns the regex that defines what classes the plugin container can provide to its plugins from its own classloader and its parents. |
long |
getServerDiscoveryInitialDelay()
Returns the length of time, in seconds, before auto-discovery of platforms/servers first begins. |
long |
getServerDiscoveryPeriod()
Returns the length of time, in seconds, between each auto-discovery of platforms/servers. |
ServerServices |
getServerServices()
Returns the object that contains all the remote POJOs that can be used to send data to the remote server. |
long |
getServiceDiscoveryInitialDelay()
Returns the length of time, in seconds, before auto-discovery of services first begins. |
long |
getServiceDiscoveryPeriod()
Returns the length of time, in seconds, between each auto-discovery of services. |
File |
getTemporaryDirectory()
Returns the directory where the plugins can squirrel away temporary files. |
boolean |
isCreateResourceClassloaders()
Returns whether or not the plugin container should create individual classloaders for resources that need that kind of isolation. |
boolean |
isInsideAgent()
Returns whether or not the plugin container is running inside an agent, which means it is running external to any managed product. |
void |
setAvailabilityScanInitialDelay(long period)
Sets the length of time, in seconds, before resource availability scans first begin. |
void |
setAvailabilityScanPeriod(long period)
Sets the length of time, in seconds, between each availability scan. |
void |
setConfigurationDiscoveryInitialDelay(long delay)
|
void |
setConfigurationDiscoveryPeriod(long period)
|
void |
setContainerName(String name)
Defines a name that the container can be known as. |
void |
setContentDiscoveryInitialDelay(long delay)
Sets the length of time, in seconds, before auto-discovery of content first begins. |
void |
setContentDiscoveryPeriod(long period)
Sets the length of time, in seconds, between each auto-discovery of content. |
void |
setContentDiscoveryThreadPoolSize(int size)
Returns the number of threads to use in the content discovery thread pool. |
void |
setCreateResourceClassloaders(boolean flag)
Sets the flag to indicate if the plugin container should create individual resource classloaders. |
void |
setDataDirectory(File dataDir)
Sets the directory where the plugins can squirrel away files with data they want to persist. |
void |
setDisabledPlugins(List<String> disabledPlugins)
If one or more plugins are not to be loaded by the plugin container, the given list should be the names of the plugins to be disabled. |
void |
setDriftDetectionInitialDelay(long delay)
Sets the length of time, in seconds, before drift detection first begins. |
void |
setDriftDetectionPeriod(long period)
Sets the length of time, in seconds, between each drift detection scan. |
void |
setEventReportMaxPerSource(int value)
|
void |
setEventReportMaxTotal(int value)
|
void |
setEventSenderInitialDelay(long delay)
|
void |
setEventSenderPeriod(long period)
|
void |
setInsideAgent(boolean flag)
Sets the flag to indicate if the plugin container is inside an external agent or if its embedded in a managed product. |
void |
setMeasurementCollectionInitialDelay(long period)
Sets the length of time, in seconds, before measurements begin getting collected. |
void |
setMeasurementCollectionThreadPoolSize(int size)
Defines the number of threads that can concurrently collection measurements. |
void |
setOperationInvocationTimeout(long timeout)
Sets the default timeout, specified in seconds. |
void |
setOperationInvokerThreadPoolSize(int size)
Defines the number of threads that can concurrent execute operations. |
void |
setPluginDirectory(File pluginDir)
Sets the location where the plugin jars can be found. |
void |
setPluginFinder(PluginFinder finder)
Sets the PluginFinder instance used by the container. |
void |
setResourceFactoryCoreThreadPoolSize(int size)
Defines the base number of threads that can concurrently execute resource factory tasks. |
void |
setResourceFactoryKeepAliveTime(int time)
Sets the resource factory thread pool keep alive time in milliseconds. |
void |
setResourceFactoryMaxThreadPoolSize(int size)
Defines the maximum number of threads that can concurrently execute resource factory tasks. |
void |
setRootPluginClassLoaderRegex(String regex)
Sets the regex that defines what classes the plugin container should hide from its plugins. |
void |
setServerDiscoveryInitialDelay(long period)
Sets the length of time, in seconds, before auto-discovery of platforms/servers first begins. |
void |
setServerDiscoveryPeriod(long period)
Sets the length of time, in seconds, between each auto-discovery of platforms/servers. |
void |
setServerServices(ServerServices serverServices)
If the plugin container is contained in an embeddor that has access to a remote server, that embeddor will call this method in order to provide the plugin container with all the remote POJO interfaces exposed by that server. |
void |
setServiceDiscoveryInitialDelay(long period)
Sets the length of time, in seconds, before auto-discovery of services first begins. |
void |
setServiceDiscoveryPeriod(long period)
Sets the length of time, in seconds, between each auto-discovery of services. |
void |
setTemporaryDirectory(File tmpDir)
Sets the directory where the plugins can squirrel away temporary files. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long SERVER_DISCOVERY_INITIAL_DELAY_DEFAULT
public static final long SERVER_DISCOVERY_PERIOD_DEFAULT
public static final long SERVICE_DISCOVERY_INITIAL_DELAY_DEFAULT
public static final long SERVICE_DISCOVERY_PERIOD_DEFAULT
public static final int RESOURCE_FACTORY_CORE_POOL_SIZE_DEFAULT
public static final int RESOURCE_FACTORY_MAX_POOL_SIZE_DEFAULT
public static final int RESOURCE_FACTORY_KEEP_ALIVE_DEFAULT
public static final long AVAILABILITY_SCAN_INITIAL_DELAY_DEFAULT
public static final long AVAILABILITY_SCAN_PERIOD_DEFAULT
public static final long MEASUREMENT_COLLECTION_INITIAL_DELAY_DEFAULT
public static final int MEASUREMENT_COLLECTION_THREADCOUNT_DEFAULT
public static final long DRIFT_DETECTION_INITIAL_DELAY_DEFAULT
public static final long DRIFT_DETECTION_PERIOD_DEFAULT
public static final long CONTENT_DISCOVERY_INITIAL_DELAY_DEFAULT
public static final long CONTENT_DISCOVERY_PERIOD_DEFAULT
public static final int CONTENT_DISCOVERY_THREADCOUNT_DEFAULT
public static final long CONFIGURATION_DISCOVERY_INITIAL_DELAY_DEFAULT
public static final long CONFIGURATION_DISCOVERY_PERIOD_DEFAULT
public static final int OPERATION_INVOKER_THREADCOUNT_DEFAULT
public static final long OPERATION_INVOCATION_TIMEOUT_DEFAULT
public static final long EVENT_SENDER_INITIAL_DELAY_DEFAULT
public static final long EVENT_SENDER_PERIOD_DEFAULT
public static final int EVENT_REPORT_MAX_PER_SOURCE_DEFAULT
public static final int EVENT_REPORT_MAX_TOTAL_DEFAULT
| Constructor Detail |
|---|
public PluginContainerConfiguration()
| Method Detail |
|---|
public File getPluginDirectory()
public void setPluginDirectory(File pluginDir)
pluginDir - plugin jar locationpublic File getDataDirectory()
public void setDataDirectory(File dataDir)
dataDir - data locationpublic File getTemporaryDirectory()
public void setTemporaryDirectory(File tmpDir)
tmpDir - temporary directory locationpublic List<String> getDisabledPlugins()
public void setDisabledPlugins(List<String> disabledPlugins)
disabledPlugins - public String getRootPluginClassLoaderRegex()
null, any classes
found in the plugin container's classloader (and its parent classloaders) that do
NOT match this regex will be hidden from the plugins. If null, there
are no hidden classes and any class the plugin container's classloader has is visible
to all plugins.
null)RootPluginClassLoaderpublic void setRootPluginClassLoaderRegex(String regex)
regex - regular expressionRootPluginClassLoaderpublic boolean isCreateResourceClassloaders()
isInsideAgent() flag
because usually it is only when running inside an agent do you need to create these classloaders.
However, this flag can be set independently of that is-inside-agent flag to support tests.
true if the container should create individual classloaders for resources that need them;
false if only plugin classloaders are needed, thus assuming the root classloader has all
connection classes for any and all managed resources that need to be monitored.public void setCreateResourceClassloaders(boolean flag)
isCreateResourceClassloaders() for more details of what this flag means.
flag - public long getAvailabilityScanInitialDelay()
public void setAvailabilityScanInitialDelay(long period)
period - public long getAvailabilityScanPeriod()
public void setAvailabilityScanPeriod(long period)
period - number of seconds between each availability scanpublic long getMeasurementCollectionInitialDelay()
public void setMeasurementCollectionInitialDelay(long period)
period - public long getServerDiscoveryInitialDelay()
public void setServerDiscoveryInitialDelay(long period)
period - public long getServerDiscoveryPeriod()
If this value was never setServerDiscoveryPeriod(long), the default will be
SERVER_DISCOVERY_PERIOD_DEFAULT.
public void setServerDiscoveryPeriod(long period)
period seconds.
period - number of seconds between each platform/server auto-discovery runpublic long getServiceDiscoveryInitialDelay()
public void setServiceDiscoveryInitialDelay(long period)
period - public long getServiceDiscoveryPeriod()
If this value was never setServiceDiscoveryPeriod(long), the default will be
SERVICE_DISCOVERY_PERIOD_DEFAULT.
public void setServiceDiscoveryPeriod(long period)
period seconds.
period - number of seconds between each service auto-discovery runpublic PluginFinder getPluginFinder()
PluginFinder for the container to use to locate all plugins to be loaded.
PluginFinder instance.public void setPluginFinder(PluginFinder finder)
PluginFinder instance used by the container.
finder - public int getMeasurementCollectionThreadPoolSize()
public void setMeasurementCollectionThreadPoolSize(int size)
size - the new size of the thread poolpublic long getDriftDetectionInitialDelay()
public void setDriftDetectionInitialDelay(long delay)
delay - time in seconds before first drift detectionpublic long getDriftDetectionPeriod()
setDriftDetectionPeriod(long), the default will be DRIFT_DETECTION_PERIOD_DEFAULT.
public void setDriftDetectionPeriod(long period)
period seconds.
period - time in seconds between drift detection scanspublic long getContentDiscoveryInitialDelay()
public void setContentDiscoveryInitialDelay(long delay)
delay - time in seconds before first auto-discoverypublic long getContentDiscoveryPeriod()
setContentDiscoveryPeriod(long), the default will be CONTENT_DISCOVERY_PERIOD_DEFAULT.
public void setContentDiscoveryPeriod(long period)
period seconds.
period - time in seconds between auto-discoveriespublic int getContentDiscoveryThreadPoolSize()
setContentDiscoveryThreadPoolSize(int), the default will be
CONTENT_DISCOVERY_THREADCOUNT_DEFAULT.
public void setContentDiscoveryThreadPoolSize(int size)
size - number of threadspublic long getConfigurationDiscoveryInitialDelay()
public void setConfigurationDiscoveryInitialDelay(long delay)
public long getConfigurationDiscoveryPeriod()
public void setConfigurationDiscoveryPeriod(long period)
public int getOperationInvokerThreadPoolSize()
public void setOperationInvokerThreadPoolSize(int size)
size - the new size of the thread poolpublic long getOperationInvocationTimeout()
public void setOperationInvocationTimeout(long timeout)
timeout - public long getEventSenderInitialDelay()
public void setEventSenderInitialDelay(long delay)
public long getEventSenderPeriod()
public void setEventSenderPeriod(long period)
public int getEventReportMaxPerSource()
public void setEventReportMaxPerSource(int value)
public int getEventReportMaxTotal()
public void setEventReportMaxTotal(int value)
public void setResourceFactoryCoreThreadPoolSize(int size)
size - new size of the thread poolpublic int getResourceFactoryCoreThreadPoolSize()
public void setResourceFactoryMaxThreadPoolSize(int size)
size - new maximum sizepublic int getResourceFactoryMaxThreadPoolSize()
public void setResourceFactoryKeepAliveTime(int time)
time - in millisecondspublic int getResourceFactoryKeepAliveTime()
public String getContainerName()
null will be returned.
null if the name
is not explicitly configured and it cannot be determined at runtime)public void setContainerName(String name)
name - the plugin container's namepublic ServerServices getServerServices()
null, the plugin container is detached from any server and must operate independently.
null)public void setServerServices(ServerServices serverServices)
null is passed in, the plugin container is be detached from any server.
serverServices - the server-exposed interfaces that can be remotely accessed by the plugin container (may be
null)public boolean isInsideAgent()
getPluginContainerDeployment() instead, this method might get deprecated later.
true if the container is deployed inside an external agent process; false if
the plugin container is embedded directly in a managed productpublic PluginContainerDeployment getPluginContainerDeployment()
isInsideAgent() except
it returns the plugin API enum, rather than a boolean.
public void setInsideAgent(boolean flag)
flag - public String toString()
toString in class ObjectObject.toString()public static String getDefaultClassLoaderFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||