public class GrizzlyProxy extends Object implements NetworkProxy
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTO_CONFIGURE |
protected org.glassfish.grizzly.config.GrizzlyListener |
grizzlyListener |
static String |
LEADER_FOLLOWER |
| Constructor and Description |
|---|
GrizzlyProxy(GrizzlyService service,
org.glassfish.grizzly.config.dom.NetworkListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createGlassfishListener() |
protected void |
createGrizzlyListener(org.glassfish.grizzly.config.dom.NetworkListener networkListener) |
protected void |
createServiceInitializerListener() |
void |
destroy()
Destroy the proxy.
|
InetAddress |
getAddress() |
int |
getPort() |
org.glassfish.grizzly.config.GrizzlyListener |
getUnderlyingListener() |
void |
initialize()
Create a
GrizzlyServiceListener based on a NetworkListener
configuration object. |
void |
registerEndpoint(Endpoint endpoint)
Registers a new endpoint (proxy implementation) defined by the passed
Endpoint object. |
void |
registerEndpoint(String contextRoot,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointService,
org.glassfish.api.deployment.ApplicationContainer container)
Registers a new endpoint (proxy implementation) for a particular
context-root.
|
Future<com.sun.enterprise.util.Result<Thread>> |
start()
Start the proxy.
|
void |
stop()
Stops the Grizzly service.
|
String |
toString() |
void |
unregisterEndpoint(Endpoint endpoint)
Removes the
Endpoint from our list of endpoints. |
void |
unregisterEndpoint(String contextRoot,
org.glassfish.api.deployment.ApplicationContainer app)
Removes the context-root from our list of endpoints.
|
protected org.glassfish.grizzly.config.GrizzlyListener grizzlyListener
public static final String LEADER_FOLLOWER
public static final String AUTO_CONFIGURE
public GrizzlyProxy(GrizzlyService service, org.glassfish.grizzly.config.dom.NetworkListener listener)
public void initialize()
throws IOException
GrizzlyServiceListener based on a NetworkListener
configuration object.IOExceptionprotected void createGrizzlyListener(org.glassfish.grizzly.config.dom.NetworkListener networkListener)
protected void createGlassfishListener()
protected void createServiceInitializerListener()
public void stop()
throws IOException
stop in interface NetworkProxyIOExceptionpublic void destroy()
NetworkProxydestroy in interface NetworkProxypublic void registerEndpoint(String contextRoot, Collection<String> vsServers, org.glassfish.grizzly.http.server.HttpHandler endpointService, org.glassfish.api.deployment.ApplicationContainer container) throws org.glassfish.api.container.EndpointRegistrationException
EndpointMapperregisterEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>contextRoot - for the proxyorg.glassfish.api.container.EndpointRegistrationExceptionpublic void unregisterEndpoint(String contextRoot, org.glassfish.api.deployment.ApplicationContainer app) throws org.glassfish.api.container.EndpointRegistrationException
unregisterEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>org.glassfish.api.container.EndpointRegistrationExceptionpublic void registerEndpoint(Endpoint endpoint)
Endpoint object.registerEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>endpoint - Endpointpublic void unregisterEndpoint(Endpoint endpoint) throws org.glassfish.api.container.EndpointRegistrationException
Endpoint from our list of endpoints.unregisterEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>endpoint - Endpointorg.glassfish.api.container.EndpointRegistrationExceptionpublic Future<com.sun.enterprise.util.Result<Thread>> start() throws IOException
NetworkProxystart in interface NetworkProxyIOExceptionpublic int getPort()
getPort in interface NetworkProxyNetworkProxy is
listening onpublic InetAddress getAddress()
getAddress in interface NetworkProxyInetAddress of this NetworkProxypublic org.glassfish.grizzly.config.GrizzlyListener getUnderlyingListener()
Copyright © 2013. All Rights Reserved.