Package org.glite.lb

Examples of org.glite.lb.Sources


            if (job.getSequenceCode() != null) {
              //  ctxd.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register"));
           // } else {
                SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
                sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));

                job.setSequenceCode(sc.toString());

                //ctxd.setSeqCode(sc);

                if (jobDB != null) {
                    try {
                       jobDB.update(job);
                    } catch (DatabaseException ex) {
                        throw new LBException(ex.getMessage());
                    }
                }
            }

           // ctxd.setSource(new Sources(Sources.CREAM_EXECUTOR));

            EventRegJob reg = new EventRegJob();
            reg.setNs(job.getCreamURL());
            reg.setJobtype(EventRegJob.Jobtype.CREAM);

            //ctxd.log(reg);

            ContextIL ctx = new ContextIL(ILPrefix);
            ctx.setJobid(lbjob);

            if (job.getSequenceCode() == null) {
                ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_register_cheat"));
            } else {
                ctx.setSeqCode(new SeqCode(SeqCode.CREAM, job.getSequenceCode()));
            }

            ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
            ctx.setUser(job.getExtraAttribute("USER_DN_X500"));

            //ctx.setUser(ctxd.getUser());
            reg.setJdl(job.getJDL());
View Full Code Here


        if (job.getSequenceCode() == null) {
            ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_insertcmd_" + cmd.getId() + "_" + phase));
        } else {
            SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
            sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));

            job.setSequenceCode(sc.toString());

            ctx.setSeqCode(sc);

            if (jobDB != null && !JobCommandConstant.JOB_PURGE.equals(cmd.getName())) {
                try {
                   jobDB.update(job);
                } catch (DatabaseException ex) {
                    throw new LBException(ex.getMessage());
                }
            }
        }

        ctx.setSource(new Sources(Sources.CREAM_INTERFACE));
        ctx.setUser(cmd.getUserId());

        Jobid jobid;
        if (job.getGridJobId() == null || Job.NOT_AVAILABLE_VALUE.equals(job.getGridJobId())) {
            jobid = new Jobid(defaultLBURI.getHost(), defaultLBURI.getPort(), job.getId());
View Full Code Here

        if (job.getSequenceCode() == null) {
            ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_execute_" + cmd.getId() + "_" + phase));
        } else {
            SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
            sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));
            job.setSequenceCode(sc.toString());
            ctx.setSeqCode(sc);

            if (jobDB != null && !JobCommandConstant.JOB_PURGE.equals(cmd.getName())) {
                try {
                   jobDB.update(job);
                } catch (DatabaseException ex) {
                    throw new LBException(ex.getMessage());
                }
            }
        }

        ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
        ctx.setUser(cmd.getUserId());

        Jobid jobid;
        if (job.getGridJobId() == null || Job.NOT_AVAILABLE_VALUE.equals(job.getGridJobId())) {
            jobid = new Jobid(defaultLBURI.getHost(), defaultLBURI.getPort(), job.getId());
        } else {
            jobid = new Jobid(job.getGridJobId());
        }

        ctx.setJobid(jobid);

        EventCREAMCall event = new EventCREAMCall();
        event.setCallee(new Sources(Sources.LRMS));
        event.setCmdid(""+cmd.getId());
       
        // logger.debug("execute: id = " + cmd.getId() + " name = " +
        // cmd.getName()+ " category = " + cmd.getCategory() +
        // " failureReason = " + cmd.getFailureReason() + " description = " +
View Full Code Here

       
        if (job.getSequenceCode() == null) {
            ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_statuschange_" + status.getName() + "_" + phase));
        } else {
            SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
            sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));
            job.setSequenceCode(sc.toString());
            ctx.setSeqCode(sc);

            if (jobDB != null) {
                try {
                   jobDB.update(job);
                } catch (DatabaseException ex) {
                    throw new LBException(ex.getMessage());
                }
            }
        }
       
        ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
        ctx.setUser(job.getUserId());

        Jobid jobid;
        if (job.getGridJobId() == null || Job.NOT_AVAILABLE_VALUE.equals(job.getGridJobId())) {
            jobid = new Jobid(defaultLBURI.getHost(), defaultLBURI.getPort(), job.getId());
View Full Code Here

        ContextIL ctx = new ContextIL(ILPrefix);
        if (job.getSequenceCode() == null) {
            ctx.setSeqCode(new SeqCode(SeqCode.CREAM, "no_seqcodes_with_cream_accept"));
        } else {
            SeqCode sc = new SeqCode(SeqCode.CREAMWMS, job.getSequenceCode());
            sc.incrementSeqCode(new Sources(Sources.CREAM_EXECUTOR));
           
            job.setSequenceCode(sc.toString());
           
            ctx.setSeqCode(sc);

            if (jobDB != null) {
                try {
                   jobDB.update(job);
                } catch (DatabaseException ex) {
                    throw new LBException(ex.getMessage());
                }
            }
        }
       
        ctx.setSource(new Sources(Sources.CREAM_EXECUTOR));
        ctx.setUser(job.getUserId());

        Jobid jobid;
        if (job.getGridJobId() == null || Job.NOT_AVAILABLE_VALUE.equals(job.getGridJobId())) {
            jobid = new Jobid(defaultLBURI.getHost(), defaultLBURI.getPort(), job.getId());
View Full Code Here

TOP

Related Classes of org.glite.lb.Sources

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.