1 package org.ultramonkey.l7.controller;
3 import java.io.Serializable;
4 import java.util.HashMap;
6 import org.apache.log4j.Logger;
7 import org.ultramonkey.l7.model.LogCategorySet;
11 * <p>class ReplicationData</p>
12 * <p>Copyright(c) NTT COMWARE 2008</p>
15 public class ReplicationData implements Serializable {
16 static final long serialVersionUID = 1L;
19 * Replication Status (MASTER, MASTER_STOP, SLAVE, SLAVE_STOP, SINGLE, OUT)
21 public ReplicationStatus replicationMode;
24 * Network Interface name of using for replication
29 * IP address and port number of the other node
31 public EndPoint otherNode;
34 * Replication interval seconds
39 * Replication component setting
41 public HashMap<String, Integer> component;
48 public ReplicationData() {
49 // --- debug log (constructor) ---
50 Logger repLogger = Logger.getLogger(LogCategorySet.GUI_REPLICATION);
51 if (repLogger.isDebugEnabled()) {
52 repLogger.debug("11508 class ReplicationData created.");
54 // --- debug log (constructor) ---
56 this.replicationMode = ReplicationStatus.MASTER_STOP;
58 this.otherNode = new EndPoint();
60 this.component = new HashMap<String, Integer>();
67 public String toString() {
69 "replicationMode=" + this.replicationMode + ", " +
70 "nic=\"" + this.nic + "\", " +
71 "otherNode=(" + this.otherNode + "), " +
72 "interval=" + this.interval + ", " +
73 "component=(" + this.component + ")";