org.objectweb.jonas.management.monitoring
Interface DomainMonitorMBean

All Known Implementing Classes:
DomainMonitor

public interface DomainMonitorMBean

Implements MBean interface for domain monitoring

Author:
Adriana Danes

Method Summary
 void forgetAllDeploy()
          Forget all deploy information
 java.lang.String[] getClusters()
           
 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 getErrorMessage(java.lang.String filename, java.lang.String servername)
          Get the error message associated to the error state
 int getMonitoringPeriod()
           
 java.lang.String[] getProxys()
           
 void setMonitoringPeriod(int sec)
           
 

Method Detail

getProxys

java.lang.String[] getProxys()
Returns:
Array of OBJECT_NAMEs of all ServerProxy MBeans

getClusters

java.lang.String[] getClusters()
Returns:
Array of OBJECT_NAMEs of all cluster MBeans

setMonitoringPeriod

void setMonitoringPeriod(int sec)
Parameters:
sec - monitoring period

getMonitoringPeriod

int getMonitoringPeriod()
Returns:
the monitoring period in sec

getDeployServers

java.lang.String[] getDeployServers(java.lang.String filename)
Get the list of server where a file is being deployed

Parameters:
filename - file to deploy
Returns:
server name

getDeployState

java.lang.String getDeployState(java.lang.String filename,
                                java.lang.String servername)
Get the current state (string form) of deployment operation

Parameters:
filename - file to deploy
servername - server where deployment is done
Returns:
one of "progress","ok","fail"

getErrorMessage

java.lang.String getErrorMessage(java.lang.String filename,
                                 java.lang.String servername)
Get the error message associated to the error state

Parameters:
filename - file to deploy
servername - server where deployment is done
Returns:
error message

forgetAllDeploy

void forgetAllDeploy()
Forget all deploy information