Package org.glassfish.grizzly.config
Interface GrizzlyListener
-
- All Known Implementing Classes:
GenericGrizzlyListener,GlassfishNetworkListener,ServiceInitializerListener
public interface GrizzlyListenerThe GrizzlyServiceListener is responsible of mapping incoming requests to the proper Container or Grizzly extensions. Registered Containers can be notified by Grizzly using three mode:
- At the transport level: Containers can be notified when TCP, TLS or UDP requests are mapped to them.
- At the protocol level: Containers can be notified when protocols (ex: SIP, HTTP) requests are mapped to them. At the requests level: Containers can be notified when specific patterns requests are mapped to them.
- Author:
- Jeanfrancois Arcand, Justin Lee
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener)voiddestroy()<T> TgetAdapter(Class<T> adapterClass)InetAddressgetAddress()StringgetName()intgetPort()org.glassfish.grizzly.PortRangegetPortRange()voidprocessDynamicConfigurationChange(org.glassfish.hk2.api.ServiceLocator habitat, PropertyChangeEvent[] events)voidstart()voidstop()
-
-
-
Method Detail
-
start
void start() throws IOException- Throws:
IOException
-
stop
void stop() throws IOException
- Throws:
IOException
-
destroy
void destroy()
-
getName
String getName()
-
getAddress
InetAddress getAddress()
-
getPort
int getPort()
-
getPortRange
org.glassfish.grizzly.PortRange getPortRange()
-
configure
void configure(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener) throws IOException- Throws:
IOException
-
processDynamicConfigurationChange
void processDynamicConfigurationChange(org.glassfish.hk2.api.ServiceLocator habitat, PropertyChangeEvent[] events)
-
getAdapter
<T> T getAdapter(Class<T> adapterClass)
-
-