Class CheckELKIServices


  • public class CheckELKIServices
    extends java.lang.Object
    Helper application to test the ELKI service properties files for missing implementation entries, for listing available implementations in the UIs.
    Since:
    0.2
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Logging LOG
      The logger for this class.
      private static java.util.regex.Pattern STRIP
      Pattern to strip comments, while keeping commented class names.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void checkAliases​(java.lang.Class<?> parent, java.lang.String classname, java.lang.String[] parts)
      Check if aliases are listed completely.
      private void checkService​(java.lang.String prop, java.lang.String update)
      Check a single service class
      void checkServices​(java.lang.String update)
      Retrieve all properties and check them.
      static void main​(java.lang.String[] argv)
      Main method.
      • Methods inherited from class java.lang.Object

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

      • LOG

        private static final Logging LOG
        The logger for this class.
      • STRIP

        private static final java.util.regex.Pattern STRIP
        Pattern to strip comments, while keeping commented class names.
    • Constructor Detail

      • CheckELKIServices

        public CheckELKIServices()
    • Method Detail

      • main

        public static void main​(java.lang.String[] argv)
        Main method.
        Parameters:
        argv - Command line arguments
      • checkServices

        public void checkServices​(java.lang.String update)
        Retrieve all properties and check them.
        Parameters:
        update - Folder to update service files in
      • checkService

        private void checkService​(java.lang.String prop,
                                  java.lang.String update)
        Check a single service class
        Parameters:
        prop - Class name.
        update - Folder to update service files in
      • checkAliases

        private void checkAliases​(java.lang.Class<?> parent,
                                  java.lang.String classname,
                                  java.lang.String[] parts)
        Check if aliases are listed completely.
        Parameters:
        parent - Parent class
        classname - Class name
        parts - Splitted service line