orca.manage.extensions.standard.actors
Class AuthorityManagerObject

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.AuthorityManagerObject
Direct Known Subclasses:
CodAuthorityManagerObject

public class AuthorityManagerObject
extends ActorManagerObject


Field Summary
protected  IAuthority authority
          The authority 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
AuthorityManagerObject()
          Create a new instance
AuthorityManagerObject(IAuthority authority)
          Create a new instance
 
Method Summary
 ResultSliceMng addClientSlice(SliceMng slice, AuthToken caller)
          Create a client slice
 int addConfigMapping(java.lang.String key, ConfigMappingMng map)
           
 ResultReservationMng exportResources(SliceID clientSliceID, SliceID poolID, java.lang.String ticketId, java.lang.String start, java.lang.String end, int units, AuthToken caller)
           
 ResultReservationMng getAgentReservations(AuthToken caller)
          Retrieves all reservations for which this actor is the agent
 ResultReservationMng getAuthorityReservations(AuthToken caller)
          Retrieves all reservations for which this actor is the authority
 ResultReservationMng getClientReservations(AuthToken caller)
          Retrieves all client reservations
 ResultSliceMng getClientSlices(AuthToken caller)
          Retrieves all client slices
 ConfigMappingMng getConfigMapping(java.lang.String key)
           
 ConfigMappingMng[] getConfigMappings()
           
 ResultSliceMng getInventorySlices(AuthToken caller)
          Retrieves the inventory slices of this actor
 ResultSliceMng getResourcePools(AuthToken caller)
          Retrieves all resource pools
protected  void registerProtocols()
          Register all communication protocols this object supports
 int removeConfigMapping(java.lang.String key)
           
 void setActor(IActor actor)
          Attach the actor to this wrapper.
 int updateConfigMapping(java.lang.String key, ConfigMappingMng map)
           
 
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

authority

protected IAuthority authority
The authority represented by this wrapper

Constructor Detail

AuthorityManagerObject

public AuthorityManagerObject()
Create a new instance


AuthorityManagerObject

public AuthorityManagerObject(IAuthority authority)
Create a new instance

Parameters:
authority - Authority to represent
Method Detail

registerProtocols

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

Overrides:
registerProtocols in class ActorManagerObject

setActor

public void setActor(IActor actor)
Description copied from class: ActorManagerObject
Attach the actor to this wrapper. Called at construction time.

Overrides:
setActor in class ActorManagerObject

getInventorySlices

public ResultSliceMng getInventorySlices(AuthToken caller)
Description copied from class: ActorManagerObject
Retrieves the inventory slices of this actor

Overrides:
getInventorySlices in class ActorManagerObject
Returns:

getResourcePools

public ResultSliceMng getResourcePools(AuthToken caller)
Retrieves all resource pools


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

getAgentReservations

public ResultReservationMng getAgentReservations(AuthToken caller)
Retrieves all reservations for which this actor is the agent

Returns:

getAuthorityReservations

public ResultReservationMng getAuthorityReservations(AuthToken caller)
Retrieves all reservations for which this actor is the authority

Returns:

getClientReservations

public ResultReservationMng getClientReservations(AuthToken caller)
Retrieves all client reservations

Returns:

exportResources

public ResultReservationMng exportResources(SliceID clientSliceID,
                                            SliceID poolID,
                                            java.lang.String ticketId,
                                            java.lang.String start,
                                            java.lang.String end,
                                            int units,
                                            AuthToken caller)
Parameters:
clientSliceName -
poolName -
ticketId -
start -
end -
units -
Returns:

getConfigMappings

public ConfigMappingMng[] getConfigMappings()

getConfigMapping

public ConfigMappingMng getConfigMapping(java.lang.String key)

addConfigMapping

public int addConfigMapping(java.lang.String key,
                            ConfigMappingMng map)

removeConfigMapping

public int removeConfigMapping(java.lang.String key)

updateConfigMapping

public int updateConfigMapping(java.lang.String key,
                               ConfigMappingMng map)


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