Class Startup


  • public class Startup
    extends Object
    • Method Detail

      • placeHost

        public static String placeHost​(String key)
        n return the full DNS name and port without the protocol part
      • placeName

        public static String placeName​(String key)
        return the type of place specified Key manipulator does not work on this, though it seems to if the key has dots in the hostname like many do.
      • setAction

        public static int setAction​(String optarg)
        Set the action based on the command line argument
      • bootstrap

        public boolean bootstrap()
      • localDirectorySetup

        protected boolean localDirectorySetup​(Map<String,​String> localDirectoriesArg)
      • placeSetup

        protected boolean placeSetup​(int directoryActionArg,
                                     Map<String,​String> localDirectoriesArg,
                                     Map<String,​String> placesArg,
                                     Set<String> hostParameters)
        Start all places on the list on a thread, return control immediately. All places in hostParameters list must be for the same host:port!
      • stopAndWaitForPlaceCreation

        protected void stopAndWaitForPlaceCreation()
        Check to see if all the places have started and been registered in the directory. This doesn't account for directories, just things started with a "PLACE" tag
      • sortPlaces

        protected void sortPlaces​(List<String> placeList)
        sort all the PLACE entries into either a processing place or a pickup place
      • getLocationName

        protected static String getLocationName​(String location)
      • verifyNoInvisiblePlacesStarted

        public static boolean verifyNoInvisiblePlacesStarted()
        Verifies the active directory places vs places started up. Log if any places are started without being announced in start-up.
        Returns:
        true if no invisible places started, false if yes
      • getInvisPlaces

        public static Set<String> getInvisPlaces()
      • isInvisPlacesStartedInStrictMode

        public static boolean isInvisPlacesStartedInStrictMode()