Package pku.cbi.abcgrid.master.service

Examples of pku.cbi.abcgrid.master.service.App


        String appName = commands[0];
        if(job_monitor.isJobFull(appName))
            throw new Exception("Job queue is full (Maximum:32)");

        App app = apps.get(appName);
        int priority = usermgr.getUserPriority(submitter);
        Job j = app.parse(submitter, commands, priority);
        j.setId(atomic_job_id.getAndIncrement());
        //partition this job into tasks
        List<Task> tasks = app.fragment(j);
        JobInfo ji = new JobInfo(j.getId(), j.getSubmitter(),commands);
        for (Task t : tasks)
        {
            ji.add(new TaskInfo(t));
        }
View Full Code Here


    {
        createServiceQueue("NCBI_BLAST");
        createServiceQueue("HMMER");
        createServiceQueue("CE");
        //createServiceQueue("DALI");
        App s;

        s = new blastall();
        apps.put(s.getAppName(), s);

        s = new bl2seq();
        apps.put(s.getAppName(), s);

        s = new rpsblast();
        apps.put(s.getAppName(), s);

        s = new megablast();
        apps.put(s.getAppName(), s);

        s = new CE();
        apps.put(s.getAppName(), s);

        //s = new DaliLite();
        //services.put(s.getAppName(), s);

        s = new hmmpfam();
        apps.put(s.getAppName(), s);
    }
View Full Code Here

    {
        List<String> buffer = new ArrayList<String>();
        for (Map.Entry<String, App> ss : apps.entrySet())
        {
            String name = ss.getKey();
            App serv = ss.getValue();
            String sa = serv.getServiceName() + "." + name + "\n";
            buffer.add(sa);
        }
        String[] ss = new String[buffer.size()];
        buffer.toArray(ss);
        return ss;
View Full Code Here

TOP

Related Classes of pku.cbi.abcgrid.master.service.App

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.