com.ibm.websphere.management.configservice.tasks
Class ServerClusterTasks
- java.lang.Object
-
- com.ibm.websphere.management.configservice.tasks.ServerClusterTasks
-
public class ServerClusterTasks extends java.lang.ObjectThis class defines tasks that related to cluster configuration.
-
-
Constructor Summary
Constructors Constructor and Description ServerClusterTasks(ConfigService configService)
-
Method Summary
Methods Modifier and Type Method and Description javax.management.ObjectNameconvertToCluster(Session session, javax.management.ObjectName server, java.lang.String clusterName)Creates a newServerClusterand converts the specifiedServerto aClusterMemberof createdServerCluster.javax.management.ObjectNamecreateClusterMember(Session session, javax.management.ObjectName serverCluster, javax.management.AttributeList clusterMemberAttrList, javax.management.ObjectName node, javax.management.ObjectName serverTemplate)Creates a newClusterMemberconfig data and add it into aServerCluster.
-
-
-
Constructor Detail
-
ServerClusterTasks
public ServerClusterTasks(ConfigService configService)
-
-
Method Detail
-
createClusterMember
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
Creates a newClusterMemberconfig data and add it into aServerCluster.- Parameters:
session- session id.serverCluster- the ObjectName of aServerCluster.clusterMemberAttrList- an attribute list that defines the new cluster member.node- the ObjectName of node where the createdClusterMemberconfig data resides.serverTemplate- aServertemplate for the createdClusterMember. If null is supplied, defaultServertemplate is used for the server.- Throws:
ConfigServiceExceptionConnectorException
-
convertToCluster
public javax.management.ObjectName convertToCluster(Session session, javax.management.ObjectName server, java.lang.String clusterName) throws ConfigServiceException, ConnectorException
Creates a newServerClusterand converts the specifiedServerto aClusterMemberof createdServerCluster. If the specified Server is a member of existingServerCluster, a ConfigServiceException will be thrown.- Parameters:
session- a session id.server- ObjectName of a Server..clusterName- the name of createdServerCluster.- Returns:
- the ObjectName of the created
ServerClusterconfig data. - Throws:
ConfigServiceExceptionConnectorException
-
-