@Override public void set(Integer value) { set(value.intValue()); }
@Override public long longValue() { return intValue(); }
@Override public int intValue() { return Bits.getInt(getBytes()); }
public void set(int value) { put(Bits.toByteArray(value)); }
void terminateRequest(RequestId requestId) { final String method = "terminateRequest(RequestId)"; synchronized (requests) { Request request = getRequestById(requestId); requests.remove(request); WFSResult result = new WFSResult(requestId, request.command.getXFSService().getService(), new INT((int) XfsError.CANCELED.getValue()), new DWORD(commandCode(request.command).getValue())); if (LOG.isWarnEnabled()) { LOG.warn(method, "Firing operation complete event: " + result); } request.eventNotification.fireOperationCompleteEvent(result); } }
public WFSResult(RequestId requestID, HSERVICE hService, INT result, DWORD commandCode) { this(); allocate(); this.requestID.set(requestID); this.service.set(hService); this.result.set(result); this.u.get(COMMANDCODE, DWORD.class).set(commandCode); }
public int getResult() { return result.intValue(); }
public SIUPortError(final SIUPortError portError) { this(); allocate(); portType.set(portError.portType); portIndex.set(portError.portIndex); this.portError.set(portError.portError); portStatus.set(portError.portStatus); extra.pointTo(KeyValueMap.toZZString(portError.getExtra())); }
@Override public String toString() { return Integer.toString(intValue()); } }
public WFSResult(WFSResult copy) { this(); allocate(); this.requestID.set(copy.getRequestID()); this.service.set(copy.getService()); this.timestamp.set(copy.getTimestamp()); this.result.set(copy.getResult()); this.u.get(COMMANDCODE, DWORD.class).set(copy.u.get(COMMANDCODE, DWORD.class)); }
@Override public Integer get() { return Integer.valueOf(intValue()); }