Tabnine Logo
DefaultRestControllerImpl.connectToSingleController
Code IndexAdd Tabnine to your IDE (free)

How to use
connectToSingleController
method
in
org.kie.server.services.impl.controller.DefaultRestControllerImpl

Best Java code snippets using org.kie.server.services.impl.controller.DefaultRestControllerImpl.connectToSingleController (Showing top 2 results out of 315)

origin: org.kie.server/kie-server-services-common

@Override
public KieServerSetup connect(KieServerInfo serverInfo) {
  KieServerState currentState = context.getStateRepository().load(KieServerEnvironment.getServerId());
  Set<String> controllers = currentState.getControllers();
  KieServerConfig config = currentState.getConfiguration();
  if (controllers != null && !controllers.isEmpty()) {
    for (String controllerUrl : controllers) {
      if (controllerUrl != null && !controllerUrl.isEmpty()) {
        KieServerSetup kieServerSetup = connectToSingleController(serverInfo, config, controllerUrl);
        if (kieServerSetup != null) {
          return kieServerSetup;
        }
      }
    }
    throw new KieControllerNotConnectedException("Unable to connect to any controller");
  } else {
    throw new KieControllerNotDefinedException("Unable to connect to any controller");
  }
}
origin: org.kie.server/kie-server-controller-websocket-client

logger.info("Kie Server points to non Web Socket controller '{}', using default REST mechanism", controllerUrl);
KieServerSetup kieServerSetup = restController.connectToSingleController(serverInfo, config, controllerUrl);
if (kieServerSetup != null) {
  return kieServerSetup;
org.kie.server.services.impl.controllerDefaultRestControllerImplconnectToSingleController

Popular methods of DefaultRestControllerImpl

  • <init>
  • disconnectFromSingleController
  • deserialize
  • makeHttpDeleteRequestAndCreateCustomResponse
  • makeHttpPostRequestAndCreateCustomResponse
  • makeHttpPutRequestAndCreateCustomResponse
  • newRequest
  • serialize
  • stopContainer

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Top Vim 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