Codota Logo
ThriftEndpointConfigurationRefreshMessage.setActorClassifier
Code IndexAdd Codota to your IDE (free)

How to use
setActorClassifier
method
in
org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftEndpointConfigurationRefreshMessage

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: kaaproject/kaa

private void processEndpointConfigurationRefreshMsg(ActorContext context, ThriftEndpointConfigurationRefreshMessage thriftMsg) {
 ThriftEndpointConfigurationRefreshMessage localMsg = new ThriftEndpointConfigurationRefreshMessage(thriftMsg);
 localMsg.setActorClassifier(ThriftActorClassifier.LOCAL);
 dispatchMsg(context, localMsg, clusterService::sendEndpointConfigurationRefreshMessage);
}
origin: kaaproject/kaa

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case ADDRESS:
  if (value == null) {
   unsetAddress();
  } else {
   setAddress((ThriftEntityAddress)value);
  }
  break;
 case ACTOR_CLASSIFIER:
  if (value == null) {
   unsetActorClassifier();
  } else {
   setActorClassifier((ThriftActorClassifier)value);
  }
  break;
 }
}
origin: kaaproject/kaa

private void sendEndpointConfigurationRefreshMessage(EndpointSpecificConfigurationDto configuration) {
 byte[] endpointKeyHashBytes = configuration.getEndpointKeyHash();
 EndpointProfileDto endpointProfile = endpointService.findEndpointProfileByKeyHash(endpointKeyHashBytes);
 if (!configuration.getConfigurationSchemaVersion().equals(endpointProfile.getConfigurationVersion())) {
  return;
 }
 checkNeighbors();
 String endpointKeyHash = Base64Util.encode(configuration.getEndpointKeyHash());
 ApplicationDto appDto = applicationService.findAppById(endpointProfile.getApplicationId());
 OperationsNodeInfo server = resolve(endpointKeyHash);
 if (server != null) {
  ThriftEndpointConfigurationRefreshMessage msg = new ThriftEndpointConfigurationRefreshMessage();
  msg.setAddress(new ThriftEntityAddress(appDto.getTenantId(), appDto.getApplicationToken(), ThriftClusterEntityType.ENDPOINT,
    ByteBuffer.wrap(endpointKeyHashBytes)));
  msg.setActorClassifier(ThriftActorClassifier.GLOBAL);
  if (LOG.isTraceEnabled()) {
   LOG.trace("Sending message {} to [{}]", msg, Neighbors.getServerId(server.getConnectionInfo()));
  }
  neighbors.sendMessage(server.getConnectionInfo(), OperationsServiceMsg.fromEndpointConfigurationRefresh(msg));
 } else {
  LOG.warn("Can't find server for endpoint [{}]", endpointKeyHash);
 }
}
org.kaaproject.kaa.server.common.thrift.gen.operationsThriftEndpointConfigurationRefreshMessagesetActorClassifier

Popular methods of ThriftEndpointConfigurationRefreshMessage

  • <init>
    Performs a deep copy on other.
  • getActorClassifier
  • getAddress
  • setAddress
  • equals
  • isSetActorClassifier
    Returns true if field actorClassifier is set (has been assigned a value) and false otherwise
  • isSetAddress
    Returns true if field address is set (has been assigned a value) and false otherwise
  • read
  • setActorClassifierIsSet
  • setAddressIsSet
  • unsetActorClassifier
  • unsetAddress
  • unsetActorClassifier,
  • unsetAddress,
  • validate,
  • write

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now