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 RemotingService
Exception
public void allowInvmSecurityOverride(HornetQPrincipal principal)
allowInvmSecurityOverride
in interface RemotingService
public void freeze()
freeze
in interface RemotingService
public void stop(boolean criticalError) throws Exception
stop
in interface RemotingService
Exception
public boolean isStarted()
isStarted
in interface RemotingService
public RemotingConnection removeConnection(Object remotingConnectionID)
RemotingService
removeConnection
in interface RemotingService
remotingConnectionID
- the ID of the RemotingConnection to removedpublic Set<RemotingConnection> getConnections()
getConnections
in interface RemotingService
public RemotingConnection getServerSideReplicatingConnection()
getServerSideReplicatingConnection
in interface RemotingService
public void connectionCreated(Acceptor acceptor, Connection connection, ProtocolType protocol)
ConnectionLifeCycleListener
connectionCreated
in interface ConnectionLifeCycleListener
connection
- the connection that has been createdpublic void connectionDestroyed(Object connectionID)
ConnectionLifeCycleListener
connectionDestroyed
in interface ConnectionLifeCycleListener
connectionID
- the connection being destroyed.public void connectionException(Object connectionID, HornetQException me)
ConnectionLifeCycleListener
connectionException
in interface ConnectionLifeCycleListener
connectionID
- the id of the connection.me
- the exception.public void connectionReadyForWrites(Object connectionID, boolean ready)
connectionReadyForWrites
in interface ConnectionLifeCycleListener
public void addInterceptor(Interceptor interceptor)
addInterceptor
in interface RemotingService
public boolean removeInterceptor(Interceptor interceptor)
removeInterceptor
in interface RemotingService
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.