Examples of AgentAddress


Examples of net.grinder.messages.console.AgentAddress

   *
   * @param agentIdentity agent controller identity
   */
  public void stopAgent(AgentIdentity agentIdentity) {
    LOGGER.info("{} agent is stopped.", agentIdentity);
    getComponent(ConsoleCommunication.class).sendToAddressedAgents(new AgentAddress(agentIdentity),
        new StopGrinderMessage());
  }
View Full Code Here

Examples of net.grinder.messages.console.AgentAddress

   *
   * @param agentIdentity agentIdentity
   * @param version       version
   */
  public void updateAgent(AgentIdentity agentIdentity, String version) {
    getComponent(ConsoleCommunication.class).sendToAddressedAgents(new AgentAddress(agentIdentity),
        AgentUpdateGrinderMessage.getStartAgentUpdateGrinderMessage(version));
  }
View Full Code Here

Examples of org.janusproject.kernel.address.AgentAddress

   * @return the leader flag.
   */
  public boolean isLeader(SituatedObject o) {
    if (o instanceof AgentBody) {
      AgentBody body = (AgentBody)o;
      AgentAddress adr = body.getOwner();
      if (adr!=null) {
        String s = LocalizedString.get(Rabbit.class, "LEADER"); //$NON-NLS-1$
        return s!=null && s.equals(adr.getName());
      }
    }
    return false;
  }
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.