quamj.qps.rm
Class AbstractResourceWrapper_impl

java.lang.Object
  |
  +--org.omg.CORBA.LocalObject
        |
        +--quamj.qps.rm.AbstractResourceWrapper_impl
All Implemented Interfaces:
org.omg.CORBA.Object
Direct Known Subclasses:
ClientResourceWrapper_impl, ServerResourceWrapper_impl

public abstract class AbstractResourceWrapper_impl
extends org.omg.CORBA.LocalObject


Field Summary
protected  org.apache.log4j.Category log
           
protected  RRHashtable rr_hashtable
           
 
Constructor Summary
AbstractResourceWrapper_impl()
           
 
Method Summary
abstract  void add_sensor_listener(quamj.qps.N_S_ID_TYPE n_s_id, quamj.qps.control.SensorCollector sensor_sink)
           
 ResourceReservation getReservation(quamj.qps.N_S_ID_TYPE n_s_id)
          Returns information about the reservation of this resource wrapper for this particular n_s_id.
abstract  RWInfo getWrapperInfo()
          Returns info for this object
 boolean hasReservation(quamj.qps.N_S_ID_TYPE n_s_id)
          Returns true if reservation of this resource wrapper for this particular n_s_id is available.
 boolean isNegSessionReusable()
          Retrun true if the property is set to be "Yes"
 ResourceReservation[] listReservations()
          Returns a list of all reservations of this resource wrapper
abstract  void release_specific(quamj.qps.N_S_ID_TYPE n_s_id)
          Releases all resources associated with an agreed session id.
 void release(quamj.qps.N_S_ID_TYPE n_s_id)
          Releases all resources associated with an agreed session id.
abstract  void remove_sensor_listener(quamj.qps.N_S_ID_TYPE n_s_id)
           
abstract  void reserve_initialize(quamj.qps.N_S_ID_TYPE n_s_id, java.lang.String[] parameters, java.lang.String[] r_context)
          initialize a reservation, should be overriden by a subclass
 void reserve_prepare(quamj.qps.N_S_ID_TYPE n_s_id, java.lang.String[] parameters, java.lang.String[] r_context)
          Returns info for this object
abstract  void reserve_specific(quamj.qps.N_S_ID_TYPE n_s_id, java.lang.String[] parameters, java.lang.String[] r_context)
          makes a reservation, should be overriden by a subclass
 void reserve(quamj.qps.N_S_ID_TYPE n_s_id, java.lang.String[] parameters, java.lang.String[] r_context)
          Returns info for this object
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.log4j.Category log

rr_hashtable

protected RRHashtable rr_hashtable
Constructor Detail

AbstractResourceWrapper_impl

public AbstractResourceWrapper_impl()
Method Detail

getWrapperInfo

public abstract RWInfo getWrapperInfo()
Returns info for this object


reserve_prepare

public void reserve_prepare(quamj.qps.N_S_ID_TYPE n_s_id,
                            java.lang.String[] parameters,
                            java.lang.String[] r_context)
                     throws CouldntMakeReservationException,
                            InvalidReservationParametersException,
                            InvalidReservationSequenceException
Returns info for this object

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

reserve

public void reserve(quamj.qps.N_S_ID_TYPE n_s_id,
                    java.lang.String[] parameters,
                    java.lang.String[] r_context)
             throws CouldntMakeReservationException,
                    InvalidReservationParametersException,
                    InvalidReservationSequenceException
Returns info for this object

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

getReservation

public ResourceReservation getReservation(quamj.qps.N_S_ID_TYPE n_s_id)
                                   throws NoReservationException
Returns information about the reservation of this resource wrapper for this particular n_s_id.

NoReservationException

listReservations

public ResourceReservation[] listReservations()
Returns a list of all reservations of this resource wrapper


hasReservation

public boolean hasReservation(quamj.qps.N_S_ID_TYPE n_s_id)
Returns true if reservation of this resource wrapper for this particular n_s_id is available.


isNegSessionReusable

public boolean isNegSessionReusable()
Retrun true if the property is set to be "Yes"


release

public void release(quamj.qps.N_S_ID_TYPE n_s_id)
             throws ErrorReleasingReservationException,
                    InvalidReservationParametersException
Releases all resources associated with an agreed session id.

ErrorReleasingReservationException
InvalidReservationParametersException

reserve_initialize

public abstract void reserve_initialize(quamj.qps.N_S_ID_TYPE n_s_id,
                                        java.lang.String[] parameters,
                                        java.lang.String[] r_context)
                                 throws CouldntMakeReservationException,
                                        InvalidReservationParametersException,
                                        InvalidReservationSequenceException
initialize a reservation, should be overriden by a subclass

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

reserve_specific

public abstract void reserve_specific(quamj.qps.N_S_ID_TYPE n_s_id,
                                      java.lang.String[] parameters,
                                      java.lang.String[] r_context)
                               throws CouldntMakeReservationException,
                                      InvalidReservationParametersException,
                                      InvalidReservationSequenceException
makes a reservation, should be overriden by a subclass

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

release_specific

public abstract void release_specific(quamj.qps.N_S_ID_TYPE n_s_id)
                               throws ErrorReleasingReservationException,
                                      InvalidReservationParametersException
Releases all resources associated with an agreed session id.

ErrorReleasingReservationException
InvalidReservationParametersException

add_sensor_listener

public abstract void add_sensor_listener(quamj.qps.N_S_ID_TYPE n_s_id,
                                         quamj.qps.control.SensorCollector sensor_sink)
                                  throws quamj.qps.rm.InvalidIdException
quamj.qps.rm.InvalidIdException

remove_sensor_listener

public abstract void remove_sensor_listener(quamj.qps.N_S_ID_TYPE n_s_id)
                                     throws quamj.qps.rm.InvalidIdException
quamj.qps.rm.InvalidIdException