orca.manage.extensions.standard.actors
Class AgentManagerObject

java.lang.Object
  extended by orca.manage.extensions.api.ManagerObject
      extended by orca.manage.extensions.standard.actors.ActorManagerObject
          extended by orca.manage.extensions.standard.actors.AgentManagerObject

public class AgentManagerObject
extends ActorManagerObject


Field Summary
protected  IBroker broker
          The agent represented by this wrapper
 
Fields inherited from class orca.manage.extensions.standard.actors.ActorManagerObject
actor, db
 
Fields inherited from class orca.manage.extensions.api.ManagerObject
id, logger, manager, PropertyActorName, PropertyClassName, PropertyID, PropertyProxiesClass, PropertyProxiesLength, PropertyProxiesPrefix, PropertyProxiesProtocol, PropertyTypeID, proxies, serial, typeID
 
Constructor Summary
AgentManagerObject()
          Create a new instance
AgentManagerObject(IBroker broker)
          Create a new instance
 
Method Summary
 ResultMng addBroker(ProxyMng brokerProxy, AuthToken caller)
          Adds a broker for this service manager
 ResultSliceMng addClientSlice(SliceMng slice, AuthToken caller)
          Create a client slice
 ResultReservationMng claimResources(java.lang.String brokerName, SliceID sliceID, ReservationID reservationID, AuthToken caller)
          Claim previously exported resources
 ResultReservationMng getAgentReservations(AuthToken caller)
          Retrieves all reservations for which this actor is the broker.
 ResultProxyMng getBrokers(AuthToken caller)
          Returns the brokers this service manager is associated with.
 ResultReservationMng getClientReservations(AuthToken caller)
          Retrieves all client reservations
 ResultSliceMng getClientSlices(AuthToken caller)
          Retrieves all client slices
 ResultSliceMng getInventorySlices(AuthToken caller)
          Retrieves all inventory slices
protected  void registerProtocols()
          Register all communication protocols this object supports
 void setActor(IActor actor)
          Attach the actor to this wrapper.
 
Methods inherited from class orca.manage.extensions.standard.actors.ActorManagerObject
addReservation, addSlice, closeReservation, extendReservation, getActor, getActorName, getHoldings, getPolicyClass, getReservation, getReservationFromDatabase, getReservationID, getReservations, getReservations, getSlice, getSlices, recover, removeReservation, removeSlice, updateSlice
 
Methods inherited from class orca.manage.extensions.api.ManagerObject
getID, getProxies, getStackTraceString, getTypeID, initialize, loadProtocols, reset, save, save, saveProtocols, setExceptionDetails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

broker

protected IBroker broker
The agent represented by this wrapper

Constructor Detail

AgentManagerObject

public AgentManagerObject()
Create a new instance


AgentManagerObject

public AgentManagerObject(IBroker broker)
Create a new instance

Parameters:
broker - Broker
Method Detail

registerProtocols

protected void registerProtocols()
Register all communication protocols this object supports

Overrides:
registerProtocols in class ActorManagerObject

setActor

public void setActor(IActor actor)
Attach the actor to this wrapper. Called at construction time.

Overrides:
setActor in class ActorManagerObject

getInventorySlices

public ResultSliceMng getInventorySlices(AuthToken caller)
Retrieves all inventory slices

Overrides:
getInventorySlices in class ActorManagerObject
Returns:

getClientSlices

public ResultSliceMng getClientSlices(AuthToken caller)
Retrieves all client slices


addClientSlice

public ResultSliceMng addClientSlice(SliceMng slice,
                                     AuthToken caller)
Create a client slice

Parameters:
slice - Slice Description

getClientReservations

public ResultReservationMng getClientReservations(AuthToken caller)
Retrieves all client reservations

Returns:

getAgentReservations

public ResultReservationMng getAgentReservations(AuthToken caller)
Retrieves all reservations for which this actor is the broker. Equivalent to getClientReservations()

Returns:

claimResources

public ResultReservationMng claimResources(java.lang.String brokerName,
                                           SliceID sliceID,
                                           ReservationID reservationID,
                                           AuthToken caller)
Claim previously exported resources

Parameters:
brokerName - Broker to claim the resources from
sliceName - Slice to store the claimed resources in (must be the same as the remote slice in which the resources have been exported to)
reservationId - Reservation identifier of the reservation representing the exported resources
Returns:

getBrokers

public ResultProxyMng getBrokers(AuthToken caller)
Returns the brokers this service manager is associated with.

Returns:

addBroker

public ResultMng addBroker(ProxyMng brokerProxy,
                           AuthToken caller)
Adds a broker for this service manager

Parameters:
broker - Broker description
Returns:


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.