mapping
Class FCFS_MS

java.lang.Object
  extended by mapping.MappingScheme
      extended by mapping.FCFS_MS

public class FCFS_MS
extends MappingScheme

This is the implementation of the FCFS scheduling policy.

Author:
Majd Kokaly

Constructor Summary
FCFS_MS(Mapper mapper)
          A default constructor.
 
Method Summary
 void handleJobTimeOut(long jobID)
          The job is resubmitted when a timeout happens.
 void serverIsDown(int serverID)
          FCFS policy is not sensitive for availability/unavailability events, thus this method is not implemented.
 void serverIsUp(int serverID)
          FCFS policy is not sensitive.
 void startMappingScheme()
          In this method the queue is constructed and the FCFS_MS_Thread is initialized and started.
 void stopMappingScheme()
          The FCFS_MS_Thread is stopped.
 
Methods inherited from class mapping.MappingScheme
getDescription, getMapper, setDescription, setMapper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FCFS_MS

public FCFS_MS(Mapper mapper)
A default constructor.

Parameters:
mapper - The mapper object
Method Detail

startMappingScheme

public void startMappingScheme()
In this method the queue is constructed and the FCFS_MS_Thread is initialized and started.

Specified by:
startMappingScheme in class MappingScheme
See Also:
MappingScheme.startMappingScheme()

stopMappingScheme

public void stopMappingScheme()
The FCFS_MS_Thread is stopped.

Specified by:
stopMappingScheme in class MappingScheme
See Also:
MappingScheme.stopMappingScheme()

handleJobTimeOut

public void handleJobTimeOut(long jobID)
The job is resubmitted when a timeout happens.

Specified by:
handleJobTimeOut in class MappingScheme
See Also:
MappingScheme.handleJobTimeOut(long)

serverIsDown

public void serverIsDown(int serverID)
FCFS policy is not sensitive for availability/unavailability events, thus this method is not implemented.

Specified by:
serverIsDown in class MappingScheme
Parameters:
serverID - the serverID of the server that became unavailable
See Also:
MappingScheme.serverIsDown(int)

serverIsUp

public void serverIsUp(int serverID)
FCFS policy is not sensitive. FCFS policy is not sensitive for availability/unavailability events, thus this method is not implemented.

Specified by:
serverIsUp in class MappingScheme
Parameters:
serverID - the serverID of the server that became unavailable
See Also:
MappingScheme.handleJobTimeOut(long)