Class StatusCliArgumentParser

    • Constructor Detail

      • StatusCliArgumentParser

        public StatusCliArgumentParser​(String mainClassName)
        Creates a new instance of this argument parser with no arguments.
        Parameters:
        mainClassName - The fully-qualified name of the Java class that should be invoked to launch the program with which this argument parser is associated.
    • Method Detail

      • initializeGlobalArguments

        public void initializeGlobalArguments​(OutputStream outStream)
                                       throws ArgumentException
        Initialize Global option.
        Parameters:
        outStream - The output stream used for the usage.
        Throws:
        ArgumentException - If there is a problem with any of the parameters used to create this argument.
      • isInteractive

        public boolean isInteractive()
        Tells whether the user specified to have an interactive status CLI or not. This method must be called after calling parseArguments.
        Returns:
        true if the user specified to have an interactive status CLI and false otherwise.
      • isScriptFriendly

        public boolean isScriptFriendly()
        Tells whether the user specified to have a script-friendly output or not. This method must be called after calling parseArguments.
        Returns:
        true if the user specified to have a script-friendly output and false otherwise.
      • getRefreshPeriod

        public int getRefreshPeriod()
        Returns the refresh period (in seconds) specified in the command-line. If no refresh period was specified, returns -1. The code assumes that the attributes have been successfully parsed.
        Returns:
        the specified refresh period in the command-line.
      • getExplicitBindDn

        public String getExplicitBindDn()
        Returns the bind DN explicitly provided in the command-line.
        Returns:
        the bind DN explicitly provided in the command-line. Returns null if no bind DN was explicitly provided.
      • getDefaultBindDn

        public String getDefaultBindDn()
        Returns the bind DN default value.
        Returns:
        the bind DN default value.