Class NodeGroup
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a collection of cache nodes in a replication group.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The identifier for the node group.A list containing information about individual nodes within the node group.The current state of this replication group - creating, available, etc.int
hashCode()
void
setNodeGroupId
(String nodeGroupId) The identifier for the node group.void
setNodeGroupMembers
(Collection<NodeGroupMember> nodeGroupMembers) A list containing information about individual nodes within the node group.void
setPrimaryEndpoint
(Endpoint primaryEndpoint) void
The current state of this replication group - creating, available, etc.toString()
Returns a string representation of this object; useful for testing and debugging.withNodeGroupId
(String nodeGroupId) The identifier for the node group.withNodeGroupMembers
(NodeGroupMember... nodeGroupMembers) A list containing information about individual nodes within the node group.withNodeGroupMembers
(Collection<NodeGroupMember> nodeGroupMembers) A list containing information about individual nodes within the node group.withPrimaryEndpoint
(Endpoint primaryEndpoint) withStatus
(String status) The current state of this replication group - creating, available, etc.
-
Constructor Details
-
NodeGroup
public NodeGroup()
-
-
Method Details
-
setNodeGroupId
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
- Parameters:
nodeGroupId
- The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
getNodeGroupId
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
- Returns:
- The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
-
withNodeGroupId
The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.
- Parameters:
nodeGroupId
- The identifier for the node group. A replication group contains only one node group; therefore, the node group ID is 0001.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The current state of this replication group - creating, available, etc.
- Parameters:
status
- The current state of this replication group - creating, available, etc.
-
getStatus
The current state of this replication group - creating, available, etc.
- Returns:
- The current state of this replication group - creating, available, etc.
-
withStatus
The current state of this replication group - creating, available, etc.
- Parameters:
status
- The current state of this replication group - creating, available, etc.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrimaryEndpoint
- Parameters:
primaryEndpoint
-
-
getPrimaryEndpoint
- Returns:
-
withPrimaryEndpoint
- Parameters:
primaryEndpoint
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getNodeGroupMembers
A list containing information about individual nodes within the node group.
- Returns:
- A list containing information about individual nodes within the node group.
-
setNodeGroupMembers
A list containing information about individual nodes within the node group.
- Parameters:
nodeGroupMembers
- A list containing information about individual nodes within the node group.
-
withNodeGroupMembers
A list containing information about individual nodes within the node group.
NOTE: This method appends the values to the existing list (if any). Use
setNodeGroupMembers(java.util.Collection)
orwithNodeGroupMembers(java.util.Collection)
if you want to override the existing values.- Parameters:
nodeGroupMembers
- A list containing information about individual nodes within the node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withNodeGroupMembers
A list containing information about individual nodes within the node group.
- Parameters:
nodeGroupMembers
- A list containing information about individual nodes within the node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-