|
||||||||||
| 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 GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
DirectoryHotDeployer(String path,
int pollIntervalMillis,
ServerInfo serverInfo,
ConfigurationManager configManager,
Kernel kernel)
|
|
| Method Summary | |
|---|---|
void |
deployed(Artifact id)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
String |
fileAdded(File file)
|
boolean |
fileRemoved(File file,
String configId)
|
String |
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 GBeanInfo |
getGBeanInfo()
|
String |
getModuleId(String config)
This method returns the module id of an application deployed in the default group. |
String |
getPath()
|
int |
getPollIntervalMillis()
|
ServerInfo |
getServerInfo()
|
boolean |
isFileDeployed(File file,
String configId)
Checks if the file with same configID is already deployed |
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(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(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 GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public DirectoryHotDeployer(String path,
int pollIntervalMillis,
ServerInfo serverInfo,
ConfigurationManager configManager,
Kernel kernel)
| Method Detail |
|---|
public void deployed(Artifact id)
deployed in interface DeploymentWatcherpublic void undeployed(Artifact id)
undeployed in interface DeploymentWatcherpublic String getPath()
public void setPath(String path)
public ServerInfo getServerInfo()
public void setServerInfo(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
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail in interface 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.Listenerpublic String getModuleId(String config)
DirectoryMonitor.Listener
getModuleId in interface DirectoryMonitor.Listener
public String fileUpdated(File file,
String configId)
fileUpdated in interface DirectoryMonitor.Listenerpublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||