|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkChannelFactory
Interface for services that create transport channel implementations. Must not necessarily be an OSGi service factory, since this service is only used by the R-OSGi bundle.
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL_PROPERTY
this constant should be set in the properties. |
Method Summary | |
---|---|
void |
activate(Remoting remoting)
activate the network channel factory. |
void |
deactivate(Remoting remoting)
deactivate the network channel factory. |
NetworkChannel |
getConnection(ChannelEndpoint endpoint,
URI endpointURI)
get a new connection to a remote OSGi framework. |
int |
getListeningPort(java.lang.String protocol)
return the port number on which the factory listens for incoming connections. |
Field Detail |
---|
static final java.lang.String PROTOCOL_PROPERTY
String
set to this property is matched with the protocol argument that client
bundles requesting for connections. Can also be a String[]
.
Method Detail |
---|
NetworkChannel getConnection(ChannelEndpoint endpoint, URI endpointURI) throws java.io.IOException
endpoint
- the channel endpoint.endpointURI
- the endpoint to connect to.
java.io.IOException
- in case of connection errors.void activate(Remoting remoting) throws java.io.IOException
remoting
-
java.io.IOException
void deactivate(Remoting remoting) throws java.io.IOException
remoting
-
java.io.IOException
int getListeningPort(java.lang.String protocol)
protocol
- the protocol, important if the factory can create channels for
multiple protocols, e.g., "http" and "https".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |