|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.v3.services.impl.GrizzlyProxy
public class GrizzlyProxy
This class is responsible for configuring Grizzly.
| Field Summary | |
|---|---|
static String |
AUTO_CONFIGURE
|
protected org.glassfish.grizzly.config.GrizzlyListener |
grizzlyListener
|
static String |
LEADER_FOLLOWER
|
| Constructor Summary | |
|---|---|
GrizzlyProxy(GrizzlyService service,
org.glassfish.grizzly.config.dom.NetworkListener listener)
|
|
| Method Summary | |
|---|---|
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,
ApplicationContainer container)
Registers a new endpoint (proxy implementation) for a particular context-root. |
Future<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,
ApplicationContainer app)
Removes the context-root from our list of endpoints. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.glassfish.grizzly.config.GrizzlyListener grizzlyListener
public static final String LEADER_FOLLOWER
public static final String AUTO_CONFIGURE
| Constructor Detail |
|---|
public GrizzlyProxy(GrizzlyService service,
org.glassfish.grizzly.config.dom.NetworkListener listener)
| Method Detail |
|---|
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()
NetworkProxy
destroy in interface NetworkProxypublic String toString()
toString in class Object
public void registerEndpoint(String contextRoot,
Collection<String> vsServers,
org.glassfish.grizzly.http.server.HttpHandler endpointService,
ApplicationContainer container)
throws EndpointRegistrationException
EndpointMapper
registerEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>contextRoot - for the proxy
EndpointRegistrationException
public void unregisterEndpoint(String contextRoot,
ApplicationContainer app)
throws EndpointRegistrationException
unregisterEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>EndpointRegistrationExceptionpublic void registerEndpoint(Endpoint endpoint)
Endpoint object.
registerEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>endpoint - Endpoint
public void unregisterEndpoint(Endpoint endpoint)
throws EndpointRegistrationException
Endpoint from our list of endpoints.
unregisterEndpoint in interface EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>endpoint - Endpoint
EndpointRegistrationException
public Future<Result<Thread>> start()
throws IOException
NetworkProxy
start 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||