| |
|
| java.lang.Object org.objectweb.jonas.management.monitoring.DomainMonitor
DomainMonitor | public class DomainMonitor implements DomainMonitorMBean(Code) | | This class represents the Master Server of the Domain.
Is created by the DiscoveryService if it detects it is the master.
It is not instanciated for slave servers.
author: danesa author: durieuxp refactoring |
Inner Class :class StateMonitor extends Thread | |
DomainMonitor | public DomainMonitor(String domain)(Code) | | Constructor
|
discoveryNotification | public void discoveryNotification(DiscEvent event)(Code) | | Handle Notifications from Discovery Service
Parameters: event - |
findCluster | public BaseCluster findCluster(String name)(Code) | | Get a Cluster by its name. Look in all cluster factories.
Parameters: name - The name of the cluster the Cluster or null if unknown by the domain. |
findClusterDaemonProxy | public ClusterDaemonProxy findClusterDaemonProxy(String name)(Code) | | Get a ClusterDaemon by its name
Parameters: name - The name of the clusterdaemon the ClusterDaemonProxy or null if unknown by the domain. |
findServer | public J2EEServer findServer(String name)(Code) | | Get a Server by its name
Parameters: name - The name of the server the Server or null if unknown by the domain. |
findServerProxy | public ServerProxy findServerProxy(String name)(Code) | | Get a Server by its name
Parameters: name - The name of the server the ServerProxy or null if unknown by the domain. |
forgetAllDeploy | public synchronized void forgetAllDeploy()(Code) | | Forget all deploy information
|
getClusterDaemonList | public Collection getClusterDaemonList()(Code) | | Get the list of all ClusterDaemonProxy
|
getClusters | public String[] getClusters()(Code) | | MBean method
Array of OBJECT_NAMEs of all cluster MBeans |
getDeployServers | public synchronized String[] getDeployServers(String filename)(Code) | | Get the list of server where a file is being deployed
Parameters: filename - file to deploy server name |
getDeployState | public synchronized String getDeployState(String filename, String servername)(Code) | | Get the current state (string form) of deployment operation
Parameters: filename - file to deploy Parameters: servername - server where deployment is done one of "progress","ok","fail" |
getErrorMessage | public synchronized String getErrorMessage(String filename, String servername)(Code) | | Get the error message associated to the error state
Parameters: filename - file to deploy Parameters: servername - server where deployment is done error message |
getLogicalClusterList | public Collection getLogicalClusterList()(Code) | | Get the list of logical clusters
|
getMonitoringPeriod | public int getMonitoringPeriod()(Code) | | |
getProxys | public String[] getProxys()(Code) | | MBean method
To be replaced by J2EEDomain.getServers()
Array of OBJECT_NAMEs of all ServerProxy |
getServerList | public Collection getServerList()(Code) | | Get the list of ServerProxy
Collection of all ServerProxy in the Domain |
getTotalClusterList | public Collection getTotalClusterList()(Code) | | Get the list of all clusters of any type
Collection of all Clusters in the domain |
notifyServerProxyRunning | void notifyServerProxyRunning(ServerProxy sp)(Code) | | Notify to all the cluster factories that a server started in the domain
Parameters: sp - the server's proxy |
readDomainConfig | public void readDomainConfig()(Code) | | |
refreshStates | public void refreshStates()(Code) | | Try to refresh the server states
TODO notify thread only.
|
registerDeployAction | public synchronized boolean registerDeployAction(DeployAction action)(Code) | | Register a DeployAction
true if correctly aded in the list |
setMonitoringPeriod | public void setMonitoringPeriod(int sec)(Code) | | |
|
|
|