|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmapping.MappingScheme
mapping.FCFS_MS
public class FCFS_MS
This is the implementation of the FCFS scheduling policy.
| 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 |
|---|
public FCFS_MS(Mapper mapper)
mapper - The mapper object| Method Detail |
|---|
public void startMappingScheme()
startMappingScheme in class MappingSchemeMappingScheme.startMappingScheme()public void stopMappingScheme()
stopMappingScheme in class MappingSchemeMappingScheme.stopMappingScheme()public void handleJobTimeOut(long jobID)
handleJobTimeOut in class MappingSchemeMappingScheme.handleJobTimeOut(long)public void serverIsDown(int serverID)
serverIsDown in class MappingSchemeserverID - the serverID of the server that became unavailableMappingScheme.serverIsDown(int)public void serverIsUp(int serverID)
serverIsUp in class MappingSchemeserverID - the serverID of the server that became unavailableMappingScheme.handleJobTimeOut(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||