public final class InVMAcceptor extends Object implements Acceptor
| Constructor and Description |
|---|
InVMAcceptor(ClusterConnection clusterConnection,
Map<String,Object> configuration,
BufferHandler handler,
ConnectionLifeCycleListener listener,
Executor threadPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String connectionID,
BufferHandler remoteHandler,
InVMConnector connector,
Executor clientExecutor) |
void |
disconnect(String connectionID) |
ClusterConnection |
getClusterConnection() |
Map<String,Object> |
getConfiguration() |
ExecutorFactory |
getExecutorFactory() |
BufferHandler |
getHandler() |
boolean |
isStarted() |
boolean |
isUnsecurable()
we are InVM so allow unsecure connections
|
void |
pause()
Pause the acceptor and stop it from receiving client requests.
|
void |
setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
Set the default security Principal to be used when no user/pass are defined, only for InVM
|
void |
setNotificationService(NotificationService notificationService)
Set the notification service for this acceptor to use.
|
void |
start() |
void |
stop() |
public InVMAcceptor(ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ConnectionLifeCycleListener listener, Executor threadPool)
public Map<String,Object> getConfiguration()
getConfiguration in interface Acceptorpublic ClusterConnection getClusterConnection()
getClusterConnection in interface Acceptorpublic void start()
throws Exception
start in interface HornetQComponentExceptionpublic void stop()
stop in interface HornetQComponentpublic boolean isStarted()
isStarted in interface HornetQComponentpublic void pause()
Acceptorpublic void setNotificationService(NotificationService notificationService)
AcceptorsetNotificationService in interface AcceptornotificationService - the notification servicepublic BufferHandler getHandler()
public ExecutorFactory getExecutorFactory()
public void connect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, Executor clientExecutor)
public void disconnect(String connectionID)
public boolean isUnsecurable()
isUnsecurable in interface Acceptorpublic void setDefaultHornetQPrincipal(HornetQPrincipal defaultHornetQPrincipal)
AcceptorsetDefaultHornetQPrincipal in interface AcceptorCopyright © 2013 JBoss, a division of Red Hat. All rights reserved.