Class CommandTestExtractMetadata

  • All Implemented Interfaces:
    ICommand

    public class CommandTestExtractMetadata
    extends AbstractCommand<T>
    Command that runs an extract metadata script and returns the extracted properties.
    • Constructor Detail

      • CommandTestExtractMetadata

        public CommandTestExtractMetadata()
    • Method Detail

      • execute

        public ResultCode execute​(java.lang.String[] args)
                           throws ch.systemsx.cisd.common.exceptions.UserFailureException,
                                  ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
        Description copied from interface: ICommand
        Calls this ICommand with given arguments.

        The arguments are the main(String[]) method ones.

        Note that this method is expected to throw given RuntimeException (unchecked) exceptions. So do not catch them and let the caller handle them.
        Specified by:
        execute in interface ICommand
        Returns:
        exit code, will be used in System.exit().
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException
        ch.systemsx.cisd.common.exceptions.EnvironmentFailureException
      • getName

        public java.lang.String getName()
        Description copied from interface: ICommand
        Returns the name of this command.

        On the client side, this ICommand is registered with this name. This is kind of unique identifier of this ICommand.

        Specified by:
        getName in interface ICommand
      • printUsage

        public void printUsage​(java.io.PrintStream out)
        Print usage information about the command.
        Specified by:
        printUsage in interface ICommand
        Overrides:
        printUsage in class AbstractCommand<ch.systemsx.cisd.openbis.dss.client.api.cli.CommandTestValid.CommandTestValidArguments>
        Parameters:
        out - The stream to which help is printed
      • getRequiredArgumentsString

        protected java.lang.String getRequiredArgumentsString()
        Description copied from class: AbstractCommand
        What are the required arguments?