|
From: <ha...@us...> - 2007-09-21 22:34:51
|
Revision: 1756
http://cogkit.svn.sourceforge.net/cogkit/?rev=1756&view=rev
Author: hategan
Date: 2007-09-21 15:34:48 -0700 (Fri, 21 Sep 2007)
Log Message:
-----------
log the type as a string
Modified Paths:
--------------
trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java
Modified: trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java
===================================================================
--- trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java 2007-09-21 15:40:05 UTC (rev 1755)
+++ trunk/current/src/cog/modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java 2007-09-21 22:34:48 UTC (rev 1756)
@@ -270,8 +270,18 @@
}
public String toString() {
- return "Task(type=" + type + ", identity=" + id + ")";
+ return "Task(type=" + typeString(type) + ", identity=" + id + ")";
}
+
+ public static String typeString(int type) {
+ switch (type) {
+ case JOB_SUBMISSION: return "JOB_SUBMISSION";
+ case FILE_TRANSFER: return "FILE_TRANSFER";
+ case FILE_OPERATION: return "FILE_OPERATION";
+ case INFORMATION_QUERY: return "INFORMATION_QUERY";
+ default: return "UNKNOWN";
+ }
+ }
public boolean isUnsubmitted() {
return (this.status.getStatusCode() == Status.UNSUBMITTED);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|