|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.extensions.base.BaseManagement org.ow2.jonas.lib.management.extensions.domain.DomainManagement
public class DomainManagement
Implements domain management functions.
Field Summary | |
---|---|
protected static org.objectweb.util.monolog.api.Logger |
logger
logger for traces. |
Fields inherited from class org.ow2.jonas.lib.management.extensions.base.BaseManagement |
---|
s_Synchro |
Constructor Summary | |
---|---|
DomainManagement()
Constructor. |
Method Summary | |
---|---|
void |
addCluster(String clusterName)
Add a new cluster in the domain. |
void |
addServer(String serverName,
String connector,
String userName,
String password,
String clusterDaemon)
Add a new server in the domain. |
String[] |
getClusterDaemonNames()
|
String[] |
getclusterDaemons()
Return the clusterDaemons in the domain. |
String |
getClusterdaemonState(String clusterDaemonName)
Return the state of a cluster daemon in the domain. |
String[] |
getClusters()
Return the clusters in the domain. |
String[] |
getClustersNames()
|
String |
getClusterState(String clusterName)
Return the state of a cluster in the domain. |
String |
getClusterType(String clusterName)
Return the type of a cluster in the current domain. |
static DomainManagement |
getInstance()
Gets singleton instance. |
String |
getServerClusterdaemon(String serverName)
Return the clusterDaemon of a server in the domain. |
String |
getServerHost()
|
String[] |
getServerNames()
|
String[] |
getServerNames(String clusterName)
|
String |
getServerPort()
|
String[] |
getServersNotInCluster(String clusterName)
Get the name of the servers in the domain except the ones that are belonging to this cluster. |
String |
getServerState(String serverName)
Return the state of a server in the domain |
boolean |
isMaster()
Return True if the current server is a master. |
boolean |
isMaster(String pServer)
Return True if the managed server is a master. |
void |
removeServers(String[] serversToRemove)
Remove a list of servers from the domain. |
void |
startServer(String serverName,
boolean standby)
Start the server. |
void |
stopServer(String serverName,
boolean standby)
Stop the server. |
Methods inherited from class org.ow2.jonas.lib.management.extensions.base.BaseManagement |
---|
addRealmItem, getAttribute, getAttributes, getDomainName, getIntegerAttribute, getKeyValue, getKeyValues, getListMbean, getRealmItems, getRealmItems, getServerConnection, getServerConnection, getServerName, getStringAttribute, getTomcatRealm, getTomcatRealmItems, invoke, isRegistered, setAttribute, setAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.management.extensions.domain.api.IDomain |
---|
getDomainName, getServerName |
Methods inherited from interface org.ow2.jonas.management.extensions.base.api.IBaseManagement |
---|
getAttribute, getAttributes, getIntegerAttribute, getKeyValue, getKeyValues, getListMbean, getRealmItems, getRealmItems, getServerConnection, getServerConnection, getStringAttribute, getTomcatRealm, getTomcatRealmItems, invoke, isRegistered, setAttribute, setAttribute |
Field Detail |
---|
protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
---|
public DomainManagement()
Method Detail |
---|
public static DomainManagement getInstance()
public String getServerHost()
getServerHost
in interface IDomain
public String getServerPort()
getServerPort
in interface IDomain
public boolean isMaster(String pServer)
isMaster
in interface IDomain
pServer
- managed server name
public boolean isMaster()
isMaster
in interface IDomain
public String[] getServerNames()
getServerNames
in interface IDomain
public String[] getClustersNames()
getClustersNames
in interface IDomain
public String[] getClusterDaemonNames()
getClusterDaemonNames
in interface IDomain
public String[] getClusters()
getClusters
in interface IDomain
public String[] getclusterDaemons()
getclusterDaemons
in interface IDomain
public void addServer(String serverName, String connector, String userName, String password, String clusterDaemon)
addServer
in interface IDomain
serverName
- the server's name.connector
- the server's connector it can be JRMP, IRMI or IIOP.userName
- the user of the new server.password
- the password of the new server.clusterDaemon
- the name of clusterDaemon if this server is
controlled by a clusterDaemon.public void removeServers(String[] serversToRemove)
removeServers
in interface IDomain
serversToRemove
- the list of servers to remove.public void addCluster(String clusterName)
addCluster
in interface IDomain
clusterName
- the new cluster's name.public String getServerState(String serverName)
getServerState
in interface IDomain
serverName
- the server's name
public String getServerClusterdaemon(String serverName)
getServerClusterdaemon
in interface IDomain
serverName
- the server's name
public void startServer(String serverName, boolean standby)
startServer
in interface IDomain
serverName
- the name of the server to startstandby
- true
to enter standby mode.public void stopServer(String serverName, boolean standby)
stopServer
in interface IDomain
serverName
- the name of the server to stopstandby
- true
to enter standby mode.public String getClusterState(String clusterName)
getClusterState
in interface IDomain
clusterName
- the cluster's name
public String getClusterType(String clusterName)
getClusterType
in interface IDomain
clusterName
- the cluster's name
public String[] getServerNames(String clusterName)
getServerNames
in interface IDomain
clusterName
- the cluster name
public String getClusterdaemonState(String clusterDaemonName)
getClusterdaemonState
in interface IDomain
clusterDaemonName
- the cluster daemon's name
public String[] getServersNotInCluster(String clusterName)
getServersNotInCluster
in interface IDomain
clusterName
- the cluster name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |