Codota Logo
ServiceRegistryException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jboss.msc.service.ServiceRegistryException
constructor

Best Java code snippets using org.jboss.msc.service.ServiceRegistryException.<init> (Showing top 9 results out of 315)

  • Common ways to obtain ServiceRegistryException
private void myMethod () {
ServiceRegistryException s =
  • Codota IconThrowable cause;new ServiceRegistryException(cause)
  • Smart code suggestions by Codota
}
origin: io.thorntail/topology

private void forEachLine(String resourceName, Consumer<String> consumer) {
  InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(resourceName);
  if (in == null) {
    return;
  }
  try (BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {
    String line;
    while ((line = reader.readLine()) != null) {
      consumer.accept(line.trim());
    }
  } catch (IOException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: wildfly-swarm-archive/ARCHIVE-wildfly-swarm

@Override
public void activate(ServiceActivatorContext context) throws ServiceRegistryException {
  ServiceTarget target = context.getServiceTarget();
  InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(TopologyArchive.REGISTRATION_CONF);
  if (in == null) {
    return;
  }
  try (BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {
    String serviceName = null;
    while ((serviceName = reader.readLine()) != null) {
      serviceName = serviceName.trim();
      if (!serviceName.isEmpty()) {
        installAdvertiser( target, serviceName, "http" );
        installAdvertiser( target, serviceName, "https" );
      }
    }
  } catch (IOException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: org.wildfly.swarm/topology-runtime

@Override
public void activate(ServiceActivatorContext context) throws ServiceRegistryException {
  ServiceTarget target = context.getServiceTarget();
  InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(TopologyArchive.REGISTRATION_CONF);
  if (in == null) {
    return;
  }
  try (BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {
    String serviceName = null;
    while ((serviceName = reader.readLine()) != null) {
      serviceName = serviceName.trim();
      if (!serviceName.isEmpty()) {
        installAdvertiser(target, serviceName, "http");
        installAdvertiser(target, serviceName, "https");
      }
    }
  } catch (IOException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: org.infinispan.server/infinispan-server-endpoints

@Override
public final ServiceRegistryException cannotLocateServerBootstrap(final Throwable t) {
  final ServiceRegistryException result = new ServiceRegistryException(String.format(getLoggingLocale(), cannotLocateServerBootstrap$str()), t);
  final StackTraceElement[] st = result.getStackTrace();
  result.setStackTrace(Arrays.copyOfRange(st, 1, st.length));
  return result;
}
private static final String noSSLContext = "DGENDPT10018: Endpoint '%s' requires SSL, but no SSL context is available in realm '%s'";
origin: org.jboss.as/jboss-as-server

@Override
public void activate(final ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException {
  final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
  final ServiceName endpointName = managementSubsystemEndpoint ? RemotingServices.SUBSYSTEM_ENDPOINT : ManagementRemotingServices.MANAGEMENT_ENDPOINT;
  final EndpointService.EndpointType endpointType = managementSubsystemEndpoint ? EndpointService.EndpointType.SUBSYSTEM : EndpointService.EndpointType.MANAGEMENT;
  try {
    // TODO see if we can figure out a way to work in the vault resolver instead of having to use ExpressionResolver.DEFAULT
    @SuppressWarnings("deprecation")
    final OptionMap options = EndpointConfigFactory.create(ExpressionResolver.DEFAULT, endpointConfig, DEFAULTS);
    ManagementRemotingServices.installRemotingEndpoint(serviceTarget, endpointName,
        SecurityActions.getSystemProperty(ServerEnvironment.NODE_NAME), endpointType, options, null, null);
    // Install the communication services
    final int port = managementSocket.getPort();
    final String host = managementSocket.getAddress().getHostAddress();
    HostControllerConnectionService service = new HostControllerConnectionService(host, port, serverName, serverProcessName, authKey, managementSubsystemEndpoint);
    serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME, service)
        .addDependency(endpointName, Endpoint.class, service.getEndpointInjector())
        .addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.getProcessStateServiceInjectedValue())
        .setInitialMode(ServiceController.Mode.ACTIVE)
        .install();
  } catch (OperationFailedException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: org.wildfly/wildfly-server

@Override
public void activate(final ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException {
  final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
  final ServiceName endpointName = managementSubsystemEndpoint ? RemotingServices.SUBSYSTEM_ENDPOINT : ManagementRemotingServices.MANAGEMENT_ENDPOINT;
  final EndpointService.EndpointType endpointType = managementSubsystemEndpoint ? EndpointService.EndpointType.SUBSYSTEM : EndpointService.EndpointType.MANAGEMENT;
  try {
    // TODO see if we can figure out a way to work in the vault resolver instead of having to use ExpressionResolver.DEFAULT
    @SuppressWarnings("deprecation")
    final OptionMap options = EndpointConfigFactory.create(ExpressionResolver.DEFAULT, endpointConfig, DEFAULTS);
    ManagementRemotingServices.installRemotingManagementEndpoint(serviceTarget, endpointName, WildFlySecurityManager.getPropertyPrivileged(ServerEnvironment.NODE_NAME, null), endpointType, options, null, null);
    // Install the communication services
    final int port = managementSocket.getPort();
    final String host = NetworkUtils.canonize(managementSocket.getAddress().getHostAddress());
    HostControllerConnectionService service = new HostControllerConnectionService(host, port, serverName, serverProcessName, authKey, initialOperationID, managementSubsystemEndpoint);
    Services.addServerExecutorDependency(serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME, service), service.getExecutorInjector(), false)
        .addDependency(endpointName, Endpoint.class, service.getEndpointInjector())
        .addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.getProcessStateServiceInjectedValue())
        .setInitialMode(ServiceController.Mode.ACTIVE).install();
  } catch (OperationFailedException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: org.wildfly.core/wildfly-server

@Override
public void activate(final ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException {
  final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
  final ServiceName endpointName = managementSubsystemEndpoint ? RemotingServices.SUBSYSTEM_ENDPOINT : ManagementRemotingServices.MANAGEMENT_ENDPOINT;
  final EndpointService.EndpointType endpointType = managementSubsystemEndpoint ? EndpointService.EndpointType.SUBSYSTEM : EndpointService.EndpointType.MANAGEMENT;
  try {
    ManagementWorkerService.installService(serviceTarget);
    // TODO see if we can figure out a way to work in the vault resolver instead of having to use ExpressionResolver.SIMPLE
    @SuppressWarnings("deprecation")
    final OptionMap options = EndpointConfigFactory.create(ExpressionResolver.SIMPLE, endpointConfig, DEFAULTS);
    ManagementRemotingServices.installRemotingManagementEndpoint(serviceTarget, endpointName, WildFlySecurityManager.getPropertyPrivileged(ServerEnvironment.NODE_NAME, null), endpointType, options);
    // Install the communication services
    HostControllerConnectionService service = new HostControllerConnectionService(managementURI, serverName, serverProcessName, authKey, initialOperationID, managementSubsystemEndpoint, sslContextSupplier);
    Services.addServerExecutorDependency(serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME, service), service.getExecutorInjector())
        .addDependency(ServerService.JBOSS_SERVER_SCHEDULED_EXECUTOR, ScheduledExecutorService.class, service.getScheduledExecutorInjector())
        .addDependency(endpointName, Endpoint.class, service.getEndpointInjector())
        .addDependency(ControlledProcessStateService.SERVICE_NAME, ControlledProcessStateService.class, service.getProcessStateServiceInjectedValue())
        .setInitialMode(ServiceController.Mode.ACTIVE).install();
  } catch (OperationFailedException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: wildfly/wildfly-core

@Override
public void activate(final ServiceActivatorContext serviceActivatorContext) throws ServiceRegistryException {
  final ServiceTarget serviceTarget = serviceActivatorContext.getServiceTarget();
  final ServiceName endpointName = managementSubsystemEndpoint ? RemotingServices.SUBSYSTEM_ENDPOINT : ManagementRemotingServices.MANAGEMENT_ENDPOINT;
  final EndpointService.EndpointType endpointType = managementSubsystemEndpoint ? EndpointService.EndpointType.SUBSYSTEM : EndpointService.EndpointType.MANAGEMENT;
  try {
    ManagementWorkerService.installService(serviceTarget);
    // TODO see if we can figure out a way to work in the vault resolver instead of having to use ExpressionResolver.SIMPLE
    @SuppressWarnings("deprecation")
    final OptionMap options = EndpointConfigFactory.create(ExpressionResolver.SIMPLE, endpointConfig, DEFAULTS);
    ManagementRemotingServices.installRemotingManagementEndpoint(serviceTarget, endpointName, WildFlySecurityManager.getPropertyPrivileged(ServerEnvironment.NODE_NAME, null), endpointType, options);
    // Install the communication services
    final ServiceBuilder<?> sb = serviceTarget.addService(HostControllerConnectionService.SERVICE_NAME);
    final Supplier<ExecutorService> esSupplier = Services.requireServerExecutor(sb);
    final Supplier<ScheduledExecutorService> sesSupplier = sb.requires(ServerService.JBOSS_SERVER_SCHEDULED_EXECUTOR);
    final Supplier<Endpoint> eSupplier = sb.requires(endpointName);
    final Supplier<ControlledProcessStateService> cpssSupplier = sb.requires(ControlledProcessStateService.SERVICE_NAME);
    sb.setInstance(new HostControllerConnectionService(managementURI, serverName, serverProcessName, authKey, initialOperationID, managementSubsystemEndpoint, sslContextSupplier, esSupplier, sesSupplier, eSupplier, cpssSupplier));
    sb.install();
  } catch (OperationFailedException e) {
    throw new ServiceRegistryException(e);
  }
}
origin: io.thorntail/swagger

throw new ServiceRegistryException(e);
org.jboss.msc.serviceServiceRegistryException<init>

Javadoc

Constructs a ServiceRegistryException with no detail message. The cause is not initialized, and may subsequently be initialized by a call to #initCause(Throwable).

Popular methods of ServiceRegistryException

  • getStackTrace
  • setStackTrace

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JPanel (javax.swing)
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