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

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JTextField (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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