| |
|
| java.lang.Object java.lang.Thread org.ow2.easybeans.server.ContainersMonitor org.ow2.easybeans.server.DirectoryDeployerMonitor
DirectoryDeployerMonitor | public class DirectoryDeployerMonitor extends ContainersMonitor (Code) | | This class monitors scan the directory and deploy archive if any. Also,
archives are monitored. If there is a change, the archive is reloaded or
undeployed and then deployed.
author: Florent Benoit |
Method Summary | |
protected void | checkContainer(EZBContainer container) Check a container (and its archive) and see if there is a need to reload
the container. | protected void | checkModifiedDeployables() Check if the current deployables that are deployed have been updated. | protected boolean | hasBeenUpdated(File file) Check if the given file has been updated since the last check. | public void | init() Init containers (call at startup). | public void | run() Start the thread of this class It will clean all the work entries. | public void | stopOrder() Receives a stop order. |
DirectoryDeployerMonitor | public DirectoryDeployerMonitor(Embedded embedded) throws EmbeddedException(Code) | | Builds a new monitor by initializing lists.
Parameters: embedded - the embedded server which is monitored. throws: EmbeddedException - if there is an exception for this monitor. |
checkContainer | protected void checkContainer(EZBContainer container)(Code) | | Check a container (and its archive) and see if there is a need to reload
the container.
Parameters: container - the container to monitor. |
checkModifiedDeployables | protected void checkModifiedDeployables() throws EmbeddedException(Code) | | Check if the current deployables that are deployed have been updated.
If it is the case, undeploy them and then deploy it again (except for EJB3 Deployable where there is a stop/start).
throws: EmbeddedException - if the redeployment fails |
hasBeenUpdated | protected boolean hasBeenUpdated(File file)(Code) | | Check if the given file has been updated since the last check.
Parameters: file - the file to test true if the archive has been updated |
init | public void init()(Code) | | Init containers (call at startup).
|
run | public void run()(Code) | | Start the thread of this class It will clean all the work entries.
|
stopOrder | public void stopOrder()(Code) | | Receives a stop order.
|
|
|
|