|
UNICORE Resource Broker NJS Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eurogrid.broker.server.TicketManager
Persistent ticket management engine.
ResourceBroker
,
Ticket
Field Summary | |
int |
GRACE_PERIOD
Time from expiry to point when the expired ticket reaper will consider the ticket to be fair game in milliseconds. |
int |
REAPER_INTERVAL
Time between runs of the expired ticket reaper in milliseconds. |
Method Summary | |
void |
associateResources(Ticket ticket,
ResourceSet resources)
Bind a set of resources to the ticket. |
static TicketManager |
getInstance()
There is one ticket manager per NJS. |
ResourceSet |
getResources(Ticket ticket)
Get the set of resources bound to the given ticket. |
Ticket |
issueTicket(String text,
int validity)
Issue a new unsigned ticket. |
Iterator |
listTickets()
List the currently valid tickets that are bound to resources. |
void |
relinquish(Ticket ticket)
Tell the ticket manager that the given ticket is definitely no longer interesting and may be deleted from the persistent store immediately. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int GRACE_PERIOD
public final int REAPER_INTERVAL
Method Detail |
public void associateResources(Ticket ticket, ResourceSet resources) throws ResourceCheckerException
ticket
- The ticket to bindresources
- The resource set to associate with the ticket
ResourceCheckerException
- If the ticket has already been bound.public static TicketManager getInstance()
public ResourceSet getResources(Ticket ticket) throws ResourceCheckerException
ResourceCheckerException
- If the ticket isn't one we have issued and got bound to a
resource set, either because the ticket is unsigned or because
the ticket is not in our ticket store. Also thrown if the
ticket has expired.public Ticket issueTicket(String text, int validity)
text
- The text of the ticketvalidity
- How long the ticket will be valid for, in hours.public Iterator listTickets()
public void relinquish(Ticket ticket)
|
UNICORE Resource Broker NJS Plugin 1.5α1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |