Alachisoft.NCache.Common.Mirroring.GroupInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Common.Mirroring;
/*************************************************************************
* Author: Hasan Khan
* Date created: 17-04-2008
*
* Modified By: Arif Iftikhar, Hasan Khan
* Last modified by: Arif Iftikhar
* Date modified: 06-05-2008
/*************************************************************************/
/**
* It represents a cache node.
*
* The properties NodeGroup and MirrorGroup give the group id of the active
* and mirror cache on the same node.
*
* Note: Mirror on the same node belongs to some other active node hence group id
* for both are different for a single node.
*
*/
public class GroupInfo {
private String nodeGroup;
private String mirrorGroup;
public GroupInfo() {
}
public GroupInfo(String nodeGroup, String mirrorGroup) {
this.nodeGroup = nodeGroup;
this.mirrorGroup = mirrorGroup;
}
/**
* Group id for the active cache on the node
*/
public final String getNodeGroup() {
return nodeGroup;
}
public final void setNodeGroup(String value) {
nodeGroup = value;
}
/**
* Group id for the mirror cache on the node
*/
public final String getMirrorGroup() {
return mirrorGroup;
}
public final void setMirrorGroup(String value) {
mirrorGroup = value;
}
@Override
public String toString() {
return String.format("Group = %1$s, Mirror = %2$s", nodeGroup, mirrorGroup);
}
}