Class AgentCreationAgent


  • public class AgentCreationAgent
    extends java.lang.Object
    Agent creation benchmark.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String createPeerName​(int num, IComponentIdentifier cid)
      Create a name for a peer with a given number.
      protected void deletePeers​(int cnt, long killstarttime, double dur, double pera, long omem, double upera, int max, boolean nested)
      Delete all peers from last-1 to first.
      IFuture<java.lang.Void> executeBody()
      Execute an agent step.
      protected void killLastPeer​(int max, long killstarttime, double dur, double pera, long omem, double upera)
      Kill the last peer and print out the results.
      static void main​(java.lang.String[] args)
      Main for testing.
      protected void step1​(java.util.Map<java.lang.String,​java.lang.Object> args)
      Execute the first step.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AgentCreationAgent

        public AgentCreationAgent()
    • Method Detail

      • executeBody

        public IFuture<java.lang.Void> executeBody()
        Execute an agent step.
      • step1

        protected void step1​(java.util.Map<java.lang.String,​java.lang.Object> args)
        Execute the first step.
      • createPeerName

        protected java.lang.String createPeerName​(int num,
                                                  IComponentIdentifier cid)
        Create a name for a peer with a given number.
      • deletePeers

        protected void deletePeers​(int cnt,
                                   long killstarttime,
                                   double dur,
                                   double pera,
                                   long omem,
                                   double upera,
                                   int max,
                                   boolean nested)
        Delete all peers from last-1 to first.
        Parameters:
        cnt - The highest number of the agent to kill.
      • killLastPeer

        protected void killLastPeer​(int max,
                                    long killstarttime,
                                    double dur,
                                    double pera,
                                    long omem,
                                    double upera)
        Kill the last peer and print out the results.
      • main

        public static void main​(java.lang.String[] args)
        Main for testing.