quamj.qps.rm
Class LocalResourceManager_impl

java.lang.Object
  |
  +--org.omg.CORBA.LocalObject
        |
        +--quamj.qps.rm.LocalResourceManager_impl
All Implemented Interfaces:
org.omg.CORBA.Object

public class LocalResourceManager_impl
extends org.omg.CORBA.LocalObject


Constructor Summary
LocalResourceManager_impl()
           
 
Method Summary
 void _initialize(org.omg.CORBA.ORB orb)
           
 void addResourceWrapper(ResourceWrapper rw)
          Add a resource wrapper to the pool of resources of the DRM.
 DistributedResourceManager get_DRM()
          Returns the remote interface of the resource manager
 boolean isNegSessionReusable()
          Retrun true if the property is set to be "Yes"
 ResourceReservation[] listReservationsById(N_S_ID_TYPE n_s_id)
          List information about all reservations for a n_s_id.
 ResourceWrapper[] listResourceWrappers()
          List all resource wrappers from the pool of resources of the DRM.
 ResourceReservation[] listRWReservations(RWInfo rwi)
          Lists all resource reservations of a resource wrapper
 void release_session(N_S_ID_TYPE n_s_id)
          Releases all resources associated with an agreed session id.
 void release(ResourceReservation reservation)
          Releases a single resource based on the information in the reservation.
 void removeResourceWrapper(ResourceWrapper rw)
          Remove a resource wrapper from the pool of resources of the DRM.
 void removeResourceWrapperByInfo(RWInfo rwi)
          Remove a resource wrapper from the pool of resources of the DRM by providing RWInfo.
 void reserve_prepare(ResourceReservation reservation)
          Prepare a resource based on the information in the reservation.
 void reserve(ResourceReservation reservation)
          Reserves a resource based on the information in the reservation.
 
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
 

Constructor Detail

LocalResourceManager_impl

public LocalResourceManager_impl()
Method Detail

_initialize

public void _initialize(org.omg.CORBA.ORB orb)
                 throws InitializationFailedException
InitializationFailedException

addResourceWrapper

public void addResourceWrapper(ResourceWrapper rw)
                        throws CouldntAddWrapperException
Add a resource wrapper to the pool of resources of the DRM. Add is usually done from the mapperss of the pluggable QPS. when they instantiate resource wrappers and install them correctly.

CouldntAddWrapperException

removeResourceWrapper

public void removeResourceWrapper(ResourceWrapper rw)
                           throws CouldntRemoveWrapperException
Remove a resource wrapper from the pool of resources of the DRM. Remove is done from the one that has done the addition.

CouldntRemoveWrapperException

removeResourceWrapperByInfo

public void removeResourceWrapperByInfo(RWInfo rwi)
                                 throws CouldntRemoveWrapperException
Remove a resource wrapper from the pool of resources of the DRM by providing RWInfo.

CouldntRemoveWrapperException

listResourceWrappers

public ResourceWrapper[] listResourceWrappers()
                                       throws ResourceManagerException
List all resource wrappers from the pool of resources of the DRM.

ResourceManagerException

get_DRM

public DistributedResourceManager get_DRM()
                                   throws ResourceManagerException
Returns the remote interface of the resource manager

ResourceManagerException

listRWReservations

public ResourceReservation[] listRWReservations(RWInfo rwi)
                                         throws ResourceManagerException
Lists all resource reservations of a resource wrapper

ResourceManagerException

listReservationsById

public ResourceReservation[] listReservationsById(N_S_ID_TYPE n_s_id)
                                           throws ResourceManagerException
List information about all reservations for a n_s_id.

ResourceManagerException

reserve_prepare

public void reserve_prepare(ResourceReservation reservation)
                     throws CouldntMakeReservationException,
                            InvalidReservationParametersException,
                            InvalidReservationSequenceException
Prepare a resource based on the information in the reservation. if the reservation is successfull, the reservation struct there will be representing the actual reservation for this negotiation session.

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

reserve

public void reserve(ResourceReservation reservation)
             throws CouldntMakeReservationException,
                    InvalidReservationParametersException,
                    InvalidReservationSequenceException
Reserves a resource based on the information in the reservation. if the reservation is successfull, the reservation struct there will be representing the actual reservation for this negotiation session.

CouldntMakeReservationException
InvalidReservationParametersException
InvalidReservationSequenceException

release

public void release(ResourceReservation reservation)
             throws ErrorReleasingReservationException,
                    InvalidReservationParametersException
Releases a single resource based on the information in the reservation.

ErrorReleasingReservationException
InvalidReservationParametersException

release_session

public void release_session(N_S_ID_TYPE n_s_id)
                     throws ErrorReleasingAgreedSessionException,
                            InvalidIdException
Releases all resources associated with an agreed session id.

ErrorReleasingAgreedSessionException
InvalidIdException

isNegSessionReusable

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