|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmapping.MappingScheme
mapping.Gcu_MS
public class Gcu_MS
This is the implementation of the Gcu scheduling policy.
| Constructor Summary | |
|---|---|
Gcu_MS(Mapper mapper)
A default constructor. |
|
| Method Summary | |
|---|---|
JobsQueue[] |
getClassesQueues()
|
void |
handleJobTimeOut(long jobID)
Resubmit timed out jobs. |
void |
initQueues()
This method initialize a queue for every job class. |
void |
serverIsDown(int serverID)
The implementation of this method determines what should happen a server goes down. |
void |
serverIsUp(int serverID)
The implementation of this method determines what should happen a server becomes up. |
void |
setClassesQueues(JobsQueue[] classesQueues)
|
void |
startMappingScheme()
This method is invoked after the servers and the job classes are defined. |
void |
stopMappingScheme()
In this method, the program- mer should define operations that stop the execution of the system processes (e.g mapping and generation). |
| 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 Gcu_MS(Mapper mapper)
mapper - To set the mapper field.| Method Detail |
|---|
public JobsQueue[] getClassesQueues()
public void setClassesQueues(JobsQueue[] classesQueues)
public void startMappingScheme()
MappingScheme
startMappingScheme in class MappingSchemeMappingScheme.startMappingScheme()public void stopMappingScheme()
MappingScheme
stopMappingScheme in class MappingSchemeMappingScheme.stopMappingScheme()public void handleJobTimeOut(long jobID)
handleJobTimeOut in class MappingSchemeMappingScheme.handleJobTimeOut(long)public void serverIsDown(int serverID)
MappingScheme
serverIsDown in class MappingSchemeserverID - the serverID of the server that became unavailableMappingScheme.serverIsDown(int)public void serverIsUp(int serverID)
MappingScheme
serverIsUp in class MappingSchemeserverID - the serverID of the server that became unavailableMappingScheme.serverIsUp(int)public void initQueues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||