Examples of QueueManagerException


Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

        try {
            Vector<Object> argList = new Vector<Object>();
            argList.add(queueName);
            client.execute("resourcemgr.addQueue", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

        try {
            Vector<Object> argList = new Vector<Object>();
            argList.add(queueName);
            client.execute("resourcemgr.removeQueue", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

            Vector<Object> argList = new Vector<Object>();
            argList.add(nodeId);
            argList.add(queueName);
            client.execute("resourcemgr.addNodeToQueue", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

            Vector<Object> argList = new Vector<Object>();
            argList.add(nodeId);
            argList.add(queueName);
            client.execute("resourcemgr.removeNodeFromQueue", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

    public List<String> getQueues() throws QueueManagerException {
        try {
            Vector<Object> argList = new Vector<Object>();
            return (List<String>) client.execute("resourcemgr.getQueues", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

        try {
            Vector<Object> argList = new Vector<Object>();
            argList.add(queueName);
            return (List<String>) client.execute("resourcemgr.getNodesInQueue", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

        try {
            Vector<Object> argList = new Vector<Object>();
            argList.add(nodeId);
            return (List<String>) client.execute("resourcemgr.getQueuesWithNode", argList);
        }catch (Exception e) {
            throw new QueueManagerException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

    return this.queueToNodesMapping.containsKey(queueName);
  }
 
  public synchronized void addNodeToQueue(String nodeId, String queueName) throws QueueManagerException {
    if (queueName == null || !this.queueToNodesMapping.containsKey(queueName))
      throw new QueueManagerException("Queue '" + queueName + "' does not exist");
   
    // add node to queue
    LinkedHashSet<String> nodes = this.queueToNodesMapping.get(queueName);
    if (nodes == null)
      nodes = new LinkedHashSet<String>();
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

  public synchronized List<String> getNodes(String queueName) throws QueueManagerException {
    if (queueName != null && this.queueToNodesMapping.containsKey(queueName))
      return new Vector<String>(this.queueToNodesMapping.get(queueName));
    else
      throw new QueueManagerException("Queue '" + queueName + "' does not exist");
  }
View Full Code Here

Examples of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

  public synchronized void removeNodeFromQueue(String nodeId, String queueName) throws QueueManagerException {
    if (queueName != null && this.queueToNodesMapping.containsKey(queueName))
      this.queueToNodesMapping.get(queueName).remove(nodeId);
    else
      throw new QueueManagerException("Queue '" + queueName + "' does not exist");
  }
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.