/** * Create an instance of {@link NodeDTO } * */ public NodeDTO createNodeDTO() { return new NodeDTO(); }
public NodeDTO withDescription(String value) { setDescription(value); return this; }
public NodeDTO withExecutors(int value) { setExecutors(value); return this; }
public NodeDTO convert(final hudson.model.Node source) { assert source != null; log.trace("Converting: {}", source); NodeDTO target = new NodeDTO(); target.setName(source.getNodeName()); target.setDescription(source.getNodeDescription()); target.setExecutors(source.getNumExecutors()); target.setMode(convert(source.getMode())); // target.setConnected(); // target.setOnline(); // target.setOfflineCause(); // target.setConnectTime(); return target; }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof NodeDTO)) { return false; } final NodeDTO that = ((NodeDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getDescription(), that.getDescription()); builder.append(this.getExecutors(), that.getExecutors()); builder.append(this.getMode(), that.getMode()); return builder.build(); }
public NodeDTO withName(String value) { setName(value); return this; }
public NodeDTO withMode(NodeModeDTO value) { setMode(value); return this; }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof NodeDTO)) { return false; } final NodeDTO that = ((NodeDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getDescription(), that.getDescription()); builder.append(this.getExecutors(), that.getExecutors()); builder.append(this.getMode(), that.getMode()); return builder.build(); }
public NodeDTO withName(String value) { setName(value); return this; }
public NodeDTO withMode(NodeModeDTO value) { setMode(value); return this; }
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getDescription()); builder.append(this.getExecutors()); builder.append(this.getMode()); return builder.build(); }
/** * Create an instance of {@link NodeDTO } * */ public NodeDTO createNodeDTO() { return new NodeDTO(); }
public NodeDTO withDescription(String value) { setDescription(value); return this; }
public NodeDTO withExecutors(int value) { setExecutors(value); return this; }
@Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getDescription()); builder.append(this.getExecutors()); builder.append(this.getMode()); return builder.build(); }