Package org.glassfish.grizzly.config
Interface GrizzlyListener
-
- All Known Implementing Classes:
GenericGrizzlyListener
,GlassfishNetworkListener
,ServiceInitializerListener
public interface GrizzlyListener
The 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 void
configure(org.glassfish.hk2.api.ServiceLocator habitat, NetworkListener networkListener)
void
destroy()
<T> T
getAdapter(Class<T> adapterClass)
InetAddress
getAddress()
String
getName()
int
getPort()
org.glassfish.grizzly.PortRange
getPortRange()
void
processDynamicConfigurationChange(org.glassfish.hk2.api.ServiceLocator habitat, PropertyChangeEvent[] events)
void
start()
void
stop()
-
-
-
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)
-
-