org.hornetq.spi.core.remoting
Interface Acceptor

All Superinterfaces:
org.hornetq.core.server.HornetQComponent

public interface Acceptor
extends org.hornetq.core.server.HornetQComponent

An Acceptor is used by the RemotingService to allow clients to connect. It should take care of dispatching client requests to the RemotingService's Dispatcher.

Author:
Andy Taylor, Tim Fox

Method Summary
 org.hornetq.core.server.cluster.ClusterConnection getClusterConnection()
           
 Map<String,Object> getConfiguration()
           
 boolean isUnsecurable()
          Whether this acceptor allows insecure connections.
 void pause()
          Pause the acceptor and stop it from receiving client requests.
 void setDefaultHornetQPrincipal(org.hornetq.core.security.HornetQPrincipal defaultHornetQPrincipal)
          Set the default security Principal to be used when no user/pass are defined, only for InVM
 void setNotificationService(org.hornetq.core.server.management.NotificationService notificationService)
          Set the notification service for this acceptor to use.
 
Methods inherited from interface org.hornetq.core.server.HornetQComponent
isStarted, start, stop
 

Method Detail

pause

void pause()
Pause the acceptor and stop it from receiving client requests.


getClusterConnection

org.hornetq.core.server.cluster.ClusterConnection getClusterConnection()
Returns:
the cluster connection associated with this Acceptor

getConfiguration

Map<String,Object> getConfiguration()

setNotificationService

void setNotificationService(org.hornetq.core.server.management.NotificationService notificationService)
Set the notification service for this acceptor to use.

Parameters:
notificationService - the notification service

setDefaultHornetQPrincipal

void setDefaultHornetQPrincipal(org.hornetq.core.security.HornetQPrincipal defaultHornetQPrincipal)
Set the default security Principal to be used when no user/pass are defined, only for InVM


isUnsecurable

boolean isUnsecurable()
Whether this acceptor allows insecure connections.

Throws:
java.lang.IllegalStatException - if false @setDefaultHornetQPrincipal


Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.