1 18 19 package sync4j.framework.engine.dm; 20 21 import java.util.Map ; 22 import java.util.HashMap ; 23 24 33 public class ManagementOperationResult { 34 36 39 private int statusCode; 40 41 46 public void setStatusCode(int statusCode) { 47 this.statusCode = statusCode; 48 } 49 50 55 public int getStatusCode() { 56 return statusCode; 57 } 58 59 63 private String command; 64 65 70 public void setCommand(String command) { 71 this.command = command; 72 } 73 74 79 public String getCommand() { 80 return command; 81 } 82 83 88 private Map nodes; 89 90 95 public Map getNodes() { 96 return nodes; 97 } 98 99 104 public void setNodes(Map newNodes) { 105 this.nodes = new HashMap (); 106 if (newNodes == null) { 107 return; 108 } 109 110 nodes.putAll(newNodes); 111 } 112 113 119 public void addNodes(Map newNodes) { 120 if (nodes == null) { 121 nodes = new HashMap (); 122 } 123 124 nodes.putAll(newNodes); 125 } 126 127 129 130 public ManagementOperationResult() { 131 statusCode = -1; 132 command = null; 133 nodes = new HashMap (); 134 } 135 136 138 } | Popular Tags |