Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ===================== SOURCE =============================
- // config
- System.setProperty("saga.location", this.sagaLocation);
- System.setProperty("JobService.adaptor.name", "xosaga");
- System.setProperty("java.endorsed.dirs", this.sagaLocation + "/lib/adaptors/GridsamAdaptor/endorsed:" +
- this.sagaLocation + "/lib/endorsed");
- String server = "any://192.168.56.3";
- logger.debug("createURL: server == " + server);
- URL serverURL = URLFactory.createURL(server);
- logger.debug("createSession");
- Session session = SessionFactory.createSession(true);
- logger.debug("createJobService");
- JobService js = JobFactory.createJobService(serverURL);
- logger.debug("Create a job: /bin/hostname executed on 1 nodes");
- JobDescription jd = JobFactory.createJobDescription();
- jd.setAttribute(JobDescription.EXECUTABLE, "/bin/hostname");
- // jd.setAttribute(JobDescription.NUMBEROFPROCESSES, "1"); //10
- jd.setAttribute(JobDescription.OUTPUT, "alage-xosaga-test.out");
- jd.setAttribute(JobDescription.ERROR, "alage-xosaga-test.err");
- logger.debug("Create the job, run it, and wait for it");
- Job job = js.createJob(jd);
- job.addCallback(Job.JOB_STATE, null );
- job.addCallback(Job.JOB_STATEDETAIL, null );
- job.run();
- job.waitFor();
- //// logger.debug("after waitFor");
- //// System.exit(0);
- } catch (Throwable e) {
- logger.debug("Got exception: ", e);
- e.printStackTrace();
- e.getCause().printStackTrace();
- }
- ===================== OUTPUT =============================
- (...)
- Oct 29, 2010 2:39:44 PM org.ogf.saga.engine.AdaptorInvocationHandler <init>
- INFO: initAdaptor: instantiated JobServiceAdaptor for type JobService
- [WARN ] |Oct 29 14:39:44| [AnonymousIoService-6] mina.NetHandlerMINA - The peer xosd reports a different IP from its actual one. Reported: Address = [://192.168.56.3:60000(192.168.56.3)], actual: /131.254.15.98:41950
- [INFO ] |Oct 29 14:39:44| [main] xati.XATI - Restarting XATI.
- [ERROR] |Oct 29 14:39:44| [main] security.ServiceTrustStore - Truststore seems to be empty or non-existing: /etc/xos/truststore/certs/dixi_ssl
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Guessing local address. If this is not coming out right, try setting the name of the preferred network adapter to networkInterface option of xosd config.
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Using 131.254.15.98 as the local address.
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Connecting to xosd at Address = [://192.168.56.3:60000]
- [INFO ] |Oct 29 14:39:44| [main] xati.XATI - Restarting XATI.
- [ERROR] |Oct 29 14:39:44| [main] security.ServiceTrustStore - Truststore seems to be empty or non-existing: /etc/xos/truststore/certs/dixi_ssl
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Guessing local address. If this is not coming out right, try setting the name of the preferred network adapter to networkInterface option of xosd config.
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Using 131.254.15.98 as the local address.
- [INFO ] |Oct 29 14:39:44| [main] xati.XATIBus - Connecting to xosd at Address = [://192.168.56.3:60000]
- Oct 29, 2010 2:39:44 PM org.ogf.saga.engine.AdaptorInvocationHandler <init>
- INFO: initAdaptor: instantiated JobServiceAdaptor for type JobService
- (...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement