orca.shirako.api
Interface IReservationStatus

All Known Subinterfaces:
IAuthorityReservation, IBrokerReservation, IClientReservation, IReservation, IResourceReservation, IServerReservation, IServiceManagerReservation
All Known Implementing Classes:
AuthorityReservation, BrokerReservation, CodBarrierReservation, CodPredecessorReservation, CodReservation, Reservation, ReservationClient, ReservationServer, ResourceReservation

public interface IReservationStatus

IReservationStatus defines a set of predicates that can be used to query the state of a reservation.


Method Summary
 boolean isActive()
          Checks if the reservation is active.
 boolean isActiveTicketed()
          Checks if the reservation is activeTicketed.
 boolean isClosed()
          Checks if the reservation is closed.
 boolean isClosing()
          Checks if the reservation is closing.
 boolean isExpired()
          Checks if the reservation has expired.
 boolean isExpired(java.util.Date t)
          Checks if the reservation expires before time t.
 boolean isExtended()
          Checks if the reservation has extended at least once.
 boolean isExtendingLease()
          Checks if the reservation is extending a lease.
 boolean isExtendingTicket()
          Checks if the reservation is extending a ticket.
 boolean isFailed()
          Checks if the reservation has failed.
 boolean isNascent()
          Checks if the reservation is nascent
 boolean isNoPending()
          Checks if there is no pending operation.
 boolean isPriming()
          Checks if the reservation is priming.
 boolean isRedeeming()
          Checks if the reservation is redeeming.
 boolean isTerminal()
          Checks if the reservation is terminal, e.g., closing, closed, or failed.
 boolean isTicketed()
          Check if the reservation is ticketed.
 boolean isTicketing()
          Checks if the reservation is obtaining a new ticket.
 void setExpired(boolean value)
          Sets the expiration flag.
 

Method Detail

isExpired

boolean isExpired()
Checks if the reservation has expired.

Returns:
true if the reservation has expired

setExpired

void setExpired(boolean value)
Sets the expiration flag.

Parameters:
value - true if the reservation is expired

isExpired

boolean isExpired(java.util.Date t)
Checks if the reservation expires before time t.

Parameters:
t - target date
Returns:
true if the reservation expires before t

isPriming

boolean isPriming()
Checks if the reservation is priming.

Returns:
true if the reservation is priming

isClosed

boolean isClosed()
Checks if the reservation is closed.

Returns:
true if the reservation is closed

isClosing

boolean isClosing()
Checks if the reservation is closing.

Returns:
true if the reservation pending is closing

isNascent

boolean isNascent()
Checks if the reservation is nascent

Returns:
true if the reservation pending is nascent

isFailed

boolean isFailed()
Checks if the reservation has failed.

Returns:
true if the reservation has failed

isActive

boolean isActive()
Checks if the reservation is active.

Returns:
true if the reservation is active

isActiveTicketed

boolean isActiveTicketed()
Checks if the reservation is activeTicketed.

Returns:
true if the reservation is activeTicketed

isTicketed

boolean isTicketed()
Check if the reservation is ticketed.

Returns:
true iff the reservation is ticketed

isRedeeming

boolean isRedeeming()
Checks if the reservation is redeeming.

Returns:
true if the reservation is redeeming

isExtendingLease

boolean isExtendingLease()
Checks if the reservation is extending a lease.

Returns:
true if the reservation is extending a lease

isExtendingTicket

boolean isExtendingTicket()
Checks if the reservation is extending a ticket.

Returns:
true if the reservation is extending a ticket

isTicketing

boolean isTicketing()
Checks if the reservation is obtaining a new ticket.

Returns:
true if the reservation is obtaining a ticket

isTerminal

boolean isTerminal()
Checks if the reservation is terminal, e.g., closing, closed, or failed.

Returns:
true if the reservation is terminal.

isNoPending

boolean isNoPending()
Checks if there is no pending operation.

Returns:
true if there is no pending operation

isExtended

boolean isExtended()
Checks if the reservation has extended at least once.

Returns:
true if the reservation has extended at least once


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