|
||||||||||
| 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 | |
|---|---|
java.io.File |
getAgentPluginDir()
Gets the directory name where the agent plugin jars are located. |
java.io.File |
getLicenseFile()
|
java.lang.Long |
getScanPeriod()
Gets the amount of time (in milliseconds) between scans. |
java.io.File |
getServerPluginDir()
Gets the directory name where the server plugin jars are located. |
java.io.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(java.io.File dir)
Sets the directory where the agent plugin jars are located. |
void |
setLicenseFile(java.io.File file)
|
void |
setScanPeriod(java.lang.Long ms)
Sets the amount of time (in milliseconds) between scans. |
void |
setServerPluginDir(java.io.File dir)
Sets the directory where the server plugin jars are located. |
void |
setUserPluginDir(java.io.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 |
|---|
public java.lang.Long getScanPeriod()
PluginDeploymentScannerMBean
getScanPeriod in interface PluginDeploymentScannerMBeanpublic void setScanPeriod(java.lang.Long ms)
PluginDeploymentScannerMBean
setScanPeriod in interface PluginDeploymentScannerMBeanms - time in millis between each scanspublic java.io.File getUserPluginDir()
PluginDeploymentScannerMBeannull, do not look for any user plugins.
getUserPluginDir in interface PluginDeploymentScannerMBeanpublic void setUserPluginDir(java.io.File dir)
PluginDeploymentScannerMBean
setUserPluginDir in interface PluginDeploymentScannerMBeandir - the name of the plugins dir where the user can copy pluginspublic java.io.File getServerPluginDir()
PluginDeploymentScannerMBean
getServerPluginDir in interface PluginDeploymentScannerMBeanpublic void setServerPluginDir(java.io.File dir)
PluginDeploymentScannerMBean
setServerPluginDir in interface PluginDeploymentScannerMBeandir - the name of the server plugins dirpublic java.io.File getAgentPluginDir()
PluginDeploymentScannerMBean
getAgentPluginDir in interface PluginDeploymentScannerMBeanpublic void setAgentPluginDir(java.io.File dir)
PluginDeploymentScannerMBean
setAgentPluginDir in interface PluginDeploymentScannerMBeandir - the name of the agent plugins dirpublic java.io.File getLicenseFile()
getLicenseFile in interface PluginDeploymentScannerMBeanpublic void setLicenseFile(java.io.File file)
setLicenseFile in interface PluginDeploymentScannerMBean
public void start()
throws java.lang.Exception
start in interface PluginDeploymentScannerMBeanjava.lang.Exceptionpublic void stop()
stop in interface PluginDeploymentScannerMBeanpublic void startDeployment()
PluginDeploymentScannerMBean
startDeployment in interface PluginDeploymentScannerMBean
public void scan()
throws java.lang.Exception
PluginDeploymentScannerMBean
scan in interface PluginDeploymentScannerMBeanjava.lang.ExceptionPluginDeploymentScannerMBean.scanAndRegister()
public void scanAndRegister()
throws java.lang.Exception
PluginDeploymentScannerMBean
scanAndRegister in interface PluginDeploymentScannerMBeanjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||