本文整理汇总了Java中org.globus.gram.GramJob.STATUS_FAILED属性的典型用法代码示例。如果您正苦于以下问题:Java GramJob.STATUS_FAILED属性的具体用法?Java GramJob.STATUS_FAILED怎么用?Java GramJob.STATUS_FAILED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.globus.gram.GramJob
的用法示例。
在下文中一共展示了GramJob.STATUS_FAILED属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: statusChanged
public void statusChanged(GramJob job) {
if (job.getStatus() == GramJob.STATUS_DONE) {
done();
} else if (job.getStatus() == GramJob.STATUS_FAILED) {
this.failed = true;
Status status = new StatusImpl();
status.setPrevStatusCode(this.task.getStatus().getStatusCode());
status.setStatusCode(Status.FAILED);
status.setMessage("ErrorCode: " + job.getError());
this.task.setStatus(status);
} else if (job.getStatus() == GramJob.STATUS_ACTIVE && !this.failed) {
this.task.setStatus(Status.ACTIVE);
}
}
示例2: statusChanged
public synchronized void statusChanged(GramJob job) {
if (!quiet) {
System.out.println("Job: "+ job.getStatusAsString());
}
status = job.getStatus();
if (status == GramJob.STATUS_DONE) {
finished = true;
error = 0;
notify();
} else if (job.getStatus() == GramJob.STATUS_FAILED) {
finished = true;
error = job.getError();
notify();
}
}
示例3: isFinished
public boolean isFinished() {
return (status == GramJob.STATUS_DONE ||
status == GramJob.STATUS_FAILED);
}
示例4: statusChanged
public synchronized void statusChanged(GramJob job) {
if (job.getStatus() == GramJob.STATUS_FAILED) {
notified = true;
notify();
}
}
示例5: isStartState
public static boolean isStartState(int status) {
return (status == GramJob.STATUS_ACTIVE ||
status == GramJob.STATUS_FAILED ||
status == GramJob.STATUS_DONE);
}