|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides the basic interface for a deployment scanner.
A deployment scanner scans for new, removed or changed deployments.
Method Summary | |
ObjectName (src) |
getDeployer()
Get the ObjectName of the Deployer which we are using. |
long |
getScanPeriod()
Get the scan period for the scanner. |
boolean |
isScanEnabled()
Check if period based scanning is enabled. |
void |
scan()
Scan for deployment changes. |
void |
setDeployer(ObjectName (src) deployerName)
The ObjectName of the Deployer which we will use. |
void |
setScanEnabled(boolean flag)
Disable or enable the period based deployment scanning. |
void |
setScanPeriod(long period)
Set the scan period for the scanner. |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Method Detail |
public void setDeployer(ObjectName (src) deployerName)
Deployer
which we will use.
deployerName
- The object name of the deployer to use.public ObjectName (src) getDeployer()
Deployer
which we are using.
public void setScanPeriod(long period)
period
- This is the time in milliseconds between scans.
java.lang.IllegalArgumentException
- Period value out of range.public long getScanPeriod()
public void setScanEnabled(boolean flag)
Manual scanning can still be performed by calling
scan()
.
flag
- True to enable or false to disable period
based scanning.public boolean isScanEnabled()
public void scan() throws java.lang.Exception
java.lang.IllegalStateException
- Not initialized.
java.lang.Exception
- Scan failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |