[MOBY-guts] biomoby commit

Martin Senger senger at dev.open-bio.org
Thu May 31 13:42:51 UTC 2007


senger
Thu May 31 09:42:51 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared
In directory dev.open-bio.org:/tmp/cvs-serv1857/src/main/org/biomoby/shared

Modified Files:
	MobyService.java 
Log Message:
starting addign support for async services
moby-live/Java/src/main/org/biomoby/shared MobyService.java,1.17,1.18
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2007/03/29 19:41:37	1.17
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/MobyService.java	2007/05/31 13:42:51	1.18
@@ -40,7 +40,7 @@
     static public final String BIOMOBY_SERVICE_URI = "http://biomoby.org/";
 
     protected String name;
-    protected String category = "moby";
+    protected String category = CATEGORY_MOBY;
     protected String authority = "";
     protected String emailContact = "";
     protected String type = "";
@@ -61,6 +61,17 @@
     public static final int TESTED = 8; // Gives a valid answer to a valid test input provided by the service
     protected int serviceStatus = UNCHECKED;
     protected int statusChecks = UNCHECKED;
+
+    /** Name of a default category for BioMoby services. */
+    public static final String CATEGORY_MOBY = "moby";
+    
+    /** Name of a category for asynchornous BioMoby services. */
+    public static final String CATEGORY_MOBY_ASYNC = "moby-async";
+
+    /** A suffix added to a service name in order to make a method
+     * name that submits input to an asynchronous service.
+     */
+    public static final String SUBMIT_ACTION_SUFFIX = "_submit";
     
     // We need both, because you can't synchrinize on a null array
     protected static MobyService[] uninitializedServices = new MobyService[0];
@@ -196,7 +207,7 @@
 	return category;
     }
     public void setCategory (String value) {
-	category = (value == null ? "moby" : value);
+	category = (value == null ? CATEGORY_MOBY : value);
     }
 
     public String getDescription() {
@@ -529,6 +540,6 @@
     }
 
     public boolean isAsynchronous(){
-	return category.equals("moby-async");
+	return category.equals (CATEGORY_MOBY_ASYNC);
     }
 }




More information about the MOBY-guts mailing list