|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.management.monitoring.DomainMonitor
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.
Constructor Summary | |
DomainMonitor(java.lang.String domain)
Constructor |
Method Summary | |
ServerProxy |
addLocalServer(java.lang.String svname,
java.util.Collection urls)
Add the local J2EEServer to the list of servers |
LogicalCluster |
createLogicalCluster(java.lang.String name)
Create a logical cluster |
void |
discoveryNotification(DiscEvent event)
Handle Notifications from Discovery Service |
BaseCluster |
findCluster(java.lang.String name)
Get a Cluster by its name. |
ClusterDaemonProxy |
findClusterDaemonProxy(java.lang.String name)
Get a ClusterDaemon by its name |
J2EEServer |
findServer(java.lang.String name)
Get a Server by its name |
ServerProxy |
findServerProxy(java.lang.String name)
Get a Server by its name |
void |
forgetAllDeploy()
Forget all deploy information |
java.util.Collection |
getClusterDaemonList()
Get the list of all ClusterDaemonProxy |
java.lang.String[] |
getClusters()
MBean method |
java.lang.String[] |
getDeployServers(java.lang.String filename)
Get the list of server where a file is being deployed |
java.lang.String |
getDeployState(java.lang.String filename,
java.lang.String servername)
Get the current state (string form) of deployment operation |
java.lang.String |
getDescription()
|
java.lang.String |
getDomainName()
|
java.lang.String |
getErrorMessage(java.lang.String filename,
java.lang.String servername)
Get the error message associated to the error state |
java.util.Collection |
getLogicalClusterList()
Get the list of logical clusters |
int |
getMonitoringPeriod()
|
java.lang.String[] |
getProxys()
MBean method To be replaced by J2EEDomain.getServers() |
java.util.Collection |
getServerList()
Get the list of ServerProxy |
java.util.Collection |
getTotalClusterList()
Get the list of all clusters of any type |
void |
readDomainConfig()
|
void |
refreshStates()
Try to refresh the server states TODO notify thread only. |
boolean |
registerDeployAction(DeployAction action)
Register a DeployAction |
void |
setMonitoringPeriod(int sec)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DomainMonitor(java.lang.String domain)
Method Detail |
public void readDomainConfig()
public java.lang.String getDescription()
public java.lang.String getDomainName()
public void setMonitoringPeriod(int sec)
setMonitoringPeriod
in interface DomainMonitorMBean
sec
- monitoring periodpublic int getMonitoringPeriod()
getMonitoringPeriod
in interface DomainMonitorMBean
public ServerProxy addLocalServer(java.lang.String svname, java.util.Collection urls)
public BaseCluster findCluster(java.lang.String name)
name
- The name of the cluster
public J2EEServer findServer(java.lang.String name)
name
- The name of the server
public ServerProxy findServerProxy(java.lang.String name)
name
- The name of the server
public ClusterDaemonProxy findClusterDaemonProxy(java.lang.String name)
name
- The name of the clusterdaemon
public java.util.Collection getServerList()
public java.util.Collection getClusterDaemonList()
public java.util.Collection getTotalClusterList()
public LogicalCluster createLogicalCluster(java.lang.String name)
public java.util.Collection getLogicalClusterList()
public java.lang.String[] getProxys()
getProxys
in interface DomainMonitorMBean
public java.lang.String[] getClusters()
getClusters
in interface DomainMonitorMBean
public void discoveryNotification(DiscEvent event)
event
- public boolean registerDeployAction(DeployAction action)
public java.lang.String[] getDeployServers(java.lang.String filename)
getDeployServers
in interface DomainMonitorMBean
filename
- file to deploy
public java.lang.String getDeployState(java.lang.String filename, java.lang.String servername)
getDeployState
in interface DomainMonitorMBean
filename
- file to deployservername
- server where deployment is done
public java.lang.String getErrorMessage(java.lang.String filename, java.lang.String servername)
getErrorMessage
in interface DomainMonitorMBean
filename
- file to deployservername
- server where deployment is done
public void forgetAllDeploy()
forgetAllDeploy
in interface DomainMonitorMBean
public void refreshStates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |