congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RemoteDomainConnectionService
Code IndexAdd Tabnine to your IDE (free)

How to use
RemoteDomainConnectionService
in
org.jboss.as.host.controller

Best Java code snippets using org.jboss.as.host.controller.RemoteDomainConnectionService (Showing top 15 results out of 315)

origin: org.jboss.as/jboss-as-host-controller

public static Future<MasterDomainControllerClient> install(final ServiceTarget serviceTarget, final ModelController controller, final ExtensionRegistry extensionRegistry,
                              final LocalHostControllerInfo localHostControllerInfo, final ProductConfig productConfig,
                              final String securityRealm, final RemoteFileRepository remoteFileRepository,
                              final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry) {
  RemoteDomainConnectionService service = new RemoteDomainConnectionService(controller, extensionRegistry, localHostControllerInfo,
      productConfig, remoteFileRepository, ignoredDomainResourceRegistry);
  ServiceBuilder<MasterDomainControllerClient> builder = serviceTarget.addService(MasterDomainControllerClient.SERVICE_NAME, service)
      .addDependency(ManagementRemotingServices.MANAGEMENT_ENDPOINT, Endpoint.class, service.endpointInjector)
      .setInitialMode(ServiceController.Mode.ACTIVE);
  if (securityRealm != null) {
    ServiceName realmName = SecurityRealmService.BASE_SERVICE_NAME.append(securityRealm);
    builder.addDependency(realmName, SecurityRealm.class, service.securityRealmInjector);
  }
  builder.install();
  return service.futureClient;
}
origin: org.jboss.as/jboss-as-host-controller

@Override
public ModelNode execute(ModelNode operation) throws IOException {
  return execute(operation, OperationMessageHandler.logging);
}
origin: wildfly/wildfly-core

