function for registering only to LBProxy
authorMiloš Mulač <mulac@civ.zcu.cz>
Fri, 2 Jun 2006 12:11:04 +0000 (12:11 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Fri, 2 Jun 2006 12:11:04 +0000 (12:11 +0000)
org.glite.lb.client-interface/interface/producer.h.T
org.glite.lb.client/src/producer.c

index cfbafb2..f84d623 100644 (file)
@@ -372,6 +372,23 @@ extern int edg_wll_RegisterJobProxy(
        edg_wlc_JobId **        subjobs
 );
 
+#ifdef LB_PERF
+/* register only to LBProxy            */
+/* useful for performance measurements */
+
+extern int edg_wll_RegisterJobProxyOnly(
+       edg_wll_Context         context,
+       const edg_wlc_JobId     job,
+       enum edg_wll_RegJobJobtype      type,
+       const char *            jdl,
+       const char *            ns,
+       int                     num_subjobs,
+       const char *            seed,
+       edg_wlc_JobId **        subjobs
+);
+#endif
+
+
 
 /**
  * Register subjobs in a batch.
index 44e076e..6f3bce7 100644 (file)
@@ -859,6 +859,26 @@ int edg_wll_RegisterJobProxy(
        return edg_wll_RegisterJobMaster(context,LOGFLAG_PROXY,job,type,jdl,ns,NULL,num_subjobs,seed ? seed : MY_SEED,subjobs);
 }
 
+
+#ifdef LB_PERF
+// function for loggin only to LBProxy
+// useful for performace measuring
+int edg_wll_RegisterJobProxyOnly(
+        edg_wll_Context         context,
+        const edg_wlc_JobId     job,
+        enum edg_wll_RegJobJobtype     type,
+        const char *            jdl,
+        const char *            ns,
+        int                     num_subjobs,
+        const char *            seed,
+        edg_wlc_JobId **        subjobs)
+{
+#define        MY_SEED "edg_wll_RegisterJobProxy()"
+       return edg_wll_RegisterJobMaster(context,LOGFLAG_PROXY,job,type,jdl,ns,NULL,num_subjobs,seed ? seed : MY_SEED,subjobs);
+}
+
+#endif
+
 int edg_wll_RegisterSubjob(
         edg_wll_Context         context,
         const edg_wlc_JobId     job,