Tabnine Logo
ServerInstanceKey.getServerInstanceId
Code IndexAdd Tabnine to your IDE (free)

How to use
getServerInstanceId
method
in
org.kie.server.controller.api.model.runtime.ServerInstanceKey

Best Java code snippets using org.kie.server.controller.api.model.runtime.ServerInstanceKey.getServerInstanceId (Showing top 20 results out of 315)

origin: kiegroup/droolsjbpm-integration

public Container( final String containerSpecId,
    final String containerName,
    final ServerInstanceKey serverInstanceKey,
    final Collection<Message> messages,
    final ReleaseId resolvedReleasedId,
    final String url ) {
  super( containerSpecId, containerName, serverInstanceKey );
  this.serverInstanceId = serverInstanceKey.getServerInstanceId();
  this.messages.addAll( messages );
  this.resolvedReleasedId = resolvedReleasedId;
}
origin: org.kie.server/kie-server-controller-api

public Container( final String containerSpecId,
    final String containerName,
    final ServerInstanceKey serverInstanceKey,
    final Collection<Message> messages,
    final ReleaseId resolvedReleasedId,
    final String url ) {
  super( containerSpecId, containerName, serverInstanceKey );
  this.serverInstanceId = serverInstanceKey.getServerInstanceId();
  this.messages.addAll( messages );
  this.resolvedReleasedId = resolvedReleasedId;
}
origin: kiegroup/droolsjbpm-integration

public void deleteServerInstance(String serverInstanceId) {
  if (serverInstances == null) {
    return;
  }
  Iterator<ServerInstanceKey> iterator = serverInstances.iterator();
  while(iterator.hasNext()) {
    ServerInstanceKey serverInstanceKey = iterator.next();
    if (serverInstanceId.equals(serverInstanceKey.getServerInstanceId())) {
      iterator.remove();
    }
  }
}
origin: org.kie.server/kie-server-controller-api

public void deleteServerInstance(String serverInstanceId) {
  if (serverInstances == null) {
    return;
  }
  Iterator<ServerInstanceKey> iterator = serverInstances.iterator();
  while(iterator.hasNext()) {
    ServerInstanceKey serverInstanceKey = iterator.next();
    if (serverInstanceId.equals(serverInstanceKey.getServerInstanceId())) {
      iterator.remove();
    }
  }
}
origin: kiegroup/droolsjbpm-integration

public boolean hasServerInstanceId(String serverInstanceId) {
  for (ServerInstanceKey instance : getServerInstanceKeys()) {
    if (instance.getServerInstanceId().equals(serverInstanceId)) {
      return true;
    }
  }
  return false;
}
origin: org.kie.server/kie-server-controller-api

public boolean hasServerInstanceId(String serverInstanceId) {
  for (ServerInstanceKey instance : getServerInstanceKeys()) {
    if (instance.getServerInstanceId().equals(serverInstanceId)) {
      return true;
    }
  }
  return false;
}
origin: org.kie.server/kie-server-controller-api

public ServerInstanceKey getServerInstance(String serverInstanceId) {
  for (ServerInstanceKey instance : getServerInstanceKeys()) {
    if (instance.getServerInstanceId().equals(serverInstanceId)) {
      return instance;
    }
  }
  return null;
}
origin: org.jbpm/jbpm-console-ng-kie-server-backend

protected void indexServerInstances(ServerTemplate serverTemplate) {
  for (ServerInstanceKey serverInstanceKey : serverTemplate.getServerInstanceKeys()) {
    serverInstancesById.put(serverInstanceKey.getServerInstanceId(), serverInstanceKey);
  }
}
origin: kiegroup/jbpm-wb

