Class AMGenerateServerID


  • public class AMGenerateServerID
    extends Object
    This class is basically used to generate two byte string server id that can be used to update the platform server list. This class will be used either during multiserver install or during existing dit install to update the server entry list. By default, during our install, our platform server list has it's default server id as "01" separated by delimiter "|". This class also takes care for not generating existing server id in the current platform server list.
    • Constructor Detail

      • AMGenerateServerID

        public AMGenerateServerID()
    • Method Detail

      • main

        public static void main​(String[] args)
      • returnId

        public static String returnId​(Set servers,
                                      String server)
        This method returns server id for a corresponding server
      • getTwoByteString

        public static String getTwoByteString​(Set skip)
        This function returns a two byte string but by skipping if finds it in the passing hashed set. This function generates two byte strings in an order starting from "01, 02, 03,.........,aa, ab,.....,zz,...ZZ"