Package org.apache.oodt.cas.resource.structs.exceptions

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


        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

            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

            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

    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

        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

        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

    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

  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

  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

Related Classes of org.apache.oodt.cas.resource.structs.exceptions.QueueManagerException

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.