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 Details

    • 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 interface TicketScheduler
      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 interface TicketScheduler
      Parameters:
      ticket - the ticket that the job has been finished
    • newServer

      public static void newServer(Set<Ticket> tickets, String lockerName, int port)