1 package org.jgroups.jmx.protocols.pbcast; 2 3 import org.jgroups.jmx.Protocol; 4 5 9 public class GMS extends Protocol implements GMSMBean { 10 org.jgroups.protocols.pbcast.GMS p; 11 12 public GMS() { 13 } 14 15 public GMS(org.jgroups.stack.Protocol p) { 16 super(p); 17 this.p=(org.jgroups.protocols.pbcast.GMS)p; 18 } 19 20 public void attachProtocol(org.jgroups.stack.Protocol p) { 21 super.attachProtocol(p); 22 this.p=(org.jgroups.protocols.pbcast.GMS)p; 23 } 24 25 public String getView() { 26 return p.getView(); 27 } 28 29 public String getLocalAddress() { 30 return p.getLocalAddress(); 31 } 32 33 public String getMembers() { 34 return p.getMembers(); 35 } 36 37 public int getNumMembers() { 38 return p.getNumMembers(); 39 } 40 41 public boolean isCoordinator() { 42 return p.isCoordinator(); 43 } 44 45 public int getNumberOfViews() { 46 return p.getNumberOfViews(); 47 } 48 49 public long getJoinTimeout() { 50 return p.getJoinTimeout(); 51 } 52 53 public void setJoinTimeout(long t) { 54 p.setJoinTimeout(t); 55 } 56 57 public long getJoinRetryTimeout() { 58 return p.getJoinRetryTimeout(); 59 } 60 61 public void setJoinRetryTimeout(long t) { 62 p.setJoinRetryTimeout(t); 63 } 64 65 public boolean isShun() { 66 return p.isShun(); 67 } 68 69 public void setShun(boolean s) { 70 p.setShun(s); 71 } 72 73 public String printPreviousMembers() { 74 return p.printPreviousMembers(); 75 } 76 77 public String printPreviousViews() { 78 return p.printPreviousViews(); 79 } 80 81 public int getViewHandlerQueue() { 82 return p.viewHandlerSize(); 83 } 84 85 public boolean isViewHandlerSuspended() { 86 return p.isViewHandlerSuspended(); 87 } 88 89 public String dumpViewHandlerQueue() { 90 return p.dumpViewHandlerQueue(); 91 } 92 93 public String dumpHistory() { 94 return p.dumpViewHandlerHistory(); 95 } 96 97 public void suspendViewHandler() { 98 p.suspendViewHandler(); 99 } 100 101 public void resumeViewHandler() { 102 p.resumeViewHandler(); 103 } 104 105 } 106 | Popular Tags |