コード例 #1
0
 protected RequisitionNode createNode(final String id) {
   RequisitionNode node = new RequisitionNode();
   node.setForeignId(id);
   node.setNodeLabel("node " + id);
   RequisitionInterface iface = new RequisitionInterface();
   iface.setIpAddr("172.16.0." + id);
   node.putInterface(iface);
   return node;
 }
コード例 #2
0
 private RequisitionNode createNode(final String nodeLabel, final String foreignId) {
   final RequisitionNode node = new RequisitionNode();
   node.setNodeLabel(nodeLabel);
   node.setForeignId(foreignId);
   return node;
 }