public class ServerClusterTasks
extends java.lang.Object
Constructor and Description |
---|
ServerClusterTasks(ConfigService configService) |
Modifier and Type | Method and Description |
---|---|
javax.management.ObjectName |
convertToCluster(Session session,
javax.management.ObjectName server,
java.lang.String clusterName)
Creates a new
ServerCluster and converts the specified Server to a
ClusterMember of created ServerCluster . |
javax.management.ObjectName |
createClusterMember(Session session,
javax.management.ObjectName serverCluster,
javax.management.AttributeList clusterMemberAttrList,
javax.management.ObjectName node,
javax.management.ObjectName serverTemplate)
Creates a new
ClusterMember config data and add it into a ServerCluster . |
public ServerClusterTasks(ConfigService configService)
public javax.management.ObjectName createClusterMember(Session session, javax.management.ObjectName serverCluster, javax.management.AttributeList clusterMemberAttrList, javax.management.ObjectName node, javax.management.ObjectName serverTemplate) throws ConfigServiceException, ConnectorException
ClusterMember
config data and add it into a ServerCluster
.session
- session id.serverCluster
- the ObjectName of a ServerCluster
.clusterMemberAttrList
- an attribute list that defines the new cluster member.node
- the ObjectName of node where the created ClusterMember
config data resides.serverTemplate
- a Server
template for the created ClusterMember
. If null is supplied,
default Server
template is used for the server.ConfigServiceException
ConnectorException
public javax.management.ObjectName convertToCluster(Session session, javax.management.ObjectName server, java.lang.String clusterName) throws ConfigServiceException, ConnectorException
ServerCluster
and converts the specified Server
to a
ClusterMember
of created ServerCluster
. If the specified Server is a member of existing ServerCluster
,
a ConfigServiceException will be thrown.session
- a session id.server
- ObjectName of a Server..clusterName
- the name of created ServerCluster
.ServerCluster
config data.ConfigServiceException
ConnectorException