|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.hotdeploy.HDScanner
public class HDScanner
A DeploymentScanner built on the ProfileService and MainDeployer. This is really just a simple ExecutorService Runnable that knows nothing about how to detect changed deployers. The ProfileService determines this.
MainDeployer
,
ProfileService
Constructor Summary | |
---|---|
HDScanner()
|
Method Summary | |
---|---|
void |
create()
|
void |
destroy()
|
org.jboss.profileservice.spi.ProfileService |
getProfileService()
|
int |
getScanCount()
|
ScheduledExecutorService |
getScanExecutor()
|
long |
getScanPeriod()
|
String |
getScanThreadName()
|
protected void |
incScanCount()
Inc the scanCount and to a notifyAll. |
boolean |
isCreatedScanExecutor()
|
boolean |
isScanEnabled()
Are deployment scans enabled. |
void |
resetScanCount()
|
void |
resume()
Resume scanning. |
void |
run()
Executes scan |
void |
scan()
Do scan. |
void |
setDeployer(MainDeployerAdapter deployer)
|
void |
setProfileService(org.jboss.profileservice.spi.ProfileService profileService)
|
void |
setScanEnabled(boolean scanEnabled)
Enable/disable deployment scans. |
void |
setScanExecutor(ScheduledExecutorService scanExecutor)
|
void |
setScanPeriod(long period)
|
void |
setScanThreadName(String scanThreadName)
|
void |
start()
|
void |
stop()
|
void |
suspend()
Suspend scanning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HDScanner()
Method Detail |
---|
public void setDeployer(MainDeployerAdapter deployer)
public org.jboss.profileservice.spi.ProfileService getProfileService()
public void setProfileService(org.jboss.profileservice.spi.ProfileService profileService)
public ScheduledExecutorService getScanExecutor()
public void setScanExecutor(ScheduledExecutorService scanExecutor)
scanExecutor
- The scanExecutor to set.public String getScanThreadName()
public void setScanThreadName(String scanThreadName)
public long getScanPeriod()
public void setScanPeriod(long period)
public boolean isScanEnabled()
public int getScanCount()
public void resetScanCount()
public void setScanEnabled(boolean scanEnabled)
scanEnabled
- true to enable scans, false to disable.public boolean isCreatedScanExecutor()
public void create() throws Exception
Exception
public void start()
public void stop()
public void destroy()
public void run()
run
in interface Runnable
public void suspend()
Scanner
suspend
in interface Scanner
public void resume()
Scanner
resume
in interface Scanner
public void scan() throws Exception
Scanner
scan
in interface Scanner
Exception
- for any errorprotected void incScanCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |