public class AutoDeployDir
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAME |
Constructor and Description |
---|
AutoDeployDir(String name,
File deployDir,
File destDir,
long interval,
List<AutoDeployListener> autoDeployListeners) |
Modifier and Type | Method and Description |
---|---|
protected AutoDeploymentContext |
buildAutoDeploymentContext(File file) |
static void |
deploy(AutoDeploymentContext autoDeploymentContext,
List<AutoDeployListener> autoDeployListeners) |
File |
getDeployDir() |
File |
getDestDir() |
long |
getInterval() |
List<AutoDeployListener> |
getListeners() |
String |
getName() |
protected void |
processFile(File file) |
void |
registerListener(AutoDeployListener listener) |
protected void |
scanDirectory() |
void |
start() |
void |
stop() |
void |
unregisterListener(AutoDeployListener autoDeployListener) |
public static final String DEFAULT_NAME
public AutoDeployDir(String name, File deployDir, File destDir, long interval, List<AutoDeployListener> autoDeployListeners)
public static void deploy(AutoDeploymentContext autoDeploymentContext, List<AutoDeployListener> autoDeployListeners) throws AutoDeployException
AutoDeployException
public File getDeployDir()
public File getDestDir()
public long getInterval()
public List<AutoDeployListener> getListeners()
public String getName()
public void registerListener(AutoDeployListener listener)
public void start()
public void stop()
public void unregisterListener(AutoDeployListener autoDeployListener)
protected AutoDeploymentContext buildAutoDeploymentContext(File file)
protected void processFile(File file)
protected void scanDirectory()