public abstract class ScanningAppProvider extends AbstractLifeCycle implements AppProvider
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
protected java.io.FilenameFilter |
_filenameFilter |
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING| Modifier | Constructor and Description |
|---|---|
protected |
ScanningAppProvider(java.io.FilenameFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addScannerListener(Scanner.Listener listener) |
protected App |
createApp(java.lang.String filename)
Called by the Scanner.DiscreteListener to create a new App object.
|
protected void |
doStart() |
protected void |
doStop() |
protected void |
fileAdded(java.lang.String filename) |
protected void |
fileChanged(java.lang.String filename) |
protected void |
fileRemoved(java.lang.String filename) |
protected java.util.Map<java.lang.String,App> |
getDeployedApps() |
DeploymentManager |
getDeploymentManager()
Get the deploymentManager.
|
java.lang.String |
getMonitoredDirName() |
Resource |
getMonitoredDirResource() |
int |
getScanInterval() |
boolean |
isRecursive() |
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
void |
setMonitoredDir(java.lang.String dir)
Deprecated.
|
void |
setMonitoredDirName(java.lang.String dir) |
void |
setMonitoredDirResource(Resource contextsDir) |
protected void |
setRecursive(boolean recursive) |
void |
setScanInterval(int scanInterval) |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContextHandleraddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopprotected java.util.Map<java.lang.String,App> getDeployedApps()
protected App createApp(java.lang.String filename)
filename - The file that is the context.xml. It is resolved by
Resource.newResource(String)protected void doStart()
throws java.lang.Exception
doStart in class AbstractLifeCyclejava.lang.Exceptionprotected void doStop()
throws java.lang.Exception
doStop in class AbstractLifeCyclejava.lang.Exceptionprotected void fileAdded(java.lang.String filename)
throws java.lang.Exception
java.lang.Exceptionprotected void fileChanged(java.lang.String filename)
throws java.lang.Exception
java.lang.Exceptionprotected void fileRemoved(java.lang.String filename)
throws java.lang.Exception
java.lang.Exceptionpublic DeploymentManager getDeploymentManager()
public Resource getMonitoredDirResource()
public java.lang.String getMonitoredDirName()
public int getScanInterval()
public boolean isRecursive()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvidersetDeploymentManager in interface AppProviderpublic void setMonitoredDirResource(Resource contextsDir)
public void addScannerListener(Scanner.Listener listener)
public void setMonitoredDir(java.lang.String dir)
setMonitoredDirName(String)public void setMonitoredDirName(java.lang.String dir)
dir - Directory to scan for context descriptors or war filesprotected void setRecursive(boolean recursive)
public void setScanInterval(int scanInterval)
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.