Class StartPeerPlan


  • public class StartPeerPlan
    extends Plan
    Start another peer agent.
    • Constructor Detail

      • StartPeerPlan

        public StartPeerPlan()
    • Method Detail

      • body

        public void body()
        The body method is called on the instatiated plan instance from the scheduler.
        Specified by:
        body in class Plan
      • createPeerName

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

        protected IComponentIdentifier serviceCreateAgent​(java.lang.String name,
                                                          java.util.Map<java.lang.String,​java.lang.Object> args)
        Create an agent by directly using the CMS service.
        Parameters:
        name - The agent instance name.
        args - The arguments.
      • serviceDestroyAgent

        protected void serviceDestroyAgent​(java.lang.String name)
        Destroy an agent by directly using the CMS service.
        Parameters:
        name - The agent instance name.
        args - The arguments.