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 void
endWork(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 void
newServer(Set<Ticket> tickets, String lockerName, int port)
-
-
-
Method Detail
-
getTickets
public Set<Ticket> getTickets(Ticket ticket)
Description copied from interface:TicketScheduler
Update a ticket by the TicketScheduler and get all the valid tickets.- Specified by:
getTickets
in 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:TicketScheduler
Inform the scheduler that the ticket job has been finished.- Specified by:
endWork
in interfaceTicketScheduler
- Parameters:
ticket
- the ticket that the job has been finished
-
-