|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChannelEndpoint
The endpoint of a channel to a connected remote peer.
| Method Summary | |
|---|---|
void |
dispose()
dispose of the channel endpoint. |
Dictionary |
getPresentationProperties(String service)
get the attributes for the presentation of the service. |
Dictionary |
getProperties(String service)
get the attributes of a service. |
URI |
getRemoteAddress()
get the URI of the remote channel endpoint. |
Object |
invokeMethod(String service,
String methodSignature,
Object[] args)
invoke a method on the remote host. |
void |
receivedMessage(RemoteOSGiMessage msg)
callback for NetworkChannels. |
void |
trackRegistration(String service,
ServiceRegistration reg)
register a proxied service registration to allow updates of the properties. |
void |
untrackRegistration(String service)
unregister a proxied service registration. |
| Method Detail |
|---|
void receivedMessage(RemoteOSGiMessage msg)
msg - the message.
Object invokeMethod(String service,
String methodSignature,
Object[] args)
throws Throwable
service - the URI of the service.methodSignature - the signature of the method.args - the method parameter.
Throwable - can be either a local exception or an exception that occured
on the original service method.Dictionary getProperties(String service)
service - the URI of the remote service.
Dictionary getPresentationProperties(String service)
service - the URI of the remote service.
void trackRegistration(String service,
ServiceRegistration reg)
service - the URI of the service.reg - the service registration object.void untrackRegistration(String service)
service - the URI of the service.reg - the service registration object.URI getRemoteAddress()
void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||