public interface PluginDeploymentScannerMBean
| Modifier and Type | Field and Description |
|---|---|
static ObjectName |
OBJECT_NAME
The name this service will be registered as.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgentPluginDir()
Gets the directory name where the agent plugin jars are located.
|
PluginMetadataManager |
getPluginMetadataManager()
Returns the object that is managing the plugin metadata and types built from that metadata.
|
String |
getScanPeriod()
Gets the amount of time (in milliseconds) between scans.
|
String |
getServerPluginDir()
Gets the directory name where the server plugin jars are located.
|
String |
getUserPluginDir()
Gets the directory name where the user can place agent or server plugin jars.
|
void |
scan()
This will scan the database for new/updated plugins and if it finds
any, will write the content as plugin files in the file system.
|
void |
scanAndRegister()
This will scan the database for new/updated plugins and if it finds
any, will write the content as plugin files in the file system.
|
void |
setAgentPluginDir(String name)
Sets the directory where the agent plugin jars are located.
|
void |
setScanPeriod(String ms)
Sets the amount of time (in milliseconds) between scans.
|
void |
setServerPluginDir(String name)
Sets the directory where the server plugin jars are located.
|
void |
setUserPluginDir(String name)
Sets the directory where the user can place agent or server plugin jars.
|
void |
start() |
void |
startDeployment()
This is called separately from the start/stop lifecycle methods.
|
void |
stop() |
static final ObjectName OBJECT_NAME
void stop()
void startDeployment()
void scan()
throws Exception
ExceptionscanAndRegister()void scanAndRegister()
throws Exception
Exceptionvoid setScanPeriod(String ms)
ms - time in millis between each scansString getScanPeriod()
void setUserPluginDir(String name)
name - the name of the plugins dir where the user can copy pluginsString getUserPluginDir()
null, do not look for any user plugins.void setServerPluginDir(String name)
name - the name of the server plugins dirString getServerPluginDir()
void setAgentPluginDir(String name)
name - the name of the agent plugins dirString getAgentPluginDir()
PluginMetadataManager getPluginMetadataManager()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.