Save This Page
Home » JBoss-5.1.0 » org » jboss » deployment » scanner » [javadoc | source]
abstract public class: AbstractDeploymentScanner [javadoc | source]

All Implemented Interfaces:
    DeploymentScannerMBean, DeploymentScanner, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

Direct Known Subclasses:
    FarmMemberService, URLDeploymentScanner, HttpURLDeploymentScanner, URLDirectoryScanner

An abstract support class for implementing a deployment scanner.

Provides the implementation of period-based scanning, as well as Deployer integration.

Sub-classes only need to implement DeploymentScanner#scan .

Nested Class Summary:
public class  AbstractDeploymentScanner.ScannerThread  Should use Timer/TimerTask instead? This has some issues with interaction with ScanEnabled attribute. ScanEnabled works only when starting/stopping. 
Field Summary
protected  long scanPeriod    The scan period in milliseconds 
protected  boolean scanEnabled    True if period based scanning is enabled. 
protected  long stopTimeOut    The stop timeout 
protected  Deployer deployer    A proxy to the deployer we are using. 
protected  MainDeployerMBean mainDeployer     
protected  ScannerThread scannerThread    The scanner thread. 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.deployment.scanner.AbstractDeploymentScanner Summary:
createService,   destroyService,   getDeployer,   getScanPeriod,   getStopTimeOut,   isScanEnabled,   scan,   setDeployer,   setScanEnabled,   setScanPeriod,   setStopTimeOut,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.deployment.scanner.AbstractDeploymentScanner Detail:
 protected  void createService() throws Exception 
 protected  void destroyService() throws Exception 
 public ObjectName getDeployer() 
 public long getScanPeriod() 
 public long getStopTimeOut() 
 public boolean isScanEnabled() 
 abstract public  void scan() throws Exception
    This is here to work around a bug in the IBM vm that causes an AbstractMethodError to be thrown when the ScannerThread calls scan.
 public  void setDeployer(ObjectName deployerName) 
 public  void setScanEnabled(boolean flag) 
 public  void setScanPeriod(long period) 
    Period must be >= 0.
 public  void setStopTimeOut(long stopTimeOut) 
 protected  void startService() throws Exception 
 protected  void stopService() throws Exception