quamj.qps.rm
Class DistributedResourceManager_impl

java.lang.Object
  |
  +--DistributedResourceManagerPOA
        |
        +--quamj.qps.rm.DistributedResourceManager_impl

public class DistributedResourceManager_impl
extends DistributedResourceManagerPOA

See Also:
Serialized Form

Constructor Summary
protected DistributedResourceManager_impl(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA controlPOA, LocalResourceManager_impl lrm)
           
 
Method Summary
 org.omg.PortableServer.POA _default_POA()
           
 ResourceReservation[] listReservationsById(N_S_ID_TYPE n_s_id)
          List information about all reservations for a n_s_id.
 RWInfo[] listResourceWrappers()
          List information about all resource wrapper from the pool of resources of the DRM.
 ResourceReservation[] listRWReservations(RWInfo rwi)
          List information about all reservations in a resource wrapper.
 void release_list(RRListHolder reservations)
          Releases resources based on the information in the reservations list.
 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 reserve_list(RRListHolder reservations)
          Reserves resources based on the information in the reservations list.
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedResourceManager_impl

protected DistributedResourceManager_impl(org.omg.CORBA.ORB orb,
                                          org.omg.PortableServer.POA controlPOA,
                                          LocalResourceManager_impl lrm)
Method Detail

listResourceWrappers

public RWInfo[] listResourceWrappers()
                              throws ResourceManagerException
List information about all resource wrapper from the pool of resources of the DRM.

ResourceManagerException

listRWReservations

public ResourceReservation[] listRWReservations(RWInfo rwi)
                                         throws ResourceManagerException
List information about all reservations in 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

reserve_list

public void reserve_list(RRListHolder reservations)
                  throws CouldntMakeReservationException,
                         InvalidReservationParametersException
Reserves resources based on the information in the reservations list. if the reservations are successfull, the reservation structs there will be representing the actual reservations for this negotiation session. This operation makes a reservation of multiple reservations. In its out parameter it returns a list of the successfull reservations.

CouldntMakeReservationException
InvalidReservationParametersException

release

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

ErrorReleasingReservationException
InvalidReservationParametersException

release_list

public void release_list(RRListHolder reservations)
                  throws ErrorReleasingReservationException,
                         InvalidReservationParametersException
Releases resources based on the information in the reservations list. In its out parameter it returns a list of the successfully released reservations.

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

_default_POA

public org.omg.PortableServer.POA _default_POA()