test_class.declarator: settings
test_class.modifier: private
test_class.original_string: private ActionContext settings;
test_class.type: ActionContext
test_class.var_name: settings
test_class.declarator: commonActions
test_class.modifier: private
test_class.original_string: private CommonActions commonActions;
test_class.type: CommonActions
test_class.var_name: commonActions
test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/actions/TestCommonActions.java
test_class.identifier: TestCommonActions
test_class.superclass: extends AbstractTest
test_case.body: @Ignore
  	@Test
  	public void testTimeSync() throws Exception {
  		HashMap<String, String> map = new HashMap<>();
  		map.put("TimeSync", "14:54:00+1m");
  		System.out.println(System.currentTimeMillis());
  		commonActions.TimeSync(settings, map);
  		System.out.println(System.currentTimeMillis());
  	}
test_case.class_method_signature: TestCommonActions.testTimeSync()
test_case.full_signature: @Ignore @Test public void testTimeSync()
test_case.identifier: testTimeSync
test_case.invocations: put println currentTimeMillis TimeSync println currentTimeMillis
test_case.modifiers: @Ignore @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTimeSync()
focal_class.declarator: logger = LoggerFactory.getLogger(CommonActions.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(CommonActions.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: ARGUMENT_FIRST = "First"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARGUMENT_FIRST = "First";
focal_class.type: String
focal_class.var_name: ARGUMENT_FIRST
focal_class.declarator: ARGUMENT_SECOND = "Second"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARGUMENT_SECOND = "Second";
focal_class.type: String
focal_class.var_name: ARGUMENT_SECOND
focal_class.declarator: ARGUMENT_FIRST_MESSAGE = "FirstMessage"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARGUMENT_FIRST_MESSAGE = "FirstMessage";
focal_class.type: String
focal_class.var_name: ARGUMENT_FIRST_MESSAGE
focal_class.declarator: ARGUMENT_SECOND_MESSAGE = "SecondMessage"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARGUMENT_SECOND_MESSAGE = "SecondMessage";
focal_class.type: String
focal_class.var_name: ARGUMENT_SECOND_MESSAGE
focal_class.declarator: ARGUMENT_CHECK_DELTA = "CheckDelta"
focal_class.modifier: public static final
focal_class.original_string: public static final String ARGUMENT_CHECK_DELTA = "CheckDelta";
focal_class.type: String
focal_class.var_name: ARGUMENT_CHECK_DELTA
focal_class.declarator: WAIT_TILL_TIME_ARG_DATE = "till_date"
focal_class.modifier: public static final
focal_class.original_string: public static final String WAIT_TILL_TIME_ARG_DATE = "till_date";
focal_class.type: String
focal_class.var_name: WAIT_TILL_TIME_ARG_DATE
focal_class.declarator: FIRST_ARG = "firstArg"
focal_class.modifier: public static final
focal_class.original_string: public static final String FIRST_ARG = "firstArg";
focal_class.type: String
focal_class.var_name: FIRST_ARG
focal_class.declarator: SECOND_ARG = "secondArg"
focal_class.modifier: public static final
focal_class.original_string: public static final String SECOND_ARG = "secondArg";
focal_class.type: String
focal_class.var_name: SECOND_ARG
focal_class.declarator: DEFAULT_EXEC_TIMEOUT = 60000L
focal_class.modifier: private static final
focal_class.original_string: private static final long DEFAULT_EXEC_TIMEOUT = 60000L;
focal_class.type: long
focal_class.var_name: DEFAULT_EXEC_TIMEOUT
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/actions/CommonActions.java
focal_class.identifier: CommonActions
focal_class.class_method_signature: CommonActions.GetCheckPoint(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public CheckPoint GetCheckPoint(IActionContext actionContext)
focal_class.identifier: GetCheckPoint
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: CheckPoint
focal_class.signature: CheckPoint GetCheckPoint(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.GetAdminCheckPoint(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public CheckPoint GetAdminCheckPoint(IActionContext actionContext)
focal_class.identifier: GetAdminCheckPoint
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: CheckPoint
focal_class.signature: CheckPoint GetAdminCheckPoint(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.Sleep(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.Timeout, required = true)) @ActionMethod public void Sleep(IActionContext actionContext)
focal_class.identifier: Sleep
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.Timeout, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void Sleep(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.WaitTillTime(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CustomColumns(@CustomColumn(value = WAIT_TILL_TIME_ARG_DATE, required = true)) @ActionMethod public void WaitTillTime(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: WaitTillTime
focal_class.modifiers: @CustomColumns(@CustomColumn(value = WAIT_TILL_TIME_ARG_DATE, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void WaitTillTime(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.System_DefineMessage(IActionContext actionContext, T message)
focal_class.full_signature: @CommonColumns({ @CommonColumn(value = Column.MessageType, required = true), @CommonColumn(value = Column.Reference, required = true) }) @ActionMethod public T System_DefineMessage(IActionContext actionContext, T message)
focal_class.identifier: System_DefineMessage
focal_class.modifiers: @CommonColumns({ @CommonColumn(value = Column.MessageType, required = true), @CommonColumn(value = Column.Reference, required = true) }) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, T message)
focal_class.return: T
focal_class.signature: T System_DefineMessage(IActionContext actionContext, T message)
focal_class.class_method_signature: CommonActions.CheckLogon(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public void CheckLogon(IActionContext actionContext)
focal_class.identifier: CheckLogon
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void CheckLogon(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.CleanMessages(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public void CleanMessages(IActionContext actionContext)
focal_class.identifier: CleanMessages
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void CleanMessages(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.CleanAppMessages(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public void CleanAppMessages(IActionContext actionContext)
focal_class.identifier: CleanAppMessages
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void CleanAppMessages(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.CleanAdminMessages(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public void CleanAdminMessages(IActionContext actionContext)
focal_class.identifier: CleanAdminMessages
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void CleanAdminMessages(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.Compare(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CustomColumns({ @CustomColumn(value = FIRST_ARG, required = true), @CustomColumn(value = SECOND_ARG, required = true) }) @ActionMethod public void Compare(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: Compare
focal_class.modifiers: @CustomColumns({ @CustomColumn(value = FIRST_ARG, required = true), @CustomColumn(value = SECOND_ARG, required = true) }) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void Compare(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.getSession(IInitiatorService client, String serviceName)
focal_class.full_signature: private static ISession getSession(IInitiatorService client, String serviceName)
focal_class.identifier: getSession
focal_class.modifiers: private static
focal_class.parameters: (IInitiatorService client, String serviceName)
focal_class.return: ISession
focal_class.signature: ISession getSession(IInitiatorService client, String serviceName)
focal_class.class_method_signature: CommonActions.AskForContinue(IActionContext actionContext)
focal_class.full_signature: @Description( "Pause script and wait untill user resume script. "+ "If #timeout parameter is specified wait number of milliseconds and continue execution.") @CommonColumns({ @CommonColumn(value = Column.Description, required = true), @CommonColumn(Column.Timeout) }) @ActionMethod public void AskForContinue(IActionContext actionContext)
focal_class.identifier: AskForContinue
focal_class.modifiers: @Description( "Pause script and wait untill user resume script. "+ "If #timeout parameter is specified wait number of milliseconds and continue execution.") @CommonColumns({ @CommonColumn(value = Column.Description, required = true), @CommonColumn(Column.Timeout) }) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: void
focal_class.signature: void AskForContinue(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @Description("Use this action to stop SailFish till time you need.<br>" + "Specify time in the column TimeSync<br>" + "Time can be absolute (UTC) or relative.<br>" + "Examples:<br>" + "absolutely - 16:56:00<br>" + "relatively - 16:56:00+1m (where 1m = 1 minute)<br>" + "17:00:00+3h (where 3h = 3 hours)<br>" + "17:13:00+25s (where 25s = 25 seconds)<br>") @CustomColumns(@CustomColumn(value = "TimeSync", required = true)) @ActionMethod public void TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: TimeSync
focal_class.modifiers: @Description("Use this action to stop SailFish till time you need.<br>" + "Specify time in the column TimeSync<br>" + "Time can be absolute (UTC) or relative.<br>" + "Examples:<br>" + "absolutely - 16:56:00<br>" + "relatively - 16:56:00+1m (where 1m = 1 minute)<br>" + "17:00:00+3h (where 3h = 3 hours)<br>" + "17:13:00+25s (where 25s = 25 seconds)<br>") @CustomColumns(@CustomColumn(value = "TimeSync", required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.GetSettings(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public HashMap<?,?> GetSettings(IActionContext actionContext)
focal_class.identifier: GetSettings
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: HashMap<?,?>
focal_class.signature: HashMap<?,?> GetSettings(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.GetEnvironmentName(IActionContext actionContext)
focal_class.full_signature: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public String GetEnvironmentName(IActionContext actionContext)
focal_class.identifier: GetEnvironmentName
focal_class.modifiers: @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: String
focal_class.signature: String GetEnvironmentName(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.getLatency(IActionContext actionContext)
focal_class.full_signature: @Description("Returns latency between client and server (client time - server time) in milliseconds.<br>" + "Server time is retrieved from 'timestamp' (e.g. SendingTime, TransactTime, etc.) fields of received messages.<br>" + "Latency is updated on every received message which contains server time.<br>" + "Action execution result will be placed in <b>Latency</b> field.") @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public HashMap<?, ?> getLatency(IActionContext actionContext)
focal_class.identifier: getLatency
focal_class.modifiers: @Description("Returns latency between client and server (client time - server time) in milliseconds.<br>" + "Server time is retrieved from 'timestamp' (e.g. SendingTime, TransactTime, etc.) fields of received messages.<br>" + "Latency is updated on every received message which contains server time.<br>" + "Action execution result will be placed in <b>Latency</b> field.") @CommonColumns(@CommonColumn(value = Column.ServiceName, required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext)
focal_class.return: HashMap<?, ?>
focal_class.signature: HashMap<?, ?> getLatency(IActionContext actionContext)
focal_class.class_method_signature: CommonActions.RunScript(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CommonColumns(@CommonColumn(Column.Timeout)) @CustomColumns(@CustomColumn(value = "PathArgs", required = true)) @ActionMethod public void RunScript(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: RunScript
focal_class.modifiers: @CommonColumns(@CommonColumn(Column.Timeout)) @CustomColumns(@CustomColumn(value = "PathArgs", required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void RunScript(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.execProcess(IActionReport report, long timeout, String... cmdarray)
focal_class.full_signature: private void execProcess(IActionReport report, long timeout, String... cmdarray)
focal_class.identifier: execProcess
focal_class.modifiers: private
focal_class.parameters: (IActionReport report, long timeout, String... cmdarray)
focal_class.return: void
focal_class.signature: void execProcess(IActionReport report, long timeout, String... cmdarray)
focal_class.class_method_signature: CommonActions.SaveBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Content", required = true), @CustomColumn(value = "Compress", required = false) }) @ActionMethod public void SaveBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: SaveBase64Content
focal_class.modifiers: @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Content", required = true), @CustomColumn(value = "Compress", required = false) }) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void SaveBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.SaveContent(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Content", required = true), @CustomColumn("Append") }) @ActionMethod @Description("Save specified \"Content\" into file mapped by \"FileAlias\". " + "If specified \"Append\" param (y, yes) then content will be appended, by default overwritten") public void SaveContent(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: SaveContent
focal_class.modifiers: @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Content", required = true), @CustomColumn("Append") }) @ActionMethod @Description("Save specified \"Content\" into file mapped by \"FileAlias\". " + "If specified \"Append\" param (y, yes) then content will be appended, by default overwritten") public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void SaveContent(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.LoadBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @Description("Encode file to base64.<br/>"+ "<b>FileAlias</b> - file to encode.<br/>" + "<b>Compress</b> - do compress result string (y / Y / n / N).<br/>") @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Compress", required = false)}) @ActionMethod public String LoadBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: LoadBase64Content
focal_class.modifiers: @Description("Encode file to base64.<br/>"+ "<b>FileAlias</b> - file to encode.<br/>" + "<b>Compress</b> - do compress result string (y / Y / n / N).<br/>") @CommonColumns(@CommonColumn(value = Column.Reference, required = true)) @CustomColumns({ @CustomColumn(value = "FileAlias", required = true), @CustomColumn(value = "Compress", required = false)}) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: String
focal_class.signature: String LoadBase64Content(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.CheckLatency(IActionContext actionContext, HashMap<?, Object> map)
focal_class.full_signature: @Description("Checks the difference between two values in milliseconds.<br><br>" + "Supported values are:<br>" + " * IMessage - in this case timestamp from its meta data will be used<br>" + " * LocalDateTime<br>" + " * LocalTime - will be treated as LocalDateTime with LocalTime=1970-01-01<br>" + " * Long - will be treated as UNIX timestamp in milliseconds<br><br>" + ARGUMENT_FIRST + '/' + ARGUMENT_SECOND + " - values to check time delta. Example: ${ref}, ${ref.timestamp}, #{getDateTime()}, etc.<br>" + ARGUMENT_CHECK_DELTA + " - filter to check time delta. Example: x > 50 && x < 100") @CustomColumns({ @CustomColumn(ARGUMENT_FIRST), @CustomColumn(value = ARGUMENT_FIRST_MESSAGE, deprecated = true), @CustomColumn(value = ARGUMENT_CHECK_DELTA, required = true), @CustomColumn(ARGUMENT_SECOND), @CustomColumn(value = ARGUMENT_SECOND_MESSAGE, deprecated = true) }) @ActionMethod public void CheckLatency(IActionContext actionContext, HashMap<?, Object> map)
focal_class.identifier: CheckLatency
focal_class.modifiers: @Description("Checks the difference between two values in milliseconds.<br><br>" + "Supported values are:<br>" + " * IMessage - in this case timestamp from its meta data will be used<br>" + " * LocalDateTime<br>" + " * LocalTime - will be treated as LocalDateTime with LocalTime=1970-01-01<br>" + " * Long - will be treated as UNIX timestamp in milliseconds<br><br>" + ARGUMENT_FIRST + '/' + ARGUMENT_SECOND + " - values to check time delta. Example: ${ref}, ${ref.timestamp}, #{getDateTime()}, etc.<br>" + ARGUMENT_CHECK_DELTA + " - filter to check time delta. Example: x > 50 && x < 100") @CustomColumns({ @CustomColumn(ARGUMENT_FIRST), @CustomColumn(value = ARGUMENT_FIRST_MESSAGE, deprecated = true), @CustomColumn(value = ARGUMENT_CHECK_DELTA, required = true), @CustomColumn(ARGUMENT_SECOND), @CustomColumn(value = ARGUMENT_SECOND_MESSAGE, deprecated = true) }) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, Object> map)
focal_class.return: void
focal_class.signature: void CheckLatency(IActionContext actionContext, HashMap<?, Object> map)
focal_class.class_method_signature: CommonActions.saveContent(IActionContext actionContext, HashMap<?, ?> inputData, InputStream source)
focal_class.full_signature: private void saveContent(IActionContext actionContext, HashMap<?, ?> inputData, InputStream source)
focal_class.identifier: saveContent
focal_class.modifiers: private
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData, InputStream source)
focal_class.return: void
focal_class.signature: void saveContent(IActionContext actionContext, HashMap<?, ?> inputData, InputStream source)
focal_class.class_method_signature: CommonActions.preparePath(String path)
focal_class.full_signature: private static String preparePath(String path)
focal_class.identifier: preparePath
focal_class.modifiers: private static
focal_class.parameters: (String path)
focal_class.return: String
focal_class.signature: String preparePath(String path)
focal_class.class_method_signature: CommonActions.toPathArgs(String command)
focal_class.full_signature: private static String[] toPathArgs(String command)
focal_class.identifier: toPathArgs
focal_class.modifiers: private static
focal_class.parameters: (String command)
focal_class.return: String[]
focal_class.signature: String[] toPathArgs(String command)
focal_class.class_method_signature: CommonActions.RunScriptWithArgs(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.full_signature: @CommonColumns(@CommonColumn(Column.Timeout)) @CustomColumns(@CustomColumn(value = "Command", required = true)) @ActionMethod public void RunScriptWithArgs(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.identifier: RunScriptWithArgs
focal_class.modifiers: @CommonColumns(@CommonColumn(Column.Timeout)) @CustomColumns(@CustomColumn(value = "Command", required = true)) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.return: void
focal_class.signature: void RunScriptWithArgs(IActionContext actionContext, HashMap<?, ?> inputData)
focal_class.class_method_signature: CommonActions.CheckMessage(IActionContext actionContext, HashMap<?, ?> filterData)
focal_class.full_signature: @Description( "Check message tags with mvel expressions.<br>" + "For every field that contains value this action " + "will try to evaluate that value and return boolean result.<br>" + "Logical and equality operators are following:<br>" + "'==' Equal to<br>" + "'!=' Not equal to<br>" + "'>' Greater than<br>" + "'>=' Greater than or equal to<br>" + "'<' Less than<br>" + "'<=' Less than or equal to<br>" + "'&&' AND<br>" + "'||' OR<br>" + "'^' exclusive OR<br>" + "Example: ${Logon1.HeartBtInt} + \" != 10 && \" + ${Logon1.HeartBtInt} + \" < 1000 && \" + ${Logon1.HeartBtInt} + \" > 200\"" ) @ActionMethod public void CheckMessage(IActionContext actionContext, HashMap<?, ?> filterData)
focal_class.identifier: CheckMessage
focal_class.modifiers: @Description( "Check message tags with mvel expressions.<br>" + "For every field that contains value this action " + "will try to evaluate that value and return boolean result.<br>" + "Logical and equality operators are following:<br>" + "'==' Equal to<br>" + "'!=' Not equal to<br>" + "'>' Greater than<br>" + "'>=' Greater than or equal to<br>" + "'<' Less than<br>" + "'<=' Less than or equal to<br>" + "'&&' AND<br>" + "'||' OR<br>" + "'^' exclusive OR<br>" + "Example: ${Logon1.HeartBtInt} + \" != 10 && \" + ${Logon1.HeartBtInt} + \" < 1000 && \" + ${Logon1.HeartBtInt} + \" > 200\"" ) @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> filterData)
focal_class.return: void
focal_class.signature: void CheckMessage(IActionContext actionContext, HashMap<?, ?> filterData)
focal_class.class_method_signature: CommonActions.SetVariables(IActionContext actionContext, HashMap<?, ?> message)
focal_class.full_signature: @Description("Create message with pair column / value. Value will have type String if it doesn't contain AML constructions.") @ActionMethod public HashMap<?, ?> SetVariables(IActionContext actionContext, HashMap<?, ?> message)
focal_class.identifier: SetVariables
focal_class.modifiers: @Description("Create message with pair column / value. Value will have type String if it doesn't contain AML constructions.") @ActionMethod public
focal_class.parameters: (IActionContext actionContext, HashMap<?, ?> message)
focal_class.return: HashMap<?, ?>
focal_class.signature: HashMap<?, ?> SetVariables(IActionContext actionContext, HashMap<?, ?> message)
focal_class.class_method_signature: CommonActions.getTimestamp(Object value)
focal_class.full_signature: private static long getTimestamp(Object value)
focal_class.identifier: getTimestamp
focal_class.modifiers: private static
focal_class.parameters: (Object value)
focal_class.return: long
focal_class.signature: long getTimestamp(Object value)
focal_class.superclass: extends AbstractCaller
focal_method.body: @Description("Use this action to stop SailFish till time you need.<br>" +
          "Specify time in the column TimeSync<br>" +
          "Time can be absolute (UTC) or relative.<br>" +
          "Examples:<br>" +
          "absolutely - 16:56:00<br>" +
          "relatively - 16:56:00+1m (where 1m = 1 minute)<br>" +
          "17:00:00+3h (where 3h = 3 hours)<br>" +
  	    "17:13:00+25s (where 25s = 25 seconds)<br>")
      @CustomColumns(@CustomColumn(value = "TimeSync", required = true))
  	@ActionMethod
  	public void TimeSync(IActionContext actionContext, HashMap<?, ?> inputData) throws Exception
  	{
          DateTimeFormatter df = DateTimeUtility.createFormatter("HH:mm:ss");
  
          int s_ms = 1000;
          int m_ms = 60000;
          int h_ms = 3600000;
  
          String value = ((String)unwrapFilters(inputData.get("TimeSync"))).trim();
          StringTokenizer t = new StringTokenizer(value, "+");
  
          List<String> tokens = new ArrayList<>();
  		while (t.hasMoreTokens()) {
  			tokens.add(t.nextToken().trim());
  		}
  
          LocalDateTime p = null;
  		try {
              p = DateTimeUtility.toLocalDateTime(LocalTime.parse(tokens.get(0), df));
          } catch (DateTimeParseException pe) {
  			throw pe;
  		}
  
          LocalDateTime currentLocalDateTime = DateTimeUtility.nowLocalDateTime();
          p = p.withYear(currentLocalDateTime.getYear());
          p = p.withMonth(currentLocalDateTime.getMonth().getValue());
          p = p.withDayOfMonth(currentLocalDateTime.getDayOfMonth());
  
          long abs = DateUtil.getMilliseconds(p);
  
  		if (tokens.size() > 1) {
  			for (int i = 1; i < tokens.size(); i++) {
  				String token = tokens.get(i);
  				int mul = Integer.parseInt(token.substring(0, token.length()-1));
  				String smul2 = token.substring(token.length()-1, token.length());
  				int mul2 = 0;
                  if("h".equals(smul2)) {
                      mul2 = h_ms;
                  } else if("m".equals(smul2)) {
                      mul2 = m_ms;
                  } else if("s".equals(smul2)) {
                      mul2 = s_ms;
                  }
  				abs += mul*mul2;
  			}
  		}
  
  		actionContext.getLogger().info("time sync till {}", p);
          if (System.currentTimeMillis() >= abs) {
              String errorDescription = p + " has already passed, now " + DateTimeUtility.nowLocalDateTime();
              throw new EPSCommonException(errorDescription);
          } else {
              Thread.sleep(abs - System.currentTimeMillis());
          }
      }
focal_method.class_method_signature: CommonActions.TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)
focal_method.full_signature: @Description("Use this action to stop SailFish till time you need.<br>" + "Specify time in the column TimeSync<br>" + "Time can be absolute (UTC) or relative.<br>" + "Examples:<br>" + "absolutely - 16:56:00<br>" + "relatively - 16:56:00+1m (where 1m = 1 minute)<br>" + "17:00:00+3h (where 3h = 3 hours)<br>" + "17:13:00+25s (where 25s = 25 seconds)<br>") @CustomColumns(@CustomColumn(value = "TimeSync", required = true)) @ActionMethod public void TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)
focal_method.identifier: TimeSync
focal_method.invocations: createFormatter trim unwrapFilters get hasMoreTokens add trim nextToken toLocalDateTime parse get nowLocalDateTime withYear getYear withMonth getValue getMonth withDayOfMonth getDayOfMonth getMilliseconds size size get parseInt substring length substring length length equals equals equals info getLogger currentTimeMillis nowLocalDateTime sleep currentTimeMillis
focal_method.modifiers: @Description("Use this action to stop SailFish till time you need.<br>" + "Specify time in the column TimeSync<br>" + "Time can be absolute (UTC) or relative.<br>" + "Examples:<br>" + "absolutely - 16:56:00<br>" + "relatively - 16:56:00+1m (where 1m = 1 minute)<br>" + "17:00:00+3h (where 3h = 3 hours)<br>" + "17:13:00+25s (where 25s = 25 seconds)<br>") @CustomColumns(@CustomColumn(value = "TimeSync", required = true)) @ActionMethod public
focal_method.parameters: (IActionContext actionContext, HashMap<?, ?> inputData)
focal_method.return: void
focal_method.signature: void TimeSync(IActionContext actionContext, HashMap<?, ?> inputData)