Examples of AgentManager


Examples of net.sf.collabreview.agents.AgentManager

  public void configureAgentManager(ConfigurationConfigurableCollabReview collabReview, ConfigurationData config) throws Exception {
    if (config == null) {
      logger.warn("No AgentManager <agents/> configured");
      return;
    }
    AgentManager agentManager = new AgentManager();
    logger.debug("AgentManager created");
    agentManager.configure(collabReview, config);
    collabReview.setAgentManager(agentManager);
  }
View Full Code Here

Examples of net.sf.collabreview.agents.AgentManager

public class Eda {
  private static final Log logger = LogFactory.getLog(Eda.class);

  public static void main(String[] args) {
    CollabReview collabReview = AutoConfigurator.newConfiguredApplication();
    AgentManager agentManager = collabReview.getAgentManager();
    try {
      Thread.sleep(15000);
    } catch (InterruptedException e) {
    }
View Full Code Here

Examples of org.jivesoftware.xmpp.workgroup.AgentManager

     * @param queue  the <code>RequestQueue</code> to add agents to.
     * @param agents a comma-delimited list of agents.
     */
    public static void addAgents(RequestQueue queue, String agents) {
        WorkgroupManager workgroupManager = WorkgroupManager.getInstance();
        AgentManager agentManager = workgroupManager.getAgentManager();

        // loop thru all params
        StringTokenizer tokenizer = new StringTokenizer(agents, ", \t\n\r\f");
        while (tokenizer.hasMoreTokens()) {
            String usernameToken = tokenizer.nextToken();
            if (usernameToken.indexOf('@') != -1) {
                usernameToken = JID.escapeNode(usernameToken);
            }
            try {
                // See if they are a user in the system.
                UserManager.getInstance().getUser(usernameToken);
                usernameToken += ("@" + ComponentManagerFactory.getComponentManager().getServerName());
                JID address = new JID(usernameToken.trim());
                Agent agent;

                if (agentManager.hasAgent(address)) {
                    agent = agentManager.getAgent(address);
                }
                else {
                    agent = agentManager.createAgent(address);
                }
                queue.addMember(agent);
            }
            catch (Exception e) {
                Log.error(e.getMessage(), e);
View Full Code Here

Examples of org.ngrinder.perftest.service.AgentManager

    if (agentIdentity != null) {
      agentInfo.setAgentIdentity(agentIdentity);
      agentInfo.setName(agentIdentity.getName());
      agentInfo.setRegion(agentIdentity.getRegion());
      agentInfo.setIp(agentIdentity.getIp());
      AgentManager agentManager = getAgentManager();
      agentInfo.setPort(agentManager.getAgentConnectingPort(agentIdentity));
      agentInfo.setState(agentManager.getAgentState(agentIdentity));
      agentInfo.setVersion(agentManager.getAgentVersion(agentIdentity));
    }
    return agentInfo;
  }
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.