|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.scanner.AbstractDeploymentScanner (src)
org.jboss.deployment.scanner.URLDeploymentScanner
A URL-based deployment scanner. Supports local directory scanning for file-based urls.
Nested Class Summary | |
protected class |
URLDeploymentScanner.DeployedURL (src)
A container and help class for a deployed URL. |
Nested classes inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src) |
AbstractDeploymentScanner.ScannerThread (src) |
Field Summary | |
protected java.util.Set |
deployedSet
A set of scanned urls which have been deployed. |
protected boolean |
doRecursiveSearch
|
protected URLLister.URLFilter (src) |
filter
Allow a filter for scanned directories |
protected IncompleteDeploymentException (src) |
lastIncompleteDeploymentException
|
protected java.io.File |
serverHome
The server's home directory, for relative paths. |
protected java.net.URL |
serverHomeURL
|
protected java.util.Comparator |
sorter
A sorter urls from a scaned directory to allow for coarse dependency ordering based on file type |
protected java.util.List |
urlList
The list of URLs to scan. |
Fields inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src) |
deployer, mainDeployer, scanEnabled, scannerThread, scanPeriod |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
URLDeploymentScanner()
|
Method Summary | |
void |
addURL(java.lang.String urlspec)
|
void |
addURL(java.net.URL url)
|
protected void |
deploy(URLDeploymentScanner.DeployedURL (src) du)
A helper to deploy the given URL with the deployer. |
java.lang.String |
getFilter()
|
URLLister.URLFilter (src) |
getFilterInstance()
|
boolean |
getRecursiveSearch()
|
java.lang.String |
getURLComparator()
|
java.util.List |
getURLList()
|
boolean |
hasURL(java.lang.String urlspec)
|
boolean |
hasURL(java.net.URL url)
|
protected boolean |
isDeployed(java.net.URL url)
Checks if the url is in the deployed set. |
protected java.net.URL |
makeURL(java.lang.String urlspec)
A helper to make a URL from a full url, or a filespec. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
Callback method of MBeanRegistration
before the MBean is registered at the JMX Agent. |
void |
removeURL(java.lang.String urlspec)
|
void |
removeURL(java.net.URL url)
|
void |
scan()
Scan for deployment changes. |
void |
setFilter(java.lang.String classname)
|
void |
setFilterInstance(URLLister.URLFilter (src) filter)
|
void |
setRecursiveSearch(boolean recurse)
|
void |
setURLComparator(java.lang.String classname)
|
void |
setURLList(java.util.List list)
|
void |
setURLs(java.lang.String listspec)
|
protected void |
undeploy(URLDeploymentScanner.DeployedURL (src) du)
A helper to undeploy the given URL from the deployer. |
protected boolean |
updateSorter()
|
Methods inherited from class org.jboss.deployment.scanner.AbstractDeploymentScanner (src) |
createService, destroyService, getDeployer, getScanPeriod, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod, startService, stopService |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.deployment.scanner.DeploymentScanner (src) |
getDeployer, getScanPeriod, isScanEnabled, setDeployer, setScanEnabled, setScanPeriod |
Methods inherited from interface org.jboss.system.Service (src) |
create, destroy, start, stop |
Field Detail |
protected java.util.List urlList
protected java.util.Set deployedSet
protected java.io.File serverHome
protected java.net.URL serverHomeURL
protected java.util.Comparator sorter
protected URLLister.URLFilter (src) filter
protected IncompleteDeploymentException (src) lastIncompleteDeploymentException
protected boolean doRecursiveSearch
Constructor Detail |
public URLDeploymentScanner()
Method Detail |
public void setRecursiveSearch(boolean recurse)
public boolean getRecursiveSearch()
public void setURLList(java.util.List list)
public void setURLComparator(java.lang.String classname) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
classname
- The name of a Comparator class.
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.lang.String getURLComparator()
public void setFilter(java.lang.String classname) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
classname
- The name of a FileFilter class.
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
public java.lang.String getFilter()
public void setFilterInstance(URLLister.URLFilter (src) filter)
filter
- The URLFilter instancepublic URLLister.URLFilter (src) getFilterInstance()
public java.util.List getURLList()
public void addURL(java.net.URL url)
public void removeURL(java.net.URL url)
public boolean hasURL(java.net.URL url)
public void setURLs(java.lang.String listspec) throws java.net.MalformedURLException
java.net.MalformedURLException
protected java.net.URL makeURL(java.lang.String urlspec) throws java.net.MalformedURLException
java.net.MalformedURLException
public void addURL(java.lang.String urlspec) throws java.net.MalformedURLException
java.net.MalformedURLException
public void removeURL(java.lang.String urlspec) throws java.net.MalformedURLException
java.net.MalformedURLException
public boolean hasURL(java.lang.String urlspec) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void deploy(URLDeploymentScanner.DeployedURL (src) du)
protected void undeploy(URLDeploymentScanner.DeployedURL (src) du)
protected boolean isDeployed(java.net.URL url)
public void scan() throws java.lang.Exception
DeploymentScanner (src)
scan
in interface DeploymentScanner (src)
scan
in class AbstractDeploymentScanner (src)
java.lang.Exception
protected boolean updateSorter()
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
ServiceMBeanSupport (src)
MBeanRegistration
(src)
before the MBean is registered at the JMX Agent.
Attention: Always call this method when you overwrite it in a subclass because it saves the Object Name of the MBean.
preRegister
in interface MBeanRegistration (src)
preRegister
in class ServiceMBeanSupport (src)
server
- Reference to the JMX Agent this MBean is registered onname
- Name specified by the creator of the MBean. Note that you can
overwrite it when the given ObjectName is null otherwise the
change is discarded (maybe a bug in JMX-RI).
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |