public String getRackId() { return Util.bytesToString(get(RACK_ID)); }
public String getName() { return Util.bytesToString(get(NAME)); }
public String getPayload() { return Util.bytesToString(get(PAYLOAD)); }
public String getSiteId() { return Util.bytesToString(get(SITE_ID)); }
public String getMachineId() { return Util.bytesToString(get(MACHINE_ID)); }
public String getSiteId() { return Util.bytesToString(get(SITE_ID)); }
public String getRackId() { return Util.bytesToString(get(RACK_ID)); }
public String getMachineId() { return Util.bytesToString(get(MACHINE_ID)); }
public String getSite() { return Util.bytesToString(get(SITE_NAME)); }
public String getPayload() { return Util.bytesToString(get(PAYLOAD)); }
public String getSite() { return Util.bytesToString(get(SITE_NAME)); }
public String getMachineId() { return Util.bytesToString(get(MACHINE_ID)); }
public String getSiteId() { return Util.bytesToString(get(SITE_ID)); }
public String getName() { return Util.bytesToString(get(NAME)); }
public String getSite() { return Util.bytesToString(get(SITE_NAME)); }
public String getPayload() { return Util.bytesToString(get(PAYLOAD)); }
public String getName() { return Util.bytesToString(get(NAME)); }
/** Does the payload match the 'site' ID. Checks only unicast destinations (multicast destinations return true) */ protected boolean isLocal(Address dest) { if(dest instanceof ExtendedUUID) { byte[] tmp=((ExtendedUUID)dest).get(SITE_ID); String str=Util.bytesToString(tmp); return str != null && str.equals(this.site); } else if(dest instanceof TopologyUUID) { String tmp=((TopologyUUID)dest).getSiteId(); return tmp != null && tmp.equals(this.site); } return true; }
/** Does the payload match the 'site' ID. Checks only unicast destinations (multicast destinations return true) */ protected boolean isLocal(Address dest) { if(dest instanceof ExtendedUUID) { byte[] tmp=((ExtendedUUID)dest).get(SITE_ID); String str=Util.bytesToString(tmp); return str != null && str.equals(this.site); } else if(dest instanceof TopologyUUID) { String tmp=((TopologyUUID)dest).getSiteId(); return tmp != null && tmp.equals(this.site); } return true; }
/** Does the payload match the 'site' ID. Checks only unicast destinations (multicast destinations return true) */ protected boolean isLocal(Address dest) { if(dest instanceof ExtendedUUID) { byte[] tmp=((ExtendedUUID)dest).get(SITE_ID); String str=Util.bytesToString(tmp); return str != null && str.equals(this.site); } else if(dest instanceof TopologyUUID) { String tmp=((TopologyUUID)dest).getSiteId(); return tmp != null && tmp.equals(this.site); } return true; }