Class InVMAcceptor
- java.lang.Object
-
- org.apache.activemq.artemis.core.remoting.impl.AbstractAcceptor
-
- org.apache.activemq.artemis.core.remoting.impl.invm.InVMAcceptor
-
- All Implemented Interfaces:
ActiveMQComponent,Acceptor
public final class InVMAcceptor extends AbstractAcceptor
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.core.remoting.impl.AbstractAcceptor
protocolMap
-
-
Constructor Summary
Constructors Constructor Description InVMAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String,ProtocolManager> protocolMap, Executor threadPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, Executor clientExecutor)voiddisconnect(String connectionID)ClusterConnectiongetClusterConnection()Map<String,Object>getConfiguration()intgetConnectionCount()longgetConnectionsAllowed()ExecutorFactorygetExecutorFactory()BufferHandlergetHandler()StringgetName()The name of the acceptor used on the configuration.booleanisStarted()booleanisUnsecurable()we are InVM so allow unsecure connectionsvoidpause()Pause the acceptor and stop it from receiving client requests.voidreload()Re-create the acceptor with the existing configuration values.voidsetDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)Set the default security Principal to be used when no user/pass are defined, only for InVMvoidsetNotificationService(NotificationService notificationService)Set the notification service for this acceptor to use.voidstart()voidstop()-
Methods inherited from class org.apache.activemq.artemis.core.remoting.impl.AbstractAcceptor
getProtocolMap, updateInterceptors
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.artemis.spi.core.remoting.Acceptor
getActualPort, getProtocolHandler
-
Methods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
-
-
-
Constructor Detail
-
InVMAcceptor
public InVMAcceptor(String name, ClusterConnection clusterConnection, Map<String,Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String,ProtocolManager> protocolMap, Executor threadPool)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AcceptorThe name of the acceptor used on the configuration. for logging and debug purposes.
-
getClusterConnection
public ClusterConnection getClusterConnection()
- Returns:
- the cluster connection associated with this Acceptor
-
getConnectionsAllowed
public long getConnectionsAllowed()
-
getConnectionCount
public int getConnectionCount()
-
stop
public void stop()
-
isStarted
public boolean isStarted()
-
pause
public void pause()
Description copied from interface:AcceptorPause the acceptor and stop it from receiving client requests.
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
Description copied from interface:AcceptorSet the notification service for this acceptor to use.- Parameters:
notificationService- the notification service
-
getHandler
public BufferHandler getHandler()
-
getExecutorFactory
public ExecutorFactory getExecutorFactory()
-
connect
public void connect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, Executor clientExecutor)
-
disconnect
public void disconnect(String connectionID)
-
isUnsecurable
public boolean isUnsecurable()
we are InVM so allow unsecure connections- Returns:
- true
-
reload
public void reload()
Description copied from interface:AcceptorRe-create the acceptor with the existing configuration values. Useful, for example, for reloading key/trust stores on acceptors which support SSL.
-
setDefaultActiveMQPrincipal
public void setDefaultActiveMQPrincipal(ActiveMQPrincipal defaultActiveMQPrincipal)
Description copied from interface:AcceptorSet the default security Principal to be used when no user/pass are defined, only for InVM
-
-