@Override
public synchronized Cancellable pollForConnect() {
  final Future<Connection> future = connection.reconnect();
  setupHandler();
  return new Cancellable() {
    @Override
    public boolean cancel() {
      return future.cancel(true);
    }
  };
}
origin: org.wildfly.core/wildfly-host-controller

    } catch (IOException e) {
      rethrowIrrecoverableConnectionFailures(e);
setupHandler();
break;
logConnectionException(masterURI, discoveryOption, moreOptions, e);
if (!moreOptions) {
  throw HostControllerLogger.ROOT_LOGGER.discoveryOptionsFailureUnableToConnect(e);
origin: org.jboss.as/jboss-as-host-controller

Future<MasterDomainControllerClient> clientFuture = RemoteDomainConnectionService.install(serviceTarget,
    getValue(), extensionRegistry,
    hostControllerInfo,
origin: org.wildfly.core/wildfly-host-controller

  @Override
  public Connection call() throws Exception {
    final ReconnectPolicy reconnectPolicy = ReconnectPolicy.RECONNECT;
    int reconnectionCount = 0;
    for(;;) {
      // Try to connect to the remote host controller by looping through all
      // discovery options
      reconnectPolicy.wait(reconnectionCount);
      HostControllerLogger.ROOT_LOGGER.reconnectingToMaster();
      for (Iterator<DiscoveryOption> i = discoveryOptions.iterator(); i.hasNext(); ) {
        DiscoveryOption discoveryOption = i.next();
        URI masterURI = null;
        try {
          List<RemoteDomainControllerConnectionConfiguration> remoteDcConfigs = discoveryOption.discover();
          for (RemoteDomainControllerConnectionConfiguration remoteDcConfig : remoteDcConfigs) {
            try {
              return connect(remoteDcConfig);
            } catch (IOException ioe) {
              // If the cause is one of the irrecoverable ones, unwrap and throw it on
              RemoteDomainConnectionService.rethrowIrrecoverableConnectionFailures(ioe);
            }
          }
        } catch (Exception e) {
          RemoteDomainConnectionService.logConnectionException(masterURI, discoveryOption, i.hasNext(), e);
        }
      }
      reconnectionCount++;
    }
  }
});
origin: wildfly/wildfly-core

    } catch (IOException e) {
      rethrowIrrecoverableConnectionFailures(e);
setupHandler();
break;
logConnectionException(masterURI, discoveryOption, moreOptions, e);
if (!moreOptions) {
  throw HostControllerLogger.ROOT_LOGGER.discoveryOptionsFailureUnableToConnect(e);
origin: org.wildfly.core/wildfly-host-controller

private DomainConnectResult connectToDomainMaster(ServiceTarget serviceTarget, RunningMode currentRunningMode,
                         boolean usingCachedDC, boolean adminOnly) {
  Future<MasterDomainControllerClient> clientFuture = RemoteDomainConnectionService.install(serviceTarget,
      getValue(),
      extensionRegistry,
origin: wildfly/wildfly-core

  @Override
  public Connection call() throws Exception {
    final ReconnectPolicy reconnectPolicy = ReconnectPolicy.RECONNECT;
    int reconnectionCount = 0;
    for(;;) {
      // Try to connect to the remote host controller by looping through all
      // discovery options
      reconnectPolicy.wait(reconnectionCount);
      HostControllerLogger.ROOT_LOGGER.reconnectingToMaster();
      for (Iterator<DiscoveryOption> i = discoveryOptions.iterator(); i.hasNext(); ) {
        DiscoveryOption discoveryOption = i.next();
        URI masterURI = null;
        try {
          List<RemoteDomainControllerConnectionConfiguration> remoteDcConfigs = discoveryOption.discover();
          for (RemoteDomainControllerConnectionConfiguration remoteDcConfig : remoteDcConfigs) {
            try {
              return connect(remoteDcConfig);
            } catch (IOException ioe) {
              // If the cause is one of the irrecoverable ones, unwrap and throw it on
              RemoteDomainConnectionService.rethrowIrrecoverableConnectionFailures(ioe);
            }
          }
        } catch (Exception e) {
          RemoteDomainConnectionService.logConnectionException(masterURI, discoveryOption, i.hasNext(), e);
        }
      }
      reconnectionCount++;
    }
  }
});
origin: wildfly/wildfly-core

@Override
public ModelNode execute(ModelNode operation) throws IOException {
  return execute(operation, OperationMessageHandler.logging);
}
origin: wildfly/wildfly-core

                        final Map<String, ProxyController> serverProxies,
                        final AtomicBoolean domainConfigAvailable) {
RemoteDomainConnectionService service = new RemoteDomainConnectionService(controller, extensionRegistry, localHostControllerInfo,
    remoteFileRepository, contentRepository,
    ignoredDomainResourceRegistry, operationExecutor, domainController,
origin: wildfly/wildfly-core

private DomainConnectResult connectToDomainMaster(ServiceTarget serviceTarget, RunningMode currentRunningMode,
                         boolean usingCachedDC, boolean adminOnly) {
  Future<MasterDomainControllerClient> clientFuture = RemoteDomainConnectionService.install(serviceTarget,
      getValue(),
      extensionRegistry,
origin: org.wildfly.core/wildfly-host-controller

@Override
public synchronized Cancellable pollForConnect() {
  final Future<Connection> future = connection.reconnect();
  setupHandler();
  return new Cancellable() {
    @Override
    public boolean cancel() {
      return future.cancel(true);
    }
  };
}
origin: org.wildfly.core/wildfly-host-controller

@Override
public ModelNode execute(ModelNode operation) throws IOException {
  return execute(operation, OperationMessageHandler.logging);
}
origin: org.wildfly.core/wildfly-host-controller

                        final Map<String, ProxyController> serverProxies,
                        final AtomicBoolean domainConfigAvailable) {
RemoteDomainConnectionService service = new RemoteDomainConnectionService(controller, extensionRegistry, localHostControllerInfo,
    remoteFileRepository, contentRepository,
    ignoredDomainResourceRegistry, operationExecutor, domainController,
org.jboss.as.host.controllerRemoteDomainConnectionService

Javadoc

Establishes the connection from a slave org.jboss.as.domain.controller.DomainController to the master org.jboss.as.domain.controller.DomainController

Most used methods

  • <init>
  • execute
  • install
  • logConnectionException
    Handles logging tasks related to a failure to connect to a remote HC.
  • rethrowIrrecoverableConnectionFailures
    Analyzes a failure thrown connecting to the master for causes that indicate some problem not likely
  • setupHandler

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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