public EndpointEvent deepCopy() { return new EndpointEvent(this); }
public Object getFieldValue(_Fields field) { switch (field) { case UUID: return getUuid(); case SENDER: return getSender(); case EVENT_DATA: return getEventData(); case CREATE_TIME: return getCreateTime(); case VERSION: return getVersion(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof EndpointEvent) return this.equals((EndpointEvent)that); return false; }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case UUID: return isSetUuid(); case SENDER: return isSetSender(); case EVENT_DATA: return isSetEventData(); case CREATE_TIME: return isSetCreateTime(); case VERSION: return isSetVersion(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public EndpointEvent(EndpointEvent other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetUuid()) { this.uuid = other.uuid; } if (other.isSetSender()) { this.sender = other.sender; } if (other.isSetEventData()) { this.eventData = org.apache.thrift.TBaseHelper.copyBinary(other.eventData); } this.createTime = other.createTime; this.version = other.version; }
case 3: // ENDPOINT_EVENT if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.endpointEvent = new EndpointEvent(); struct.endpointEvent.read(iprot); struct.setEndpointEventIsSet(true); } else {
lastComparison = Boolean.valueOf(isSetUuid()).compareTo(other.isSetUuid()); if (lastComparison != 0) { return lastComparison; if (isSetUuid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.uuid, other.uuid); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetSender()).compareTo(other.isSetSender()); if (lastComparison != 0) { return lastComparison; if (isSetSender()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sender, other.sender); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetEventData()).compareTo(other.isSetEventData()); if (lastComparison != 0) { return lastComparison; if (isSetEventData()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventData, other.eventData); if (lastComparison != 0) { lastComparison = Boolean.valueOf(isSetCreateTime()).compareTo(other.isSetCreateTime()); if (lastComparison != 0) { return lastComparison; if (isSetCreateTime()) {
return false; boolean this_present_uuid = true && this.isSetUuid(); boolean that_present_uuid = true && that.isSetUuid(); if (this_present_uuid || that_present_uuid) { if (!(this_present_uuid && that_present_uuid)) boolean this_present_sender = true && this.isSetSender(); boolean that_present_sender = true && that.isSetSender(); if (this_present_sender || that_present_sender) { if (!(this_present_sender && that_present_sender)) boolean this_present_eventData = true && this.isSetEventData(); boolean that_present_eventData = true && that.isSetEventData(); if (this_present_eventData || that_present_eventData) { if (!(this_present_eventData && that_present_eventData))
@Override public void read(org.apache.thrift.protocol.TProtocol prot, Event struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { struct.userId = iprot.readString(); struct.setUserIdIsSet(true); } if (incoming.get(1)) { struct.tenantId = iprot.readString(); struct.setTenantIdIsSet(true); } if (incoming.get(2)) { struct.endpointEvent = new EndpointEvent(); struct.endpointEvent.read(iprot); struct.setEndpointEventIsSet(true); } if (incoming.get(3)) { struct.routeAddress = new RouteAddress(); struct.routeAddress.read(iprot); struct.setRouteAddressIsSet(true); } } }
try { localEvent = AvroEncDec.convert(eventConverter.get().fromByteArray( event.getEndpointEvent().getEventData())); EndpointEvent endpointEvent = new EndpointEvent( EndpointObjectHash.fromBytes(event.getEndpointEvent().getSender()), localEvent, UUID.fromString( event.getEndpointEvent().getUuid()), event.getEndpointEvent().getCreateTime(), event.getEndpointEvent().getVersion()); RouteTableAddress recipient = new RouteTableAddress( EndpointObjectHash.fromBytes(event.getRouteAddress().getEndpointKey()),
TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUuid()) { optionals.set(0); if (struct.isSetSender()) { optionals.set(1); if (struct.isSetEventData()) { optionals.set(2); if (struct.isSetCreateTime()) { optionals.set(3); if (struct.isSetVersion()) { optionals.set(4); if (struct.isSetUuid()) { oprot.writeString(struct.uuid); if (struct.isSetSender()) { oprot.writeBinary(struct.sender); if (struct.isSetEventData()) { oprot.writeBinary(struct.eventData); if (struct.isSetCreateTime()) { oprot.writeI64(struct.createTime);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_uuid = true && (isSetUuid()); list.add(present_uuid); if (present_uuid) list.add(uuid); boolean present_sender = true && (isSetSender()); list.add(present_sender); if (present_sender) list.add(sender); boolean present_eventData = true && (isSetEventData()); list.add(present_eventData); if (present_eventData) list.add(eventData); boolean present_createTime = true; list.add(present_createTime); if (present_createTime) list.add(createTime); boolean present_version = true; list.add(present_version); if (present_version) list.add(version); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public Event(Event other) { if (other.isSetUserId()) { this.userId = other.userId; } if (other.isSetTenantId()) { this.tenantId = other.tenantId; } if (other.isSetEndpointEvent()) { this.endpointEvent = new EndpointEvent(other.endpointEvent); } if (other.isSetRouteAddress()) { this.routeAddress = new RouteAddress(other.routeAddress); } }
if (!(this_present_endpointEvent && that_present_endpointEvent)) return false; if (!this.endpointEvent.equals(that.endpointEvent)) return false;
eventConverter.get().toByteArray(AvroEncDec.convert(eventSource))); org.kaaproject.kaa.server.common.thrift.gen.operations.EndpointEvent endpointEvent = new org.kaaproject.kaa.server.common.thrift.gen.operations.EndpointEvent( remoteEndpointEvent.getEvent().getId().toString(), ByteBuffer.wrap(