Codota Logo
KieServerIntegration.buildClientsForServer
Code IndexAdd Codota to your IDE (free)

How to use
buildClientsForServer
method
in
org.jbpm.workbench.ks.integration.KieServerIntegration

Best Java code snippets using org.jbpm.workbench.ks.integration.KieServerIntegration.buildClientsForServer (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: kiegroup/jbpm-wb

public void onServerTemplateUpdated(@Observes ServerTemplateUpdated serverTemplateUpdated) {
  buildClientsForServer(serverTemplateUpdated.getServerTemplate());
}
origin: kiegroup/jbpm-wb

@PostConstruct
public void createAvailableClients() {
  ServiceLoader<KieServicesClientProvider> loader = ServiceLoader.load(KieServicesClientProvider.class);
  loader.forEach(provider -> {
    // skip default http/rest based client providers and use admin client created here
    if (!provider.supports("http")) {
      clientProviders.add(provider);
    }
    allClientProviders.add(provider);
  });
  clientProviders.sort((KieServicesClientProvider one, KieServicesClientProvider two) -> one.getPriority().compareTo(two.getPriority()));
  kieServices = KieServices.Factory.get();
  ServerTemplateList serverTemplates = specManagementService.listServerTemplates();
  logger.debug("Found {} server templates, creating clients for them...",
         serverTemplates.getServerTemplates().length);
  for (ServerTemplate serverTemplate : serverTemplates.getServerTemplates()) {
    buildClientsForServer(serverTemplate);
  }
}
origin: kiegroup/jbpm-wb

protected void updateOrBuildClient(KieServicesClient client,
                  ServerInstance serverInstance) {
  if (client != null) {
    LoadBalancer loadBalancer = ((AbstractKieServicesClientImpl) client).getLoadBalancer();
    loadBalancer.activate(serverInstance.getUrl());
    logger.debug("Server instance {} for server template {} activated on client thus will be used for operations",
           serverInstance.getUrl(),
           serverInstance.getServerTemplateId());
  } else {
    logger.debug("No kie server client yet created, attempting to create one for server template {}",
           serverInstance.getServerTemplateId());
    ServerTemplate serverTemplate = specManagementService.getServerTemplate(serverInstance.getServerTemplateId());
    buildClientsForServer(serverTemplate);
  }
}
org.jbpm.workbench.ks.integrationKieServerIntegrationbuildClientsForServer

Popular methods of KieServerIntegration

  • getServerClient
  • broadcastToKieServers
  • getAdminServerClient
  • getAdminServerClientCheckEndpoints
  • createClientForTemplate
  • getClient
  • getServerInstancesById
  • getServerTemplatesClients
  • indexServerInstances
  • onServerInstanceConnected
  • onServerInstanceDisconnected
  • onServerTemplateDeleted
  • onServerInstanceDisconnected,
  • onServerTemplateDeleted,
  • removeServerInstancesFromIndex,
  • setKieServicesClientProviders,
  • updateOrBuildClient

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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