Class Main


  • public class Main
    extends java.lang.Object
    Start a running instance. Each instance should have an id and a password (freely chosen by the user starting the process). The ID will be used to display the node in the control console and the password is meant to provide temporary security until the node is configured properly.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String JJ_DIR  
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deregisterPlan​(Plan plan)  
      static boolean isNotShuttingDown()
      This is a heuristic test for system shutdown.
      static java.util.Optional<Plan> locatePlan​(java.lang.String name)  
      static void main​(java.lang.String[] args)  
      static void registerPlan​(Plan plan)  
      • Methods inherited from class java.lang.Object

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

      • JJ_DIR

        public static java.lang.String JJ_DIR
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • registerPlan

        public static void registerPlan​(Plan plan)
      • deregisterPlan

        public static void deregisterPlan​(Plan plan)
      • locatePlan

        public static java.util.Optional<Plan> locatePlan​(java.lang.String name)
      • isNotShuttingDown

        public static boolean isNotShuttingDown()
        This is a heuristic test for system shutdown. It is potentially expensive, so it should only be used in code that is not performance sensitive. (i.e. code where an exception is already being thrown).
        Returns:
        true if the system is shutting down