Tabnine Logo
JsonControlService.getControl
Code IndexAdd Tabnine to your IDE (free)

How to use
getControl
method
in
org.apache.edgent.runtime.jsoncontrol.JsonControlService

Best Java code snippets using org.apache.edgent.runtime.jsoncontrol.JsonControlService.getControl (Showing top 4 results out of 315)

origin: apache/incubator-edgent

  /**
   * Submit the specified application previously registered
   * via {@link #registerTopology(String, BiConsumer) registerTopology}.
   * @param appName name of registered application
   * @param config See {@link #submit(Topology, JsonObject) submit}. May be null.
   * 
   * @throws Exception on failure starting applications.
   */
  private void submitApplication(String appName, JsonObject config) throws Exception {
   if (systemApps.contains(appName)) {
    throw new IllegalArgumentException("appName");
   }
   ApplicationServiceMXBean bean = getControlService().getControl(ApplicationServiceMXBean.TYPE,
     ApplicationService.ALIAS, ApplicationServiceMXBean.class);
   bean.submit(appName, config==null ? null : config.toString());
  }
}
origin: org.apache.edgent/edgent-providers-iot

  /**
   * Submit the specified application previously registered
   * via {@link #registerTopology(String, BiConsumer) registerTopology}.
   * @param appName name of registered application
   * @param config See {@link #submit(Topology, JsonObject) submit}. May be null.
   * 
   * @throws Exception on failure starting applications.
   */
  private void submitApplication(String appName, JsonObject config) throws Exception {
   if (systemApps.contains(appName)) {
    throw new IllegalArgumentException("appName");
   }
   ApplicationServiceMXBean bean = getControlService().getControl(ApplicationServiceMXBean.TYPE,
     ApplicationService.ALIAS, ApplicationServiceMXBean.class);
   bean.submit(appName, config==null ? null : config.toString());
  }
}
origin: org.apache.edgent/edgent-providers-iot

/**
 * Start this provider by starting its system applications 
 * and any autoSubmit-enabled registered applications.
 * 
 * @throws Exception on failure starting applications.
 */
public void start() throws Exception {
  ApplicationServiceMXBean bean = getControlService().getControl(ApplicationServiceMXBean.TYPE,
      ApplicationService.ALIAS, ApplicationServiceMXBean.class);
  
  for (String systemAppName : systemApps) {
    bean.submit(systemAppName, null /* no config */);
  }
  
  for (Entry<String,JsonObject> e : autoSubmitApps.entrySet()) {
   submitApplication(e.getKey(), e.getValue());
  }
}
origin: apache/incubator-edgent

/**
 * Start this provider by starting its system applications 
 * and any autoSubmit-enabled registered applications.
 * 
 * @throws Exception on failure starting applications.
 */
public void start() throws Exception {
  ApplicationServiceMXBean bean = getControlService().getControl(ApplicationServiceMXBean.TYPE,
      ApplicationService.ALIAS, ApplicationServiceMXBean.class);
  
  for (String systemAppName : systemApps) {
    bean.submit(systemAppName, null /* no config */);
  }
  
  for (Entry<String,JsonObject> e : autoSubmitApps.entrySet()) {
   submitApplication(e.getKey(), e.getValue());
  }
}
org.apache.edgent.runtime.jsoncontrolJsonControlServicegetControl

Popular methods of JsonControlService

  • <init>
  • controlRequest
    Handle a JSON control request. The control action is executed directly using the calling thread.
  • controlOperation
    Handle a control operation. An operation maps to a void method.
  • executeMethod
  • findMethod
  • getArguments
  • getControlId
  • getControlMBean
  • registerControl
    All control service MBeans must be valid according to Controls#isControlServiceMBean(Class).

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Top PhpStorm 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