org.objectweb.jonas.management.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

Method Summary
 void addServer(String name, String[] urls, String clusterd)
          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

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

Parameters:
name - logical name of the server
array - of urls for connection
clusterd - possible clusterdaemon managing the server
Throws:
JMException

removeServer

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

Parameters:
name - logical name of the server
Throws:
JMException

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 © 2007 OW2 Consortium. All Rights Reserved.