Class TicketSchedulerServer
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.util.locker.TicketSchedulerServer
-
- All Implemented Interfaces:
TicketScheduler,Remote
public class TicketSchedulerServer extends Object implements TicketScheduler
This class define a server for the scheduler.- Since:
- 1.1
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendWork(Ticket ticket)Inform the scheduler that the ticket job has been finished.Set<Ticket>getTickets(Ticket ticket)Update a ticket by the TicketScheduler and get all the valid tickets.static voidnewServer(Set<Ticket> tickets, String lockerName, int port)
-
-
-
Method Detail
-
getTickets
public Set<Ticket> getTickets(Ticket ticket)
Description copied from interface:TicketSchedulerUpdate a ticket by the TicketScheduler and get all the valid tickets.- Specified by:
getTicketsin interfaceTicketScheduler- Parameters:
ticket- the ticket to update- Returns:
- a set with all the valid tickets
-
endWork
public void endWork(Ticket ticket)
Description copied from interface:TicketSchedulerInform the scheduler that the ticket job has been finished.- Specified by:
endWorkin interfaceTicketScheduler- Parameters:
ticket- the ticket that the job has been finished
-
-