Class ManagementRemotingServices

java.lang.Object
org.jboss.as.remoting.RemotingServices
org.jboss.as.remoting.management.ManagementRemotingServices

public final class ManagementRemotingServices extends RemotingServices
Utility class to add remoting services
Author:
David M. Lloyd, Kabir Khan, Richard Opalka
  • Field Details

    • MANAGEMENT_ENDPOINT

      public static final org.jboss.msc.service.ServiceName MANAGEMENT_ENDPOINT
      The name of the endpoint service used for management
    • SHUTDOWN_EXECUTOR_NAME

      public static final org.jboss.msc.service.ServiceName SHUTDOWN_EXECUTOR_NAME
    • MANAGEMENT_CHANNEL

      public static final String MANAGEMENT_CHANNEL
      The name of the external management channel
      See Also:
    • DOMAIN_CHANNEL

      public static final String DOMAIN_CHANNEL
      The name of the channel used between slave and master DCs
      See Also:
    • SERVER_CHANNEL

      public static final String SERVER_CHANNEL
      The name of the channel used for Server to HC comms
      See Also:
    • MANAGEMENT_CONNECTOR

      public static final String MANAGEMENT_CONNECTOR
      See Also:
    • HTTP_CONNECTOR

      public static final String HTTP_CONNECTOR
      See Also:
    • HTTPS_CONNECTOR

      public static final String HTTPS_CONNECTOR
      See Also:
  • Method Details

    • installDomainConnectorServices

      public static void installDomainConnectorServices(org.jboss.as.controller.OperationContext context, org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceName endpointName, org.jboss.msc.service.ServiceName networkInterfaceBinding, int port, org.xnio.OptionMap options, org.jboss.msc.service.ServiceName saslAuthenticationFactory, org.jboss.msc.service.ServiceName sslContext)
      Installs a remoting stream server for a domain instance
      Parameters:
      serviceTarget - the service target to install the services into
      endpointName - the name of the endpoint to install the stream server into
      networkInterfaceBinding - the network interface binding
      port - the port
      securityRealm - the security real name
      options - the remoting options
    • installManagementChannelOpenListenerService

      public static void installManagementChannelOpenListenerService(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceName endpointName, String channelName, org.jboss.msc.service.ServiceName operationHandlerName, org.xnio.OptionMap options, boolean onDemand)
      Set up the services to create a channel listener. This assumes that an endpoint service called endpointName exists.
      Parameters:
      serviceTarget - the service target to install the services into
      endpointName - the name of the endpoint to install a channel listener into
      channelName - the name of the channel
      operationHandlerName - the name of the operation handler to handle request for this channel
      options - the remoting options
      onDemand - whether to install the services on demand
    • removeManagementChannelOpenListenerService

      public static void removeManagementChannelOpenListenerService(org.jboss.as.controller.OperationContext context, org.jboss.msc.service.ServiceName endpointName, String channelName)
    • installManagementChannelServices

      public static void installManagementChannelServices(org.jboss.msc.service.ServiceTarget serviceTarget, org.jboss.msc.service.ServiceName endpointName, org.jboss.as.controller.remote.ModelControllerOperationHandlerFactory operationHandlerServiceFactory, org.jboss.msc.service.ServiceName modelControllerName, String channelName, org.jboss.msc.service.ServiceName executorServiceName, org.jboss.msc.service.ServiceName scheduledExecutorServiceName)
      Set up the services to create a channel listener and operation handler service.
      Parameters:
      serviceTarget - the service target to install the services into
      endpointName - the endpoint name to install the services into
      channelName - the name of the channel
      executorServiceName - service name of the executor service to use in the operation handler service
      scheduledExecutorServiceName - service name of the scheduled executor service to use in the operation handler service
    • removeManagementChannelServices

      public static void removeManagementChannelServices(org.jboss.as.controller.OperationContext context, org.jboss.msc.service.ServiceName endpointName, String channelName)
    • isManagementResourceRemoveable

      public static void isManagementResourceRemoveable(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress otherManagementEndpoint) throws org.jboss.as.controller.OperationFailedException
      Manual check because introducing a capability can't be done without a full refactoring. This has to go as soon as the management interfaces are redesigned.
      Parameters:
      context - the OperationContext
      otherManagementEndpoint - : the address to check that may provide an exposed jboss-remoting endpoint.
      Throws:
      org.jboss.as.controller.OperationFailedException - in case we can't remove the management resource.