|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.core.plugin.PluginDeploymentScanner
public class PluginDeploymentScanner
This looks at both the file system and the database for new agent and server plugins.
| Field Summary |
|---|
| Fields inherited from interface org.rhq.enterprise.server.core.plugin.PluginDeploymentScannerMBean |
|---|
OBJECT_NAME |
| Constructor Summary | |
|---|---|
PluginDeploymentScanner()
|
|
| Method Summary | |
|---|---|
File |
getAgentPluginDir()
Gets the directory name where the agent plugin jars are located. |
Long |
getScanPeriod()
Gets the amount of time (in milliseconds) between scans. |
File |
getServerPluginDir()
Gets the directory name where the server plugin jars are located. |
File |
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(File dir)
Sets the directory where the agent plugin jars are located. |
void |
setScanPeriod(Long ms)
Sets the amount of time (in milliseconds) between scans. |
void |
setServerPluginDir(File dir)
Sets the directory where the server plugin jars are located. |
void |
setUserPluginDir(File 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginDeploymentScanner()
| Method Detail |
|---|
@NotNull public Long getScanPeriod()
PluginDeploymentScannerMBean
getScanPeriod in interface PluginDeploymentScannerMBean
public void setScanPeriod(@Nullable
Long ms)
PluginDeploymentScannerMBean
setScanPeriod in interface PluginDeploymentScannerMBeanms - time in millis between each scanspublic File getUserPluginDir()
PluginDeploymentScannerMBeannull, do not look for any user plugins.
getUserPluginDir in interface PluginDeploymentScannerMBeanpublic void setUserPluginDir(File dir)
PluginDeploymentScannerMBean
setUserPluginDir in interface PluginDeploymentScannerMBeandir - the name of the plugins dir where the user can copy pluginspublic File getServerPluginDir()
PluginDeploymentScannerMBean
getServerPluginDir in interface PluginDeploymentScannerMBeanpublic void setServerPluginDir(File dir)
PluginDeploymentScannerMBean
setServerPluginDir in interface PluginDeploymentScannerMBeandir - the name of the server plugins dirpublic File getAgentPluginDir()
PluginDeploymentScannerMBean
getAgentPluginDir in interface PluginDeploymentScannerMBeanpublic void setAgentPluginDir(File dir)
PluginDeploymentScannerMBean
setAgentPluginDir in interface PluginDeploymentScannerMBeandir - the name of the agent plugins dir
public void start()
throws Exception
start in interface PluginDeploymentScannerMBeanExceptionpublic void stop()
stop in interface PluginDeploymentScannerMBeanpublic void startDeployment()
PluginDeploymentScannerMBean
startDeployment in interface PluginDeploymentScannerMBean
public void scan()
throws Exception
PluginDeploymentScannerMBean
scan in interface PluginDeploymentScannerMBeanExceptionPluginDeploymentScannerMBean.scanAndRegister()
public void scanAndRegister()
throws Exception
PluginDeploymentScannerMBean
scanAndRegister in interface PluginDeploymentScannerMBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||