public ConnectionRequestMessage(
     final String tag,
     final NodeAddress sourceId,
     final NodeAddress destID,
     final Payload payload) {
   super(tag, sourceId, destID);
   if (sourceId.equals(destID)) {
     throw new RuntimeException("can't connect to yourself!");
   }
   this.payload = payload;
 }
Exemplo n.º 2
0
 @Override
 protected String getContents() {
   return node.toString();
 }