mapping
Class TWOREP_MS_Thread

java.lang.Object
  extended by mapping.TWOREP_MS_Thread
All Implemented Interfaces:
java.lang.Runnable

public class TWOREP_MS_Thread
extends java.lang.Object
implements java.lang.Runnable

This Thread is a helper thread for the FCFS_MS objects. It is a thread that iterates over the AvailableServers Queue and then it asks the FCFS_MS object to map a job for two servers in the queue

Author:
Majd Kokaly & Ben Kybartas

Constructor Summary
TWOREP_MS_Thread(FCFS_MS fcfs_ms)
          A default constructor
 
Method Summary
 boolean arrayisFull(int[] array)
           
 boolean failuresOccur()
           
 FCFS_MS getFCFS_MS()
           
 boolean isAlive()
           
 boolean readyforJobSubmission()
           
 void run()
           
 void setAlive(boolean alive)
           
 void setFCFS_MS(FCFS_MS Fcfs_ms)
           
 void startThread()
          This method starts the thread
 void stopThread()
          This method stops the thread
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWOREP_MS_Thread

public TWOREP_MS_Thread(FCFS_MS fcfs_ms)
A default constructor

Method Detail

isAlive

public boolean isAlive()

setAlive

public void setAlive(boolean alive)

getFCFS_MS

public FCFS_MS getFCFS_MS()

setFCFS_MS

public void setFCFS_MS(FCFS_MS Fcfs_ms)

startThread

public void startThread()
This method starts the thread


stopThread

public void stopThread()
This method stops the thread


arrayisFull

public boolean arrayisFull(int[] array)

failuresOccur

public boolean failuresOccur()

readyforJobSubmission

public boolean readyforJobSubmission()

run

public void run()
Specified by:
run in interface java.lang.Runnable