Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## mapping
Class MET_MS

    java.lang.Object
      mapping.MappingScheme
          mapping.MET_MS

    public class MET_MS

extends MappingScheme

Author:
  Majd Kokaly

Constructor Summary
`MET_MS(Mapper mapper)`

Method Summary
`Server` | `getMin(Job job)`
`void` | `handleJobTimeOut(long jobID)` The implementation of this method determines what should happen a job times out.
`void` | `mapJob(Job job)` The implementation of this method determines the mapping scheme.
`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` | `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

### MET_MS

    public MET_MS(Mapper mapper)

Method Detail

### startMappingScheme

    public void startMappingScheme()

  Description copied from class: `MappingScheme`
  This method is invoked after the servers and the job classes are defined. It is invoked before the start of the operation. In this method, initialization operations are defined. For instance, if the mapping scheme depends on a thread, the thread is initialized and started.

  Specified by:
    `startMappingScheme` in class `MappingScheme`

### getMin

    public Server getMin(Job job)

### mapJob

    public void mapJob(Job job)

  Description copied from class: `MappingScheme`
  The implementation of this method determines the mapping scheme. It is invoked by the mapper object. The job is sent to the active MappingScheme concrete object (e.g. the LPAS DG object or the Gcu object). This object then makes the mapping decision according to appropriate policy.

  Parameters:
    `job` - the job object to be mapped.

### stopMappingScheme

    public void stopMappingScheme()

  Description copied from class: `MappingScheme`
  In this method, the program- mer should define operations that stop the execution of the system processes (e.g mapping and generation). This can be useful if the system execution is wished to be restarted after stopping it.

  Specified by:
    `stopMappingScheme` in class `MappingScheme`

### handleJobTimeOut

    public void handleJobTimeOut(long jobID)

  Description copied from class: `MappingScheme`
  The implementation of this method determines what should happen a job times out. One way of handling a time-out for instance, is to resubmit the timed-out job. This way was chosen for the implemented schemes.

  Specified by:
    `handleJobTimeOut` in class `MappingScheme`

### serverIsDown

    public void serverIsDown(int serverID)

  Description copied from class: `MappingScheme`
  The implementation of this method determines what should happen a server goes down. For instance, the LPAS_DG policy resolves the LP allocation.

  Specified by:
    `serverIsDown` in class `MappingScheme`
  Parameters:
    `serverID` - the serverID of the server that became unavailable

### serverIsUp

    public void serverIsUp(int serverID)

  Description copied from class: `MappingScheme`
  The implementation of this method determines what should happen a server becomes up. For instance, the LPAS_DG policy resolves the LP allocation.

  Specified by:
    `serverIsUp` in class `MappingScheme`
  Parameters:
    `serverID` - the serverID of the server that became unavailable

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD