//
Thread t = new Thread() {
@Override
public void run() {
try {
JobStatus jobStatus = finalCluster.getJobStatus(jobID);
listener.statusChanged(jobStatus);
while (true) {
while (!jobStatus.equals(JobStatus.C)) {
if (!jobStatus.equals(listener.getJobStatus().toString())) {
listener.setJobStatus(jobStatus);
listener.statusChanged(jobStatus);
}
Thread.sleep(60000);