orca.shirako.api
Interface IServerReservation

All Superinterfaces:
IRecover, IReservation, IReservationStatus, IResourceReservation, ISerialize
All Known Subinterfaces:
IAuthorityReservation, IBrokerReservation
All Known Implementing Classes:
AuthorityReservation, BrokerReservation, ReservationServer

public interface IServerReservation
extends IResourceReservation

IServerReservation defines the reservation interface for actors acting as servers for other actors.


Field Summary
 
Fields inherited from interface orca.shirako.api.IReservation
CategoryAll, CategoryAuthority, CategoryBroker, CategoryClient, PropertyClass, PropertyID
 
Method Summary
 ICallbackProxy getCallback()
          Returns the callback proxy.
 AuthToken getClientAuthToken()
          Returns the identity of the client represented by the reservation.
 long getProcessTime()
          Returns the time the reservation is going to be processed.
 int getSequenceIn()
          Returns the sequence number of the last received message.
 int getSequenceOut()
          Returns the sequence number of the last sent message.
 AuthToken getServerAuthToken()
          Returns the identity of the server actor that controls the reservation.
 void setOwner(AuthToken owner)
          Sets the identity of the server actor that controls the reservation.
 void setProcessTime(long time)
          Sets the time the reservation is going to be processed.
 void setSequenceIn(int sequence)
          Sets the sequence number of the last received message.
 
Methods inherited from interface orca.shirako.api.IResourceReservation
count, fail, fail, failWarn, forecastUnits, getApprovedResources, getApprovedTerm, getApprovedType, getApprovedUnits, getLeasedAbstractUnits, getLeasedUnits, getPreviousResources, getPreviousTerm, getRequestedResources, getRequestedTerm, getRequestedType, getRequestedUnits, getResources, getTerm, getType, getUnits, holding, isApproved, isBidPending, isRenewable, setApproved, setApproved, setApprovedResources, setApprovedTerm, setBidPending
 
Methods inherited from interface orca.shirako.api.IReservation
awaitActive, awaitClosed, awaitTicketed, clearDirty, getActor, getCategory, getCloseTime, getPendingState, getPendingStateName, getPreviousReservationState, getReservationID, getReservationState, getSlice, getState, getStateName, hasUncommittedTransition, isDirty, registerListener, setCloseTime, setDirty, setSlice, unregisterListener
 
Methods inherited from interface orca.shirako.api.ISerialize
reset, save, save
 
Methods inherited from interface orca.shirako.api.IRecover
revisit
 
Methods inherited from interface orca.shirako.api.IReservationStatus
isActive, isActiveTicketed, isClosed, isClosing, isExpired, isExpired, isExtended, isExtendingLease, isExtendingTicket, isFailed, isNascent, isNoPending, isPriming, isRedeeming, isTerminal, isTicketed, isTicketing, setExpired
 

Method Detail

setOwner

void setOwner(AuthToken owner)
Sets the identity of the server actor that controls the reservation.

Parameters:
owner - identity of server actor

getClientAuthToken

AuthToken getClientAuthToken()
Returns the identity of the client represented by the reservation.

Returns:
identity of client actor

getServerAuthToken

AuthToken getServerAuthToken()
Returns the identity of the server actor that controls the reservation.

Returns:
identity of server actor

getCallback

ICallbackProxy getCallback()
Returns the callback proxy.

Returns:
callback proxy.

getSequenceIn

int getSequenceIn()
Returns the sequence number of the last received message.

Returns:
sequence number of the last received message

setSequenceIn

void setSequenceIn(int sequence)
Sets the sequence number of the last received message.

Parameters:
incoming - message sequence number

getSequenceOut

int getSequenceOut()
Returns the sequence number of the last sent message.

Returns:
sequence number of the last sent message

getProcessTime

long getProcessTime()
Returns the time the reservation is going to be processed.

Returns:
time the reservation is going to be processed

setProcessTime

void setProcessTime(long time)
Sets the time the reservation is going to be processed.

Parameters:
time - time the reservation is going to be processed


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