public class RemotingServiceImpl extends Object implements RemotingService, ConnectionLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
static long |
CONNECTION_TTL_CHECK_INTERVAL |
| Constructor and Description |
|---|
RemotingServiceImpl(ClusterManager clusterManager,
Configuration config,
HornetQServer server,
ManagementService managementService,
ScheduledExecutorService scheduledThreadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInterceptor(Interceptor interceptor) |
void |
allowInvmSecurityOverride(HornetQPrincipal principal) |
void |
connectionCreated(Acceptor acceptor,
Connection connection,
ProtocolType protocol)
This method is used both by client connector creation and server connection creation through acceptors.
|
void |
connectionDestroyed(Object connectionID)
called when a connection is destroyed.
|
void |
connectionException(Object connectionID,
HornetQException me)
called when an error occurs on the connection.
|
void |
connectionReadyForWrites(Object connectionID,
boolean ready) |
void |
freeze() |
Set<RemotingConnection> |
getConnections() |
RemotingConnection |
getServerSideReplicatingConnection() |
boolean |
isStarted() |
RemotingConnection |
removeConnection(Object remotingConnectionID)
Remove a connection from the connections held by the remoting service.
|
boolean |
removeInterceptor(Interceptor interceptor) |
void |
start() |
void |
stop(boolean criticalError) |
public static final long CONNECTION_TTL_CHECK_INTERVAL
public RemotingServiceImpl(ClusterManager clusterManager, Configuration config, HornetQServer server, ManagementService managementService, ScheduledExecutorService scheduledThreadPool)
public void start()
throws Exception
start in interface RemotingServiceExceptionpublic void allowInvmSecurityOverride(HornetQPrincipal principal)
allowInvmSecurityOverride in interface RemotingServicepublic void freeze()
freeze in interface RemotingServicepublic void stop(boolean criticalError)
throws Exception
stop in interface RemotingServiceExceptionpublic boolean isStarted()
isStarted in interface RemotingServicepublic RemotingConnection removeConnection(Object remotingConnectionID)
RemotingServiceremoveConnection in interface RemotingServiceremotingConnectionID - the ID of the RemotingConnection to removedpublic Set<RemotingConnection> getConnections()
getConnections in interface RemotingServicepublic RemotingConnection getServerSideReplicatingConnection()
getServerSideReplicatingConnection in interface RemotingServicepublic void connectionCreated(Acceptor acceptor, Connection connection, ProtocolType protocol)
ConnectionLifeCycleListenerconnectionCreated in interface ConnectionLifeCycleListenerconnection - the connection that has been createdpublic void connectionDestroyed(Object connectionID)
ConnectionLifeCycleListenerconnectionDestroyed in interface ConnectionLifeCycleListenerconnectionID - the connection being destroyed.public void connectionException(Object connectionID, HornetQException me)
ConnectionLifeCycleListenerconnectionException in interface ConnectionLifeCycleListenerconnectionID - the id of the connection.me - the exception.public void connectionReadyForWrites(Object connectionID, boolean ready)
connectionReadyForWrites in interface ConnectionLifeCycleListenerpublic void addInterceptor(Interceptor interceptor)
addInterceptor in interface RemotingServicepublic boolean removeInterceptor(Interceptor interceptor)
removeInterceptor in interface RemotingServiceCopyright © 2012 JBoss by Red Hat. All Rights Reserved.