Interface TicketScheduler

  • All Superinterfaces:
    Remote
    All Known Implementing Classes:
    TicketSchedulerServer

    public interface TicketScheduler
    extends Remote
    Define the rmi interface for the TicketSchedulerServer.
    Since:
    1.1
    Author:
    Laurent Jourdren
    • Method Detail

      • getTickets

        Set<Ticket> getTickets​(Ticket ticket)
                        throws RemoteException
        Update a ticket by the TicketScheduler and get all the valid tickets.
        Parameters:
        ticket - the ticket to update
        Returns:
        a set with all the valid tickets
        Throws:
        RemoteException - if an error occurs with the server
      • endWork

        void endWork​(Ticket ticket)
              throws RemoteException
        Inform the scheduler that the ticket job has been finished.
        Parameters:
        ticket - the ticket that the job has been finished
        Throws:
        RemoteException - if an error occurs with the server