Framework Professional Edition Package


com.prosyst.mbs.services.pmp
Interface PMPConnection

All Superinterfaces:
EventsManager

public interface PMPConnection
extends EventsManager

Contains the methods for getting references to the services registered in the remote Framework.


Method Summary
 void disconnect(java.lang.String message)
          Disconnects this PMPConnection from the remote Framework
 RemoteObject getReference(java.lang.String clazz, java.lang.String filter)
          Gets reference to a service registered in the Framework.
 RemoteObject getReference(java.lang.String clazz, java.lang.String filter, long bid)
          Gets reference to a service registered in the Framework.
 java.lang.String getSessionID()
          Gets the identification of this session
 java.lang.String getURI()
          Get's the uri of the remote PMPService to which this connection is bind
 boolean isConnected()
          Checks whenever this this connection is bind
 
Methods inherited from interface com.prosyst.util.event.EventsManager
addEventListener, removeEventListener
 

Method Detail

getReference

RemoteObject getReference(java.lang.String clazz,
                          java.lang.String filter)
                          throws PMPException
Gets reference to a service registered in the Framework.

Parameters:
clazz - Specifies the interface under which the service was regisered.
filter - Specifies the search filter (exactly as BundleContext.getService filter)
Returns:
a reference to the service.
Throws:
PMPException - If an IOException or protocol error occured, if the user does not have access rigths for this service, or if there was no such service registered in the Framework.
See Also:
RemoteObject

getReference

RemoteObject getReference(java.lang.String clazz,
                          java.lang.String filter,
                          long bid)
                          throws PMPException
Gets reference to a service registered in the Framework.

Parameters:
clazz - Specifies the interface under which the service was regisered.
filter - Specifies the search filter (exactly as BundleContext getService filter)
bid - The id of the bundle that registered the service.
Returns:
a reference to the service.
Throws:
PMPException - If an IOException or protocol error occured, if the user does not have access rigths for this service, or if there was no such service registered in the Framework.
See Also:
RemoteObject

disconnect

void disconnect(java.lang.String message)
Disconnects this PMPConnection from the remote Framework

Parameters:
message - The dissconnection message

getURI

java.lang.String getURI()
Get's the uri of the remote PMPService to which this connection is bind

Returns:
remote pmpservice uri

isConnected

boolean isConnected()
Checks whenever this this connection is bind

Returns:
remote pmpservice uri

getSessionID

java.lang.String getSessionID()
Gets the identification of this session

Returns:
SessionID associated with this session

Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved