org.ow2.jonas.lib.management.domain.cluster
Interface BaseClusterMBean

All Known Subinterfaces:
CmiClusterMBean, EjbHaClusterMBean, JkClusterMBean, TomcatClusterMBean
All Known Implementing Classes:
BaseCluster, CmiCluster, EjbHaCluster, JkCluster, LogicalCluster, TomcatCluster

public interface BaseClusterMBean

Implements MBean interface for different Cluster MBean types

Author:
Adriana Danes, S. Ali Tokmen

Method Summary
 void addServer(String name, String[] urls, String clusterd)
          Deprecated. addServer(String, String[], String, String, String)
 void addServer(String name, String[] urls, String clusterd, String username, String password)
          Add a new server in the cluster (jonasAdmin).
 void deployModule(String filename)
           
 String[] getMembers()
           
 String getName()
           
 int getNbMembers()
           
 String getState()
           
 void removeServer(String name)
          remove a server from the cluster (jonasAdmin).
 void startit()
           
 void stopit()
           
 void undeployModule(String filename)
           
 void uploadDeployModule(String filename, boolean replaceExisting)
           
 void uploadFile(String filename, boolean replaceExisting)
           
 

Method Detail

getState

String getState()
Returns:
the cluster's current state

getName

String getName()
Returns:
the cluster name

getNbMembers

int getNbMembers()
Returns:
the members number

getMembers

String[] getMembers()
Returns:
the member OBJECT_NAME's

addServer

@Deprecated
void addServer(String name,
                          String[] urls,
                          String clusterd)
               throws JMException
Deprecated. addServer(String, String[], String, String, String)

Calls addServer(String, String[], String, String, String)(name, urls, clusterd, null, null).

Parameters:
name - logical name of the server
urls - array of urls for connection
clusterd - possible clusterdaemon managing the server
Throws:
JMException - problem when trying to a server to a cluster

addServer

void addServer(String name,
               String[] urls,
               String clusterd,
               String username,
               String password)
               throws JMException
Add a new server in the cluster (jonasAdmin).

Parameters:
name - logical name of the server
urls - array of urls for connection
clusterd - possible clusterdaemon managing the server
username - user name to use when connecting if any. Null otherwise.
password - password to use when connecting if any. Null otherwise.
Throws:
JMException - problem when trying to a server to a cluster

removeServer

void removeServer(String name)
                  throws JMException
remove a server from the cluster (jonasAdmin).

Parameters:
name - logical name of the server
Throws:
JMException - problem when trying to a server to a cluster

startit

void startit()
             throws JMException
Throws:
JMException

stopit

void stopit()
            throws JMException
Throws:
JMException

deployModule

void deployModule(String filename)
                  throws JMException
Throws:
JMException

undeployModule

void undeployModule(String filename)
                    throws JMException
Throws:
JMException

uploadFile

void uploadFile(String filename,
                boolean replaceExisting)
                throws JMException
Throws:
JMException

uploadDeployModule

void uploadDeployModule(String filename,
                        boolean replaceExisting)
                        throws JMException
Throws:
JMException


Copyright © 2010 OW2 Consortium. All Rights Reserved.