|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.geronimo.deployment.hot.DirectoryHotDeployer
public class DirectoryHotDeployer
A directory-scanning hot deployer
| Field Summary | |
|---|---|
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
DirectoryHotDeployer(String path,
int pollIntervalMillis,
org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
org.apache.geronimo.kernel.config.ConfigurationManager configManager,
org.apache.geronimo.kernel.Kernel kernel)
|
|
| Method Summary | |
|---|---|
void |
deployed(org.apache.geronimo.kernel.repository.Artifact id)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
String |
fileAdded(File file)
|
boolean |
fileRemoved(File file,
String configId)
|
void |
fileUpdated(File file,
String configId)
|
String |
getDeploymentPassword()
|
long |
getDeploymentTime(File file,
String configId)
Called during initialization on previously deployed files. |
String |
getDeploymentURI()
|
String |
getDeploymentUser()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
String |
getPath()
|
int |
getPollIntervalMillis()
|
org.apache.geronimo.system.serverinfo.ServerInfo |
getServerInfo()
|
boolean |
isFileDeployed(File file,
String configId)
Called during initialization on all files in the hot deploy directory. |
boolean |
isServerRunning()
The directory monitor doesn't take any action unless this method returns true (to avoid deploying before the deploy GBeans are running, etc.). |
void |
setDeploymentPassword(String deploymentPassword)
|
void |
setDeploymentURI(String deploymentURI)
|
void |
setDeploymentUser(String deploymentUser)
|
void |
setPath(String path)
|
void |
setPollIntervalMillis(int pollIntervalMillis)
|
void |
setServerInfo(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
|
void |
started()
Called to indicate that the monitor has fully initialized and will be doing normal deployment operations from now on. |
void |
undeployed(org.apache.geronimo.kernel.repository.Artifact id)
|
boolean |
validateFile(File file,
String configId)
Called to check whether a file passes the smell test before attempting to deploy it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public DirectoryHotDeployer(String path,
int pollIntervalMillis,
org.apache.geronimo.system.serverinfo.ServerInfo serverInfo,
org.apache.geronimo.kernel.config.ConfigurationManager configManager,
org.apache.geronimo.kernel.Kernel kernel)
| Method Detail |
|---|
public void deployed(org.apache.geronimo.kernel.repository.Artifact id)
deployed in interface org.apache.geronimo.kernel.config.DeploymentWatcherpublic void undeployed(org.apache.geronimo.kernel.repository.Artifact id)
undeployed in interface org.apache.geronimo.kernel.config.DeploymentWatcherpublic String getPath()
public void setPath(String path)
public org.apache.geronimo.system.serverinfo.ServerInfo getServerInfo()
public void setServerInfo(org.apache.geronimo.system.serverinfo.ServerInfo serverInfo)
public int getPollIntervalMillis()
getPollIntervalMillis in interface HotDeployerpublic void setPollIntervalMillis(int pollIntervalMillis)
setPollIntervalMillis in interface HotDeployerpublic String getDeploymentURI()
public void setDeploymentURI(String deploymentURI)
public String getDeploymentUser()
public void setDeploymentUser(String deploymentUser)
public String getDeploymentPassword()
public void setDeploymentPassword(String deploymentPassword)
public void doStart()
throws Exception
doStart in interface org.apache.geronimo.gbean.GBeanLifecycleException
public void doStop()
throws Exception
doStop in interface org.apache.geronimo.gbean.GBeanLifecycleExceptionpublic void doFail()
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle
public boolean isFileDeployed(File file,
String configId)
DirectoryMonitor.Listener
isFileDeployed in interface DirectoryMonitor.Listenerpublic boolean isServerRunning()
DirectoryMonitor.Listener
isServerRunning in interface DirectoryMonitor.Listener
public long getDeploymentTime(File file,
String configId)
DirectoryMonitor.Listener
getDeploymentTime in interface DirectoryMonitor.Listenerpublic void started()
DirectoryMonitor.Listener
started in interface DirectoryMonitor.Listener
public boolean validateFile(File file,
String configId)
DirectoryMonitor.Listener
validateFile in interface DirectoryMonitor.Listenerpublic String fileAdded(File file)
fileAdded in interface DirectoryMonitor.Listener
public boolean fileRemoved(File file,
String configId)
fileRemoved in interface DirectoryMonitor.Listener
public void fileUpdated(File file,
String configId)
fileUpdated in interface DirectoryMonitor.Listenerpublic static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||