com.sun.enterprise.v3.services.impl
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
 void destroy()
          Destroy the proxy.
 InetAddress getAddress()
           
 int getPort()
           
 Future<Result<Thread>> start()
          Start the proxy.
 void stop()
          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 NetworkProxy is listening on

getAddress

InetAddress getAddress()
Returns:
the InetAddress of this NetworkProxy

destroy

void destroy()
Destroy the proxy.



Copyright © 2012. All Rights Reserved.