| |
|
| java.lang.Object java.lang.Thread org.ow2.easybeans.server.ContainersMonitor
All known Subclasses: org.ow2.easybeans.server.DirectoryDeployerMonitor,
ContainersMonitor | public class ContainersMonitor extends Thread (Code) | | This class monitors the archives managed by containers and reload them if the
archive is changed.
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. | public Embedded | getEmbedded() Gets the embedded object. | protected long | getLastModified(File archive) Gets the last modified attribute of a given archive. If it is a
directory, returns the last modified file of the archive.
Parameters: archive - the archive to monitor. | 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. |
ContainersMonitor | public ContainersMonitor(Embedded embedded)(Code) | | Builds a new monitor by initializing lists.
Parameters: embedded - the embedded server which is monitored. |
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. |
getEmbedded | public Embedded getEmbedded()(Code) | | Gets the embedded object.
embedded object |
getLastModified | protected long getLastModified(File archive)(Code) | | Gets the last modified attribute of a given archive. If it is a
directory, returns the last modified file of the archive.
Parameters: archive - the archive to monitor. the last modified version of the given archive. |
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.
|
|
|
|