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
 java.lang.Object getProperty(java.lang.String key)
          get a property of the remote service.
 java.lang.String[] getPropertyKeys()
          get all property keys.
 java.lang.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

java.lang.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

java.lang.Object getProperty(java.lang.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

java.lang.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.


Copyright © 2009 IKS, ETH Zurich. All Rights Reserved.