org.jboss.messaging.core.remoting.server.impl
Class RemotingServiceImpl
java.lang.Object
org.jboss.messaging.core.remoting.server.impl.RemotingServiceImpl
- All Implemented Interfaces:
- RemotingService, ConnectionLifeCycleListener, MessagingComponent
public class RemotingServiceImpl
- extends java.lang.Object
- implements RemotingService, ConnectionLifeCycleListener
- Version:
- $Revision$
- Author:
- Jeff Mesnil, Andy Taylor, Tim Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemotingServiceImpl
public RemotingServiceImpl(Configuration config,
MessagingServer server,
ManagementService managementService,
java.util.concurrent.Executor threadPool,
java.util.concurrent.ScheduledExecutorService scheduledThreadPool,
int managementConnectorID)
start
public void start()
throws java.lang.Exception
- Specified by:
start
in interface MessagingComponent
- Throws:
java.lang.Exception
freeze
public void freeze()
- Specified by:
freeze
in interface RemotingService
stop
public void stop()
throws java.lang.Exception
- Specified by:
stop
in interface MessagingComponent
- Throws:
java.lang.Exception
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface MessagingComponent
getConnection
public RemotingConnection getConnection(java.lang.Object remotingConnectionID)
- Specified by:
getConnection
in interface RemotingService
removeConnection
public RemotingConnection removeConnection(java.lang.Object remotingConnectionID)
- Description copied from interface:
RemotingService
- Remove a connection from the connections held by the remoting service.
This method must be used only from the management API.
RemotingConnections are removed from the remoting service when their connectionTTL is hit.
- Specified by:
removeConnection
in interface RemotingService
- Parameters:
remotingConnectionID
- the ID of the RemotingConnection to removed
- Returns:
- the removed RemotingConnection
getConnections
public java.util.Set<RemotingConnection> getConnections()
- Specified by:
getConnections
in interface RemotingService
getServerSideReplicatingConnection
public RemotingConnection getServerSideReplicatingConnection()
- Specified by:
getServerSideReplicatingConnection
in interface RemotingService
connectionCreated
public void connectionCreated(Connection connection)
- Specified by:
connectionCreated
in interface ConnectionLifeCycleListener
connectionDestroyed
public void connectionDestroyed(java.lang.Object connectionID)
- Specified by:
connectionDestroyed
in interface ConnectionLifeCycleListener
connectionException
public void connectionException(java.lang.Object connectionID,
MessagingException me)
- Specified by:
connectionException
in interface ConnectionLifeCycleListener
addInterceptor
public void addInterceptor(Interceptor interceptor)
- Specified by:
addInterceptor
in interface RemotingService
removeInterceptor
public boolean removeInterceptor(Interceptor interceptor)
- Specified by:
removeInterceptor
in interface RemotingService
stopPingingForConnectionID
public void stopPingingForConnectionID(java.lang.Object connectionID)
Copyright © 2006 JBoss Inc. All Rights Reserved.