| java.lang.Object org.objectweb.jonas.management.cluster.BaseCluster
All known Subclasses: org.objectweb.jonas.management.cluster.LogicalCluster, org.objectweb.jonas.management.cluster.EjbHaCluster, org.objectweb.jonas.management.cluster.JkCluster, org.objectweb.jonas.management.cluster.CmiCluster, org.objectweb.jonas.management.cluster.TomcatCluster,
BaseCluster | abstract public class BaseCluster implements BaseClusterMBean(Code) | | Implements basics for cluster management.
To be extended by the different cluster types.
It implements cluster state transition diagram based on the members's state.
A member is represented by a ClusterMember class instance.
See Also: ClusterMember author: Adriana Danes |
Inner Class :public class DeployThread extends Thread | |
STATE_DOWN | final public static int STATE_DOWN(Code) | | All the members are in STOPPED state
|
STATE_FAILED | final public static int STATE_FAILED(Code) | | All the members are in FAILED state
|
STATE_INIT | final public static int STATE_INIT(Code) | | This is the initial state, all members are in INITIAL state
|
STATE_PARTIALLY_DOWN | final public static int STATE_PARTIALLY_DOWN(Code) | | At least one members is in STOPPED state, there is no failed member,
there is no running memeber
|
STATE_PARTIALLY_FAILED | final public static int STATE_PARTIALLY_FAILED(Code) | | At least one members is in FAILED state
|
STATE_PARTIALLY_UP | final public static int STATE_PARTIALLY_UP(Code) | | At least one members is in RUNNING state, there is no failed member
|
STATE_UNKNOWN | final public static int STATE_UNKNOWN(Code) | | No member in FAILED state, no member in RUNNING state, no memeber in STOPPED state
The members' state may be UNREACHABLE or UNKNOWN
|
STATE_UP | final public static int STATE_UP(Code) | | All the members are in RUNNING state
|
logger | protected static Logger logger(Code) | | domain management logger
|
members | protected Map members(Code) | | The list of ClusterMember objects that compose this Cluster
Key = name of the Member.
|
name | protected String name(Code) | | The name of this Cluster.
This String is included in the MBean OBJECT_NAME.
|
objectName | protected ObjectName objectName(Code) | | MBean OBJECT_NAME
:type=,name=
type may be one among: JkCluster, TomcatCluster, etc...
|
state | protected int state(Code) | | The cluster state
|
addMember | public synchronized boolean addMember(ClusterMember m)(Code) | | Add a Member to the Cluster
Parameters: m - Member to add true if added, false if already there. |
addServer | public void addServer(String svname, String[] urls, String cdn) throws JMException(Code) | | MBean operation
Add a server in the cluster (jonasAdmin) - this is only called
for LogicalCluster
Parameters: svname - logical name of the server Parameters: array - of urls for connection Parameters: cdn - clusterDaemon used to manage te server |
createClusterMember | abstract public ClusterMember createClusterMember(String svname, ServerProxy proxy)(Code) | | Create a new ClusterMember. Depends on the underlaying class.
Parameters: svname - Parameters: proxy - |
deployModule | public synchronized void deployModule(String file)(Code) | | MBean operation
Deploy a module on all nodes.
Parameters: file - file to upload. One among .war,.jar,.ear,.rar |
getMembers | public synchronized String[] getMembers()(Code) | | the Member MBean OBJECT_NAMES |
getNbMembers | public int getNbMembers()(Code) | | the member number |
getObjectName | public String getObjectName()(Code) | | The MBean OBJECT_NAME |
getServer | public synchronized J2EEServer getServer(String name)(Code) | | Get a server by its name.
Parameters: name - fo the server the Server or null if not found. |
getServerProxy | public synchronized ServerProxy getServerProxy(String name)(Code) | | Get a server by its name.
Parameters: name - fo the server the ServerProxy or null if not found. |
getServerProxyList | public synchronized Collection getServerProxyList()(Code) | | The list of ServerProxy |
getState | public String getState()(Code) | | Get the Cluster State
A String representing the cluster current state |
getType | abstract public String getType()(Code) | | the type of this Cluster (string form) |
removeServer | public synchronized void removeServer(String svname)(Code) | | MBean operation
Remove a server from the cluster (jonasAdmin)
Parameters: svname - logical name of the server the member corresponding to the server to be removed |
setName | public ObjectName setName(String name) throws JMException(Code) | | Set the MBean name, that may be unknown when constructor is called.
Parameters: name - its name. the MBean ObjectName throws: JMException - could not create MBean instance |
startit | public synchronized void startit() throws JMException(Code) | | MBean operation
Start all cluster nodes.
|
stopit | public synchronized void stopit() throws JMException(Code) | | MBean operation
Stop all cluster nodes.
|
undeployModule | public synchronized void undeployModule(String file)(Code) | | MBean operation
Undeploy a module on all nodes.
Parameters: file - file to upload. One among .war,.jar,.ear,.rar |
uploadDeployModule | public synchronized void uploadDeployModule(String file, boolean repl)(Code) | | MBean operation
Upload adn deploy a module on all nodes.
Parameters: file - file to upload. One among .war,.jar,.ear,.rar Parameters: repl - true if the uploaded file can replace a file with the same name in the jars directory |
uploadFile | public void uploadFile(String file, boolean repl)(Code) | | MBean operation
Upload a file on all nodes.
Parameters: file - file to upload. One among .war,.jar,.ear,.rar Parameters: repl - true if the uploaded file can replace a file with the same name in the jars directory |
|
|