Examples of QueueInterface


Examples of com.sun.grid.jam.queue.QueueInterface

            console.append("Submitting job to " +
                           ((Name)queueAttrs[i]).name + "\n");
          }
        }
       
        QueueInterface queue = (QueueInterface)queueItem.service;

        // This is it - submit the application to the selected queue
        try {
    application.submit(queue);
        } catch(ClassNotFoundException cnfe) {
View Full Code Here

Examples of com.sun.grid.jam.queue.QueueInterface

    if(e.getClickCount() > 1) {
      int index = list.getSelectedIndex();
      //Show Compute Monitor
      ServiceItem queueItem = browser.getServiceItem(index, serviceCache);
      Entry queueAttrs[] = queueItem.attributeSets;
      QueueInterface queue = (QueueInterface)queueItem.service;

      // Find Name of service (there's got to be an easier way XXX)
      for (int i=0; i<queueAttrs.length; ++i) {
  if (queueAttrs[i] instanceof Name) {
    console.append("Start Monitoring Queue " + ((Name)queueAttrs[i]).name + "\n");
View Full Code Here

Examples of com.sun.grid.jam.queue.QueueInterface

  private void submitJob(String scriptFile)
  {
    try {
      //Get the service from lookup cache
      QueueInterface q = getQueueService(queueList.getSelectedIndex());
      //Prepare an application Object
      StringTokenizer pList = new StringTokenizer(param.getText());
      String[] p = new String[pList.countTokens()];
      for(int i = 0; i < p.length; i ++)
        p[i] = pList.nextToken();
      String script = getScriptContent(scriptFile);
      UserProperties user = new UserProperties("Real Name",
                                               userID);
      Entry entry [] = { new JobUserKey(appName,
                                        user,
                                        "localhost",
                                        new Date()),
                         new Name(appName),
                         new Name(userID) };
      q.submit(new AppParams(appName, null, script, p, true), entry,
               user);
      //Start a service listener waiting for the Job service
      JAMServiceUILauncher launcher = new
        JAMServiceUILauncher(lookupManager, entry,
                             "com.sun.grid.jam.job.JobInterface");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.