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
-
Field Summary
Fields inherited from class org.apache.activemq.artemis.core.remoting.impl.AbstractAcceptor
protocolMap -
Constructor Summary
ConstructorsConstructorDescriptionInVMAcceptor(String name, ClusterConnection clusterConnection, Map<String, Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String, ProtocolManager> protocolMap, Executor threadPool) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, ArtemisExecutor clientExecutor) voiddisconnect(String connectionID) intlonggetName()The name of the acceptor used on the configuration. for logging and debug purposes.booleanbooleanwe are InVM so allow unsecure connectionsvoidvoidpause()Stop accepting new connectionsvoidreload()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, updateInterceptorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.remoting.Acceptor
getActualPort, getProtocolHandlerMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
InVMAcceptor
public InVMAcceptor(String name, ClusterConnection clusterConnection, Map<String, Object> configuration, BufferHandler handler, ServerConnectionLifeCycleListener listener, Map<String, ProtocolManager> protocolMap, Executor threadPool)
-
-
Method Details
-
getName
Description copied from interface:AcceptorThe name of the acceptor used on the configuration. for logging and debug purposes. -
getConfiguration
-
getClusterConnection
- Returns:
- the cluster connection associated with this Acceptor
-
getConnectionsAllowed
public long getConnectionsAllowed() -
getConnectionCount
public int getConnectionCount() -
start
- Throws:
Exception
-
stop
public void stop() -
notifyStop
public void notifyStop() -
isStarted
public boolean isStarted() -
pause
public void pause()Stop accepting new connections -
setNotificationService
Description copied from interface:AcceptorSet the notification service for this acceptor to use.- Parameters:
notificationService- the notification service
-
getHandler
-
getExecutorFactory
-
connect
public void connect(String connectionID, BufferHandler remoteHandler, InVMConnector connector, ArtemisExecutor clientExecutor) -
disconnect
-
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
Description copied from interface:AcceptorSet the default security Principal to be used when no user/pass are defined, only for InVM
-