ch.ethz.iks.r_osgi
Interface RemoteServiceReference


public interface RemoteServiceReference

The remote service interface. Is the equivalent of the service interface on the local OSGi framework. Service properties are synchronized with the remote service, as long as the peer is connected.

Author:
Jan S. Rellermeyer, ETH Zurich

Method Summary
 Object getProperty(String key)
          get a property of the remote service.
 String[] getPropertyKeys()
          get all property keys.
 String[] getServiceInterfaces()
          get the service interface class names.
 URI getURI()
          get the URI of the remote service.
 boolean isActive()
          Is the service active?
 

Method Detail

getServiceInterfaces

String[] getServiceInterfaces()
get the service interface class names.

Returns:
the interface class names as a string array.

getURI

URI getURI()
get the URI of the remote service.

Returns:
the URI of the remote service.

getProperty

Object getProperty(String key)
get a property of the remote service.

Parameters:
key - the key.
Returns:
the property belonging to the given key, or null if there is no such property set.

getPropertyKeys

String[] getPropertyKeys()
get all property keys.

Returns:
the key array.

isActive

boolean isActive()
Is the service active?

Returns:
true if there is a connection to the host and the service is still active and reachable.