Interface NetworkProxy
-
- All Superinterfaces:
EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>
- All Known Implementing Classes:
GrizzlyProxy
public interface NetworkProxy extends EndpointMapper<org.glassfish.grizzly.http.server.HttpHandler>
Generic interface used by the GrizzlyService to start the tcp/udp/tcl stack. By default, we are starting Grizzly, but we might allow other framework to hook in and drive hk2/v3. TODO: Allow addition of other types of Container, not only Adapter but also any extension.- Author:
- Jeanfrancois Arcand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy the proxy.InetAddressgetAddress()intgetPort()Future<Result<Thread>>start()Start the proxy.voidstop()Stop the proxy.-
Methods inherited from interface com.sun.enterprise.v3.services.impl.EndpointMapper
registerEndpoint, registerEndpoint, unregisterEndpoint, unregisterEndpoint
-
-
-
-
Method Detail
-
stop
void stop() throws IOException
Stop the proxy.- Throws:
IOException
-
start
Future<Result<Thread>> start() throws IOException
Start the proxy.- Throws:
IOException
-
getPort
int getPort()
- Returns:
- the network port upon which this
NetworkProxyis listening on
-
getAddress
InetAddress getAddress()
- Returns:
- the
InetAddressof thisNetworkProxy
-
destroy
void destroy()
Destroy the proxy.
-
-