public class PluginDeploymentScanner extends Object implements PluginDeploymentScannerMBean
getScanPeriod() for example.OBJECT_NAME| Constructor and Description |
|---|
PluginDeploymentScanner() |
| 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 dir)
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 dir)
Sets the directory where the server plugin jars are located.
|
void |
setUserPluginDir(String dir)
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() |
public String getScanPeriod()
PluginDeploymentScannerMBeangetScanPeriod in interface PluginDeploymentScannerMBeanpublic void setScanPeriod(String ms)
PluginDeploymentScannerMBeansetScanPeriod in interface PluginDeploymentScannerMBeanms - time in millis between each scanspublic String getUserPluginDir()
PluginDeploymentScannerMBeannull, do not look for any user plugins.getUserPluginDir in interface PluginDeploymentScannerMBeanpublic void setUserPluginDir(String dir)
PluginDeploymentScannerMBeansetUserPluginDir in interface PluginDeploymentScannerMBeandir - the name of the plugins dir where the user can copy pluginspublic String getServerPluginDir()
PluginDeploymentScannerMBeangetServerPluginDir in interface PluginDeploymentScannerMBeanpublic void setServerPluginDir(String dir)
PluginDeploymentScannerMBeansetServerPluginDir in interface PluginDeploymentScannerMBeandir - the name of the server plugins dirpublic String getAgentPluginDir()
PluginDeploymentScannerMBeangetAgentPluginDir in interface PluginDeploymentScannerMBeanpublic void setAgentPluginDir(String dir)
PluginDeploymentScannerMBeansetAgentPluginDir in interface PluginDeploymentScannerMBeandir - the name of the agent plugins dirpublic PluginMetadataManager getPluginMetadataManager()
PluginDeploymentScannerMBeangetPluginMetadataManager in interface PluginDeploymentScannerMBeanpublic void start()
throws Exception
start in interface PluginDeploymentScannerMBeanExceptionpublic void stop()
stop in interface PluginDeploymentScannerMBeanpublic void startDeployment()
PluginDeploymentScannerMBeanstartDeployment in interface PluginDeploymentScannerMBeanpublic void scan()
throws Exception
PluginDeploymentScannerMBeanscan in interface PluginDeploymentScannerMBeanExceptionPluginDeploymentScannerMBean.scanAndRegister()public void scanAndRegister()
throws Exception
PluginDeploymentScannerMBeanscanAndRegister in interface PluginDeploymentScannerMBeanExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.