|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapping.MappingScheme
mapping.SLQ_MS
public class SLQ_MS
This is an implementation of the SLQ scheduling policy
Constructor Summary | |
---|---|
SLQ_MS(Mapper mapper)
A default constructor. |
Method Summary | |
---|---|
JobsQueue[] |
getClassesQueues()
|
void |
handleJobTimeOut(long jobID)
Resubmit timed out jobs |
void |
initQueues()
This method initializes 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 |
setClassesQueue(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 SLQ_MS(Mapper mapper)
mapper
- The mapper objectMethod Detail |
---|
public JobsQueue[] getClassesQueues()
public void setClassesQueue(JobsQueue[] ClassesQueues)
public void startMappingScheme()
MappingScheme
startMappingScheme
in class MappingScheme
MappingScheme.startMappingScheme()
public void stopMappingScheme()
MappingScheme
stopMappingScheme
in class MappingScheme
MappingScheme.stopMappingScheme()
public void handleJobTimeOut(long jobID)
handleJobTimeOut
in class MappingScheme
MappingScheme.handleJobTimeOut(long)
public void serverIsDown(int serverID)
MappingScheme
serverIsDown
in class MappingScheme
serverID
- the serverID of the server that became unavailableMappingScheme.serverIsDown(int)
public void serverIsUp(int serverID)
MappingScheme
serverIsUp
in class MappingScheme
serverID
- 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 |