declarations of "well known" JP attributes
authorAleš Křenek <ljocha@ics.muni.cz>
Fri, 26 Aug 2005 14:54:41 +0000 (14:54 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Fri, 26 Aug 2005 14:54:41 +0000 (14:54 +0000)
org.glite.jp.common/Makefile
org.glite.jp.common/interface/attr.h
org.glite.jp.common/interface/known_attr.h [new file with mode: 0644]

index 1562cb6..330186d 100644 (file)
@@ -37,7 +37,7 @@ LINKXX:=libtool --mode=link ${CXX} ${LDFLAGS}
 INSTALL:=libtool --mode=install install
 COMPILE:=libtool --mode=compile ${CC} ${CFLAGS}
 
-HDRS:=types.h context.h strmd5.h attr.h
+HDRS:=types.h context.h strmd5.h attr.h known_attr.h
 
 SRCS:=context.c strmd5.c attr.c
 OBJS:=${SRCS:.c=.lo}
index 2e371d8..02fda03 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef __GLITE_JP_ATTR
 #define __GLITE_JP_ATTR
 
-#define GLITE_JP_SYSTEM_NS     "http://egee.cesnet.cz/en/WSDL/jp-system"
-#define GLITE_JP_ATTR_OWNER    GLITE_JP_SYSTEM_NS ":owner"
-
 void glite_jp_attrval_free(glite_jp_attrval_t *,int);
 void glite_jp_attrval_copy(glite_jp_attrval_t *,const glite_jp_attrval_t *);
 
diff --git a/org.glite.jp.common/interface/known_attr.h b/org.glite.jp.common/interface/known_attr.h
new file mode 100644 (file)
index 0000000..7116615
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef __GLITE_JP_KNOWN_ATTR
+#define __GLITE_JP_KNOWN_ATTR
+
+/** Namespace of JP system attributes */
+#define GLITE_JP_SYSTEM_NS     "http://egee.cesnet.cz/en/WSDL/jp-system"
+
+/** Job owner, as specified with RegisterJob JPPS operation */
+#define GLITE_JP_ATTR_OWNER    GLITE_JP_SYSTEM_NS ":owner" 
+
+/** Namespace for attributes derived from LB system data */
+#define GLITE_JP_LB_NS         "http://egee.cesnet.cz/en/WSDL/jp-lb"
+
+#define GLITE_JP_LB_SUBMITTED  GLITE_JP_LB_NS ":submitted"     /**< submit time */
+#define GLITE_JP_LB_TERMINATED GLITE_JP_LB_NS ":terminated"    /**< termination time (done, abort, cancel) */
+#define GLITE_JP_LB_FINALSTATE GLITE_JP_LB_NS ":finalState"    /**< final job status */
+/* TODO: others */
+
+/** Namespace for LB user tags, schemaless, all values are strings */
+#define GLITE_JP_LBTAG_NS      "http://egee.cesnet.cz/en/WSDL/jp-lbtag"
+
+#endif