Package org.jboss.as.remoting.management
Class ManagementRemotingServices
java.lang.Object
org.jboss.as.remoting.RemotingServices
org.jboss.as.remoting.management.ManagementRemotingServices
Utility class to add remoting services
- Author:
- David M. Lloyd, Kabir Khan, Richard Opalka
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the channel used between slave and master DCsstatic final Stringstatic final Stringstatic final StringThe name of the external management channelstatic final Stringstatic final org.jboss.msc.service.ServiceNameThe name of the endpoint service used for managementstatic final StringThe name of the channel used for Server to HC commsstatic final org.jboss.msc.service.ServiceNameFields inherited from class org.jboss.as.remoting.RemotingServices
HTTP_LISTENER_REGISTRY, REMOTING_BASE, SUBSYSTEM_ENDPOINT -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinstallDomainConnectorServices(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 instancestatic voidinstallManagementChannelOpenListenerService(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.static voidinstallManagementChannelServices(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.static voidisManagementResourceRemoveable(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress otherManagementEndpoint) Manual check because introducing a capability can't be done without a full refactoring.static voidremoveManagementChannelOpenListenerService(org.jboss.as.controller.OperationContext context, org.jboss.msc.service.ServiceName endpointName, String channelName) static voidremoveManagementChannelServices(org.jboss.as.controller.OperationContext context, org.jboss.msc.service.ServiceName endpointName, String channelName) Methods inherited from class org.jboss.as.remoting.RemotingServices
channelServiceName, connectorServiceName, installConnectorServicesForNetworkInterfaceBinding, installConnectorServicesForSocketBinding, installRemotingManagementEndpoint, installRemotingManagementEndpoint, removeConnectorServices, serverServiceName
-
Field Details
-
MANAGEMENT_ENDPOINT
public static final org.jboss.msc.service.ServiceName MANAGEMENT_ENDPOINTThe name of the endpoint service used for management -
SHUTDOWN_EXECUTOR_NAME
public static final org.jboss.msc.service.ServiceName SHUTDOWN_EXECUTOR_NAME -
MANAGEMENT_CHANNEL
The name of the external management channel- See Also:
-
DOMAIN_CHANNEL
The name of the channel used between slave and master DCs- See Also:
-
SERVER_CHANNEL
The name of the channel used for Server to HC comms- See Also:
-
MANAGEMENT_CONNECTOR
- See Also:
-
HTTP_CONNECTOR
- See Also:
-
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 intoendpointName- the name of the endpoint to install the stream server intonetworkInterfaceBinding- the network interface bindingport- the portsecurityRealm- the security real nameoptions- 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 calledendpointNameexists.- Parameters:
serviceTarget- the service target to install the services intoendpointName- the name of the endpoint to install a channel listener intochannelName- the name of the channeloperationHandlerName- the name of the operation handler to handle request for this channeloptions- the remoting optionsonDemand- 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 intoendpointName- the endpoint name to install the services intochannelName- the name of the channelexecutorServiceName- service name of the executor service to use in the operation handler servicescheduledExecutorServiceName- 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 OperationContextotherManagementEndpoint- : 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.
-