Tabnine Logo
EndpointEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
EndpointEvent
in
org.kaaproject.kaa.server.common.thrift.gen.operations

Best Java code snippets using org.kaaproject.kaa.server.common.thrift.gen.operations.EndpointEvent (Showing top 15 results out of 315)

origin: kaaproject/kaa

public EndpointEvent deepCopy() {
 return new EndpointEvent(this);
}
origin: kaaproject/kaa

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();
}
origin: kaaproject/kaa

@Override
public boolean equals(Object that) {
 if (that == null)
  return false;
 if (that instanceof EndpointEvent)
  return this.equals((EndpointEvent)that);
 return false;
}
origin: kaaproject/kaa

/** 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();
}
origin: kaaproject/kaa

/**
 * 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;
}
origin: kaaproject/kaa

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 { 
origin: kaaproject/kaa

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()) {
origin: kaaproject/kaa

 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))
origin: kaaproject/kaa

 @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);
  }
 }
}
origin: kaaproject/kaa

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()),
origin: kaaproject/kaa

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);
origin: kaaproject/kaa

@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();
}
origin: kaaproject/kaa

/**
 * 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);
 }
}
origin: kaaproject/kaa

if (!(this_present_endpointEvent && that_present_endpointEvent))
 return false;
if (!this.endpointEvent.equals(that.endpointEvent))
 return false;
origin: kaaproject/kaa

  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(
org.kaaproject.kaa.server.common.thrift.gen.operationsEndpointEvent

Most used methods

  • <init>
    Performs a deep copy on other.
  • getCreateTime
  • getEventData
  • getSender
  • getUuid
  • getVersion
  • equals
  • isSetCreateTime
    Returns true if field createTime is set (has been assigned a value) and false otherwise
  • isSetEventData
    Returns true if field eventData is set (has been assigned a value) and false otherwise
  • isSetSender
    Returns true if field sender is set (has been assigned a value) and false otherwise
  • isSetUuid
    Returns true if field uuid is set (has been assigned a value) and false otherwise
  • isSetVersion
    Returns true if field version is set (has been assigned a value) and false otherwise
  • isSetUuid,
  • isSetVersion,
  • read,
  • setCreateTime,
  • setCreateTimeIsSet,
  • setEventData,
  • setEventDataIsSet,
  • setSender,
  • setSenderIsSet,
  • setUuid

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now