Class SystemCommandFactory
- java.lang.Object
-
- com.github.toolarium.system.command.util.SystemCommandFactory
-
public final class SystemCommandFactory extends java.lang.ObjectDefines the system command factory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSystemCommandParameters(SystemCommand systemCommand, java.util.Map<java.lang.String,java.lang.String> map, boolean encapsulateValue, boolean encapsulateExpression)Add system command parametersvoidaddSystemCommandParameters(SystemCommand systemCommand, java.util.Map<java.lang.String,java.lang.String> map, java.lang.String keyPrefix, boolean encapsulateValue, boolean encapsulateExpression)Add system command parametersvoidaddSystemCommandParameters(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 parametersjava.lang.StringcreateSleepCommand(int numberOfSeconds)Create a sleep commandstatic SystemCommandFactorygetInstance()Get the instance
-
-
-
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 commandmap- the parameter listencapsulateValue- true to encapsulate valuesencapsulateExpression- 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 commandmap- the parameter listkeyPrefix- the key prefix or nullencapsulateValue- true to encapsulate valuesencapsulateExpression- 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 commandmap- the parameter listkeyPrefix- the key prefix or nullencapsulateValue- true to encapsulate valuesencapsulateExpression- true to encapsulate the full expressionsenstivieSettings- the sensitive settings
-
-