org.jboss.deployment.scanner
Interface URLDeploymentScannerMBean

All Superinterfaces:
DeploymentScannerMBean, Service, ServiceMBean
All Known Subinterfaces:
HttpURLDeploymentScannerMBean
All Known Implementing Classes:
HttpURLDeploymentScanner, URLDeploymentScanner

public interface URLDeploymentScannerMBean
extends DeploymentScannerMBean

URLDeploymentScanner MBean interface.

Version:
$Revision: 1.4.2.5 $
Author:
Jason Dillon, Dimitris Andreadis

Field Summary
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 void addURL(String urlspec)
           
 void addURL(URL url)
           
 String getFilter()
           
 org.jboss.net.protocol.URLLister.URLFilter getFilterInstance()
           
 boolean getRecursiveSearch()
           
 String getURLComparator()
           
 List getURLList()
           
 boolean hasURL(String urlspec)
           
 boolean hasURL(URL url)
           
 String listDeployedURLs()
          Lists all urls deployed by the scanner, each URL on a new line.
 void removeURL(String urlspec)
           
 void removeURL(URL url)
           
 void resumeDeployment(URL url, boolean markUpToDate)
          Re-enables scanning of a particular deployment URL, previously suspended using suspendDeployment(URL).
 void setFilter(String classname)
           
 void setFilterInstance(org.jboss.net.protocol.URLLister.URLFilter filter)
           
 void setRecursiveSearch(boolean recurse)
           
 void setURLComparator(String classname)
           
 void setURLList(List list)
           
 void setURLs(String listspec)
           
 void suspendDeployment(URL url)
          Temporarily ignore changes (addition, updates, removal) to a particular deployment, identified by its deployment URL.
 
Methods inherited from interface org.jboss.deployment.scanner.DeploymentScannerMBean
getDeployer, getStopTimeOut, isScanEnabled, scan, setDeployer, setScanEnabled, setScanPeriod, setStopTimeOut
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

setRecursiveSearch

void setRecursiveSearch(boolean recurse)

getRecursiveSearch

boolean getRecursiveSearch()

setURLList

void setURLList(List list)

getURLList

List getURLList()

setURLComparator

void setURLComparator(String classname)
                      throws ClassNotFoundException,
                             IllegalAccessException,
                             InstantiationException
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException

getURLComparator

String getURLComparator()

setFilter

void setFilter(String classname)
               throws ClassNotFoundException,
                      IllegalAccessException,
                      InstantiationException
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException

getFilter

String getFilter()

setFilterInstance

void setFilterInstance(org.jboss.net.protocol.URLLister.URLFilter filter)

getFilterInstance

org.jboss.net.protocol.URLLister.URLFilter getFilterInstance()

setURLs

void setURLs(String listspec)
             throws MalformedURLException
Throws:
MalformedURLException

addURL

void addURL(URL url)

removeURL

void removeURL(URL url)

hasURL

boolean hasURL(URL url)

addURL

void addURL(String urlspec)
            throws MalformedURLException
Throws:
MalformedURLException

removeURL

void removeURL(String urlspec)
               throws MalformedURLException
Throws:
MalformedURLException

hasURL

boolean hasURL(String urlspec)
               throws MalformedURLException
Throws:
MalformedURLException

suspendDeployment

void suspendDeployment(URL url)
Temporarily ignore changes (addition, updates, removal) to a particular deployment, identified by its deployment URL. The deployment URL is different from the 'base' URLs that are scanned by the scanner (e.g. the full path to deploy/jmx-console.war vs. deploy/). This can be used to avoid an attempt by the scanner to deploy/redeploy/undeploy a URL that is being modified. To re-enable scanning of changes for a URL, use resumeDeployment(URL, boolean).


resumeDeployment

void resumeDeployment(URL url,
                      boolean markUpToDate)
Re-enables scanning of a particular deployment URL, previously suspended using suspendDeployment(URL). If the markUpToDate flag is true then the deployment module will be considered up-to-date during the next scan. If the flag is false, at the next scan the scanner will check the modification date to decide if the module needs deploy/redeploy/undeploy.


listDeployedURLs

String listDeployedURLs()
Lists all urls deployed by the scanner, each URL on a new line.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.