All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.Mirroring.GroupInfo Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy