Tabnine Logo
ServerInventory.suspendServers
Code IndexAdd Tabnine to your IDE (free)

How to use
suspendServers
method
in
org.jboss.as.host.controller.ServerInventory

Best Java code snippets using org.jboss.as.host.controller.ServerInventory.suspendServers (Showing top 8 results out of 315)

origin: org.wildfly.core/wildfly-host-controller

  @Override
  public List<ModelNode> suspendServers(Set<String> serverNames, int timeout, BlockingTimeout blockingTimeout) {
    return getServerInventory().suspendServers(serverNames, timeout, blockingTimeout);
  }
}
origin: wildfly/wildfly-core

@Override
public List<ModelNode> suspendServers(Set<String> serverNames, BlockingTimeout blockingTimeout) {
  return getServerInventory().suspendServers(serverNames, blockingTimeout);
}
origin: wildfly/wildfly-core

  @Override
  public List<ModelNode> suspendServers(Set<String> serverNames, int timeout, BlockingTimeout blockingTimeout) {
    return getServerInventory().suspendServers(serverNames, timeout, blockingTimeout);
  }
}
origin: org.wildfly.core/wildfly-host-controller

@Override
public List<ModelNode> suspendServers(Set<String> serverNames, BlockingTimeout blockingTimeout) {
  return getServerInventory().suspendServers(serverNames, blockingTimeout);
}
origin: org.wildfly.core/wildfly-host-controller

  @Override
  public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
    // WFLY-2189 trigger a write-runtime authz check
    context.getServiceRegistry(true);
    final List<ModelNode> errorResponses  = serverInventory.suspendServers(Collections.singleton(serverName), suspendTimeout, blockingTimeout);
    if ( !errorResponses.isEmpty() ){
      context.getFailureDescription().set(errorResponses.get(0));
    }
  }
}, OperationContext.Stage.RUNTIME);
origin: wildfly/wildfly-core

  @Override
  public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
    // WFLY-2189 trigger a write-runtime authz check
    context.getServiceRegistry(true);
    final List<ModelNode> errorResponses  = serverInventory.suspendServers(Collections.singleton(serverName), suspendTimeout, blockingTimeout);
    if ( !errorResponses.isEmpty() ){
      context.getFailureDescription().set(errorResponses.get(0));
    }
  }
}, OperationContext.Stage.RUNTIME);
origin: wildfly/wildfly-core

  @Override
  public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
    // Even though we don't read from the service registry, we are modifying a service
    context.getServiceRegistry(true);
    Map<String, ProcessInfo> processes = serverInventory.determineRunningProcesses(true);
    final Set<String> serversInGroup = getServersForGroup(model, group);
    final Set<String> waitForServers = new HashSet<>();
    for (String serverName : processes.keySet()) {
      final String serverModelName = serverInventory.getProcessServerName(serverName);
      if (group == null || serversInGroup.contains(serverModelName)) {
        waitForServers.add(serverModelName);
      }
    }
    final List<ModelNode> errorResponses  = serverInventory.suspendServers(waitForServers, suspendTimeout, blockingTimeout);
    if ( !errorResponses.isEmpty() ){
      context.getFailureDescription().set(errorResponses);
    }
    context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
  }
}, Stage.RUNTIME);
origin: org.wildfly.core/wildfly-host-controller

  @Override
  public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
    // Even though we don't read from the service registry, we are modifying a service
    context.getServiceRegistry(true);
    Map<String, ProcessInfo> processes = serverInventory.determineRunningProcesses(true);
    final Set<String> serversInGroup = getServersForGroup(model, group);
    final Set<String> waitForServers = new HashSet<>();
    for (String serverName : processes.keySet()) {
      final String serverModelName = serverInventory.getProcessServerName(serverName);
      if (group == null || serversInGroup.contains(serverModelName)) {
        waitForServers.add(serverModelName);
      }
    }
    final List<ModelNode> errorResponses  = serverInventory.suspendServers(waitForServers, suspendTimeout, blockingTimeout);
    if ( !errorResponses.isEmpty() ){
      context.getFailureDescription().set(errorResponses);
    }
    context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
  }
}, Stage.RUNTIME);
org.jboss.as.host.controllerServerInventorysuspendServers

Javadoc

Suspend the servers up to the timeout, allowing current requests to finish and blocking any new requests from starting.

Popular methods of ServerInventory

  • connectionFinished
    Signal the end of the PC connection, regardless of the reason.
  • determineRunningProcesses
    Gets information on all the running processes
  • determineServerStatus
    Get the status of the server with the given name.
  • getProcessServerName
    Gets the server model name for a process
  • getServerCallbackHandler
    Gets a callback handler security services can use for handling authentication data provided by a ser
  • getServerProcessName
    Gets the process name for a server
  • operationFailed
    Notification that an operation failed on the process-controller.
  • processInventory
    Notification that managed server process information is available.
  • reconnectServer
    Re-establishes management communications with a server following a restart of the Host Controller pr
  • restartServer
    Restart the server with the given name.
  • serverCommunicationRegistered
    Notification that a channel for communication with a managed server process has been registered.
  • serverProcessAdded
    Notification that a server has been added to the process-controller.
  • serverCommunicationRegistered,
  • serverProcessAdded,
  • serverProcessRemoved,
  • serverProcessStarted,
  • serverProcessStopped,
  • serverReconnected,
  • serverStartFailed,
  • serverStarted,
  • startServer,
  • stopServer

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • 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