public interface RemotingService
Modifier and Type | Method and Description |
---|---|
void |
addIncomingInterceptor(Interceptor interceptor) |
void |
addOutgoingInterceptor(Interceptor interceptor) |
void |
allowInvmSecurityOverride(ActiveMQPrincipal principal)
Allow acceptors to use this as their default security Principal if applicable.
|
void |
freeze(String scaleDownNodeID,
CoreRemotingConnection remotingConnection)
Freezes and then disconnects all connections except the given one and tells the client where else
it might connect (only applicable if server is in a cluster and uses scaleDown-on-failover=true).
|
Acceptor |
getAcceptor(String name)
Returns the acceptor identified by its
name or null if it does not exists. |
ReusableLatch |
getConnectionCountLatch() |
Set<RemotingConnection> |
getConnections() |
List<BaseInterceptor> |
getIncomingInterceptors() |
List<BaseInterceptor> |
getOutgoinInterceptors() |
boolean |
isPaused()
Pauses the acceptors so that no more connections can be made to the server
|
boolean |
isStarted() |
void |
pauseAcceptors()
Pauses the acceptors so that no more connections can be made to the server
|
RemotingConnection |
removeConnection(Object remotingConnectionID)
Remove a connection from the connections held by the remoting service.
|
boolean |
removeIncomingInterceptor(Interceptor interceptor) |
boolean |
removeOutgoingInterceptor(Interceptor interceptor) |
void |
start() |
void |
startAcceptors() |
void |
stop(boolean criticalError) |
RemotingConnection removeConnection(Object remotingConnectionID)
remotingConnectionID
- the ID of the RemotingConnection to removedSet<RemotingConnection> getConnections()
ReusableLatch getConnectionCountLatch()
void addIncomingInterceptor(Interceptor interceptor)
List<BaseInterceptor> getIncomingInterceptors()
void addOutgoingInterceptor(Interceptor interceptor)
List<BaseInterceptor> getOutgoinInterceptors()
boolean removeIncomingInterceptor(Interceptor interceptor)
boolean removeOutgoingInterceptor(Interceptor interceptor)
boolean isStarted()
void allowInvmSecurityOverride(ActiveMQPrincipal principal)
Used by AS7 integration code.
principal
- void pauseAcceptors()
boolean isPaused()
void freeze(String scaleDownNodeID, CoreRemotingConnection remotingConnection)
scaleDownNodeID
- remotingConnection
- Copyright © 2016 JBoss by Red Hat. All rights reserved.