protected void indexServerInstances(ServerTemplate serverTemplate) {
  serverTemplate.getServerInstanceKeys().forEach(serverInstanceKey -> serverInstancesById.put(serverInstanceKey.getServerInstanceId(),
                                                serverInstanceKey));
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

private void index( final Container container,
          final ContainerCardPresenter cardPresenter ) {
  if ( !index.containsKey( container.getServerInstanceKey().getServerInstanceId() ) ) {
    index.put( container.getServerInstanceKey().getServerInstanceId(), new HashMap<String, ContainerCardPresenter>() );
  }
  index.get( container.getServerInstanceKey().getServerInstanceId() ).put( container.getContainerSpecId(), cardPresenter );
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

private void addServerInstance( final ServerInstanceKey serverInstanceKey ) {
  serverInstances.add( serverInstanceKey.getServerInstanceId() );
  view.addServerInstance( serverInstanceKey.getServerTemplateId(),
              serverInstanceKey.getServerInstanceId(),
              serverInstanceKey.getServerName(),
              new Command() {
                @Override
                public void execute() {
                  serverInstanceSelectedEvent.fire( new ServerInstanceSelected( serverInstanceKey ) );
                }
              } );
}
origin: org.kie.server/kie-server-controller-client

@Override
public ContainerList getContainers(ServerInstanceKey serverInstanceKey) {
  return makeGetRequestAndCreateCustomResponse(controllerBaseUrl + RUNTIME_URI_PART + serverInstanceKey.getServerTemplateId() + INSTANCES_URI_PART + serverInstanceKey.getServerInstanceId() + CONTAINERS_URI_PART, ContainerList.class);
}
origin: org.kie.server/kie-server-controller-impl

@Override
public ContainerList getContainers(ServerInstanceKey serverInstanceKey) {
  return getServerInstanceContainers(serverInstanceKey.getServerTemplateId(),
                    serverInstanceKey.getServerInstanceId());
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

public void onInstanceUpdate( @Observes final ServerInstanceUpdated serverInstanceUpdated ) {
  if ( serverInstanceUpdated != null &&
      serverInstanceUpdated.getServerInstance() != null ) {
    final ServerInstanceKey updatedServerInstanceKey = toKey( serverInstanceUpdated.getServerInstance() );
    if ( serverInstanceKey != null && serverInstanceKey.getServerInstanceId().equals( updatedServerInstanceKey.getServerInstanceId() ) ) {
      serverInstanceKey = updatedServerInstanceKey;
      loadContent( serverInstanceUpdated.getServerInstance().getContainers() );
    }
  } else {
    logger.warn( "Illegal event argument." );
  }
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

public void onServerInstanceSelect( @Observes final ServerInstanceSelected serverInstanceSelected ) {
  if ( serverInstanceSelected != null &&
      serverInstanceSelected.getServerInstanceKey() != null &&
      serverInstanceSelected.getServerInstanceKey().getServerTemplateId() != null &&
      serverInstanceSelected.getServerInstanceKey().getServerInstanceId() != null ) {
    view.selectServerInstance( serverInstanceSelected.getServerInstanceKey().getServerTemplateId(),
                  serverInstanceSelected.getServerInstanceKey().getServerInstanceId() );
  } else {
    logger.warn( "Illegal event argument." );
  }
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

public void load( final ServerInstanceKey serverInstanceKey ) {
  runtimeManagementService.call( new RemoteCallback<Collection<Container>>() {
    @Override
    public void callback( final Collection<Container> containers ) {
      loadContent( containers );
    }
  } ).getContainersByServerInstance( serverInstanceKey.getServerTemplateId(),
                    serverInstanceKey.getServerInstanceId() );
}
origin: org.kie.server/kie-server-controller-impl

protected void notifyOnDisconnect(ServerInstanceKey serverInstanceKey, ServerTemplate serverTemplate) {
  notificationService.notify(new ServerInstanceDeleted(serverInstanceKey.getServerInstanceId()));
  notificationService.notify(new ServerTemplateUpdated(serverTemplate));
  notificationService.notify(new ServerInstanceDisconnected(serverInstanceKey.getServerInstanceId()));
}

origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

@Test
public void testOnDeleteWithoutCurrentServer() {
  final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "serverInstanceKeyId", "serverName", "serverInstanceId", "url" );
  presenter.onDelete( new ServerInstanceDeleted( serverInstanceKey.getServerInstanceId() ) );
  verify( specManagementService, never() ).listServerTemplateKeys();
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

@Test
public void testSelectAndRefreshEmptyContainers() {
  final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "templateId", "serverName", "serverInstanceId", "url" );
  when( runtimeManagementService.getContainersByServerInstance(
      serverInstanceKey.getServerTemplateId(),
      serverInstanceKey.getServerInstanceId() ) ).thenReturn(
      Collections.<Container>emptyList()
  );
  presenter.onSelect( new ServerInstanceSelected( serverInstanceKey ) );
  verify( view ).clear();
  verify( view ).setServerName( serverInstanceKey.getServerName() );
  verify( view ).setServerURL( serverInstanceKey.getUrl() );
  verify( view ).setEmptyView( remoteEmptyPresenter.getView() );
}
origin: org.kie.workbench.screens/kie-wb-common-server-ui-client

@Test
public void testOnServerInstanceSelect() {
  final ServerInstanceKey serverInstanceKey = new ServerInstanceKey( "serverInstanceKeyId", "serverName", "serverInstanceId", "url" );
  presenter.onServerInstanceSelect( new ServerInstanceSelected( serverInstanceKey ) );
  verify( view ).selectServerInstance( serverInstanceKey.getServerTemplateId(), serverInstanceKey.getServerInstanceId() );
}
org.kie.server.controller.api.model.runtimeServerInstanceKeygetServerInstanceId

Popular methods of ServerInstanceKey

  • getServerTemplateId
  • getUrl
  • <init>
  • getServerName
  • equals
  • hashCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • CodeWhisperer alternatives
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