Class SystemCommandFactory


  • public final class SystemCommandFactory
    extends java.lang.Object
    Defines the system command factory
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSystemCommandParameters​(SystemCommand systemCommand, java.util.Map<java.lang.String,​java.lang.String> map, boolean encapsulateValue, boolean encapsulateExpression)
      Add system command parameters
      void addSystemCommandParameters​(SystemCommand systemCommand, java.util.Map<java.lang.String,​java.lang.String> map, java.lang.String keyPrefix, boolean encapsulateValue, boolean encapsulateExpression)
      Add system command parameters
      void addSystemCommandParameters​(SystemCommand systemCommand, java.util.Map<java.lang.String,​java.lang.String> map, java.lang.String keyPrefix, boolean encapsulateValue, boolean encapsulateExpression, java.util.Set<java.lang.String> senstivieSettings)
      Add system command parameters
      java.lang.String createSleepCommand​(int numberOfSeconds)
      Create a sleep command
      static SystemCommandFactory getInstance()
      Get the instance
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static SystemCommandFactory getInstance()
        Get the instance
        Returns:
        the instance
      • createSleepCommand

        public java.lang.String createSleepCommand​(int numberOfSeconds)
        Create a sleep command
        Parameters:
        numberOfSeconds - the number of seconds
        Returns:
        the sleep command
      • addSystemCommandParameters

        public void addSystemCommandParameters​(SystemCommand systemCommand,
                                               java.util.Map<java.lang.String,​java.lang.String> map,
                                               boolean encapsulateValue,
                                               boolean encapsulateExpression)
        Add system command parameters
        Parameters:
        systemCommand - the system command
        map - the parameter list
        encapsulateValue - true to encapsulate values
        encapsulateExpression - true to encapsulate the full expression
      • addSystemCommandParameters

        public void addSystemCommandParameters​(SystemCommand systemCommand,
                                               java.util.Map<java.lang.String,​java.lang.String> map,
                                               java.lang.String keyPrefix,
                                               boolean encapsulateValue,
                                               boolean encapsulateExpression)
        Add system command parameters
        Parameters:
        systemCommand - the system command
        map - the parameter list
        keyPrefix - the key prefix or null
        encapsulateValue - true to encapsulate values
        encapsulateExpression - true to encapsulate the full expression
      • addSystemCommandParameters

        public void addSystemCommandParameters​(SystemCommand systemCommand,
                                               java.util.Map<java.lang.String,​java.lang.String> map,
                                               java.lang.String keyPrefix,
                                               boolean encapsulateValue,
                                               boolean encapsulateExpression,
                                               java.util.Set<java.lang.String> senstivieSettings)
        Add system command parameters
        Parameters:
        systemCommand - the system command
        map - the parameter list
        keyPrefix - the key prefix or null
        encapsulateValue - true to encapsulate values
        encapsulateExpression - true to encapsulate the full expression
        senstivieSettings - the sensitive settings