|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapping.MappingScheme
public abstract class MappingScheme
To add a mapping scheme, A concrete class that extend this abstract class, thus it must implement the methods of this class. This class determines what services should the concrete class provides to the Mapper objects.
Constructor Summary | |
---|---|
MappingScheme(Mapper mapper)
A default constructor |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
Mapper |
getMapper()
|
abstract void |
handleJobTimeOut(long jobID)
The implementation of this method determines what should happen a job times out. |
abstract void |
serverIsDown(int serverID)
The implementation of this method determines what should happen a server goes down. |
abstract void |
serverIsUp(int serverID)
The implementation of this method determines what should happen a server becomes up. |
void |
setDescription(java.lang.String description)
|
void |
setMapper(Mapper mapper)
|
abstract void |
startMappingScheme()
This method is invoked after the servers and the job classes are defined. |
abstract 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingScheme(Mapper mapper)
mapper
- to set the mapper field.Method Detail |
---|
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public Mapper getMapper()
public void setMapper(Mapper mapper)
public abstract void startMappingScheme()
public abstract void stopMappingScheme()
public abstract void handleJobTimeOut(long jobID)
jobID
- public abstract void serverIsDown(int serverID)
serverID
- the serverID of the server that became unavailablepublic abstract void serverIsUp(int serverID)
serverID
- the serverID of the server that became unavailable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |