|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.v3.services.impl.GrizzlyService
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class GrizzlyService
The Network Service is responsible for starting grizzly and register the top level proxy. It is also providing a runtime service where other services (like admin for instance) can register endpoints proxy to particular context root.
| Nested Class Summary | |
|---|---|
static class |
GrizzlyService.NoopInvocationHandler
Probe provider that implements each probe provider method as a no-op. |
| Nested classes/interfaces inherited from interface org.glassfish.api.Startup |
|---|
Startup.Lifecycle |
| Constructor Summary | |
|---|---|
GrizzlyService()
|
|
| Method Summary | |
|---|---|
boolean |
addMapperUpdateListener(MapperUpdateListener listener)
Adds MapperUpdateListener to listeners queue. |
void |
addNetworkProxy(NetworkProxy proxy)
Add the new proxy to our list of proxies. |
Future<Result<Thread>> |
createNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
|
List<Future<Result<Thread>>> |
getFutures()
|
org.jvnet.hk2.component.Habitat |
getHabitat()
Gets the habitat. |
Startup.Lifecycle |
getLifecycle()
Returns the life expectency of the service |
Logger |
getLogger()
Gets the logger. |
GrizzlyMonitoring |
getMonitoring()
|
boolean |
hasMapperUpdateListener()
Is there any MapperUpdateListener registered? |
NetworkProxy |
lookupNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
Lookup GrizzlyProxy, which corresponds to the NetworkListener. |
void |
notifyMapperUpdateListeners(org.glassfish.grizzly.config.dom.NetworkListener networkListener,
org.glassfish.grizzly.http.server.util.Mapper mapper)
Notify all MapperUpdateListeners about update happened. |
void |
postConstruct()
The component has been injected with any dependency and will be placed into commission by the subsystem. |
void |
preDestroy()
The component is about to be removed from commission |
void |
registerEndpoint(Endpoint endpoint)
Registers a new endpoint for the given context root at the given port number. |
void |
registerEndpoint(String contextRoot,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
|
void |
registerEndpoint(String contextRoot,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
|
void |
registerEndpoint(String contextRoot,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container,
String virtualServers)
|
void |
registerEndpoint(String contextRoot,
InetAddress address,
int port,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
Registers a new endpoint for the given context root at the given port number. |
protected void |
registerMonitoringStatsProviders()
|
void |
registerNetworkProxy()
|
boolean |
removeMapperUpdateListener(MapperUpdateListener listener)
Removes MapperUpdateListener to listeners queue. |
boolean |
removeNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
Remove the proxy from our list of proxies by listener. |
boolean |
removeNetworkProxy(NetworkProxy proxy)
Remove the proxy from our list of proxies. |
boolean |
removeNetworkProxy(String id)
Remove the proxy from our list of proxies by id. |
void |
unregisterEndpoint(String contextRoot)
Removes the context-root from our list of endpoints. |
void |
unregisterEndpoint(String contextRoot,
ApplicationContainer app)
Removes the context-root from our list of endpoints. |
protected void |
unregisterMonitoringStatsProviders()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrizzlyService()
| Method Detail |
|---|
public void addNetworkProxy(NetworkProxy proxy)
proxy - new proxy to be addedpublic boolean removeNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
listener - removes the proxy associated with the specified listener
public boolean removeNetworkProxy(String id)
public boolean removeNetworkProxy(NetworkProxy proxy)
public NetworkProxy lookupNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
GrizzlyProxy, which corresponds to the NetworkListener.
listener - NetworkListener.
GrizzlyProxy, or null, if correspondent GrizzlyProxy wasn't found.public boolean hasMapperUpdateListener()
MapperUpdateListener registered?
public boolean addMapperUpdateListener(MapperUpdateListener listener)
MapperUpdateListener to listeners queue.
listener - the listener to be added.
public boolean removeMapperUpdateListener(MapperUpdateListener listener)
MapperUpdateListener to listeners queue.
listener - the listener to be removed.
public void notifyMapperUpdateListeners(org.glassfish.grizzly.config.dom.NetworkListener networkListener,
org.glassfish.grizzly.http.server.util.Mapper mapper)
MapperUpdateListeners about update happened.
networkListener - NetworkListener, which Mapper got changedmapper - new Mapper valuepublic Logger getLogger()
public org.jvnet.hk2.component.Habitat getHabitat()
public GrizzlyMonitoring getMonitoring()
public Startup.Lifecycle getLifecycle()
getLifecycle in interface Startuppublic void postConstruct()
postConstruct in interface org.glassfish.hk2.PostConstructpublic List<Future<Result<Thread>>> getFutures()
getFutures in interface FutureProvider<Result<Thread>>public Future<Result<Thread>> createNetworkProxy(org.glassfish.grizzly.config.dom.NetworkListener listener)
public void registerNetworkProxy()
public void preDestroy()
preDestroy in interface org.glassfish.hk2.PreDestroy
public void registerEndpoint(String contextRoot,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
throws EndpointRegistrationException
registerEndpoint in interface RequestDispatcherEndpointRegistrationException
public void registerEndpoint(String contextRoot,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container,
String virtualServers)
throws EndpointRegistrationException
registerEndpoint in interface RequestDispatcherEndpointRegistrationException
public void registerEndpoint(String contextRoot,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
throws EndpointRegistrationException
registerEndpoint in interface RequestDispatcherEndpointRegistrationException
public void registerEndpoint(String contextRoot,
InetAddress address,
int port,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointAdapter,
ApplicationContainer container)
throws EndpointRegistrationException
registerEndpoint in interface RequestDispatcherEndpointRegistrationException
public void registerEndpoint(Endpoint endpoint)
throws EndpointRegistrationException
EndpointRegistrationException
public void unregisterEndpoint(String contextRoot)
throws EndpointRegistrationException
unregisterEndpoint in interface RequestDispatcherEndpointRegistrationException
public void unregisterEndpoint(String contextRoot,
ApplicationContainer app)
throws EndpointRegistrationException
unregisterEndpoint in interface RequestDispatcherEndpointRegistrationExceptionprotected void registerMonitoringStatsProviders()
protected void unregisterMonitoringStatsProviders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||