Package org.eso.ias.asce.transfer
Class TransferExecutor
java.lang.Object
org.eso.ias.asce.transfer.TransferExecutor
- Direct Known Subclasses:
JavaTransferExecutor
TransferExecutor is the abstract for the
implementators of the transfer function in java.
- Author:
- acaproni
-
Field Summary
Modifier and TypeFieldDescriptionprotected final String
The ID of the computational element that runs this transfer functionprotected final String
The ID of the computational element that runs this transfer function extended with the IDs of its parentsprotected final Properties
Properties for this executor.protected final long
The time frame (msec) to invalidate monitor points that have been refreshed after the time frame. -
Constructor Summary
ConstructorDescriptionTransferExecutor
(String cEleId, String cEleRunningId, long validityTimeFrame, Properties props) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
final void
setTemplateInstance
(Optional<Integer> templateInstance) Set the instance of the template, if anyabstract void
shutdown()
Shuts down the BehaviorRunner when the IAS does not need it anymore.
-
Field Details
-
compElementId
The ID of the computational element that runs this transfer function -
compElementRunningId
The ID of the computational element that runs this transfer function extended with the IDs of its parents- See Also:
-
Identifier
-
validityTimeFrame
protected final long validityTimeFrameThe time frame (msec) to invalidate monitor points that have been refreshed after the time frame. The validityTimeFrame is given by validityThreshold prop. of the IAS -
props
Properties for this executor.
-
-
Constructor Details
-
TransferExecutor
public TransferExecutor(String cEleId, String cEleRunningId, long validityTimeFrame, Properties props) Constructor- Parameters:
cEleId
- : The id of the ASCEcEleRunningId
- : the running ID of the ASCEvalidityTimeFrame
- : The time frame (msec) to invalidate monitor pointsprops
- : The properties fro the executor
-
-
Method Details
-
setTemplateInstance
Set the instance of the template, if any- Parameters:
templateInstance
- the instance of the template
-
isTemplated
public boolean isTemplated()- Returns:
true
if the ASCE where the TF runs has been generated by a template;false
otherwise
-
shutdown
Shuts down the BehaviorRunner when the IAS does not need it anymore. This life cycle method is called last, to clean up the resources. It is supposed to return quickly, even if not mandatory.- Throws:
Exception
- In case of error shutting down
-
getTemplateInstance
- Returns:
- The instance of the template, if defined; empty otherwise
- See Also:
-
templateInstance
-