public class FileTransferPlanElement extends PlanElementBase
StorageSystem.
The transfer can have a direction of either FileTransferPlanElement.TransferDirection.Store or
FileTransferPlanElement.TransferDirection.Retrieve. In case the direction is
FileTransferPlanElement.TransferDirection.Store, the Input parameter
is expected to have a value of the file path that is to be stored in the StorageSystem and is located in the
same hosting machine as the one execution the element. After the operation is completed, the Output
parameter will have as value the identifier assigned to the stored file by the StorageSystem. In case
the direction is FileTransferPlanElement.TransferDirection.Retrieve, the Input
parameter is expected to have as value the identifier of the document that is stored in the StorageSystem
and after the execution, the Output will have the local filename where the document is stored.
In case of the Direction has a value of FileTransferPlanElement.TransferDirection.Retrieve,
the MoveTo parameter can also be set that can dictate a new filename to rename the retrieved
file to. In same case the permission attributes can also be set. The IsExecutable flag can
be used to make the file executable, or the more flexible Permissions field can be
used to set the full permissions of the file. For these permissions the common four digit UNIX format is used.| Modifier and Type | Class and Description |
|---|---|
static class |
FileTransferPlanElement.AccessInfo |
static class |
FileTransferPlanElement.StoreMode |
static class |
FileTransferPlanElement.TransferDirection
The transfer direction
|
PlanElementBase.ClockTypeIPlanElement.PlanElementType| Modifier and Type | Field and Description |
|---|---|
FileTransferPlanElement.AccessInfo |
accessInfo |
FileTransferPlanElement.TransferDirection |
Direction
The Direction.
|
IInputParameter |
Input
This parameter holds the input value of the
FileTransferPlanElement operation. |
boolean |
IsExecutable
Flag indicating that the file transfered is executable and should have its
permissions set accordingly.
|
IInputParameter |
MoveTo
After a file has been retrieved from the
StorageSystem, it is stored in a
temporary location. |
IOutputParameter |
Output
After the file transfer operation this parameter will contain the respective
StorageSystem return value. |
FileTransferPlanElement.StoreMode |
OutputStoreMode |
String |
Permissions
The Permissions to set to the file transfered.
|
String |
StoreUrlLocation |
| Constructor and Description |
|---|
FileTransferPlanElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
ExecuteExtender(ExecutionHandle Handle)
Execute extender.
|
void |
FromXML(Element XML)
Populate the element from its xml serialization as returned by
IPlanElement.ToXML() |
void |
FromXML(String XML)
Populate the element from its xml serialization as returned by
IPlanElement.ToXML() |
List<ContingencyTrigger> |
GetContingencyTriggers()
Gets the contingency triggers.
|
org.slf4j.Logger |
GetExtenderLogger()
Gets the extender logger.
|
String |
GetID()
Gets the id.
|
Set<String> |
GetModifiedVariableNames()
Gets the modified variable names of the element and of the elements contained.
|
String |
GetName()
Gets the name.
|
Set<String> |
GetNeededVariableNames()
Gets the needed variable names of the element and of the elements contained.
|
IPlanElement.PlanElementType |
GetPlanElementType()
Gets the plan element type.
|
IPlanElement |
Locate(String ID)
Locate the plan element with the provided id.
|
Set<IPlanElement> |
LocateActionElements()
Retrieves the Action elements under this elements
|
static void |
main(String[] args) |
void |
SetContingencyResourcePick(ExecutionHandle Handle,
String Pick)
Sets the picked resource in case the
IContingencyReaction.ReactionType#Pick reaction is supported |
void |
SetName(String Name)
Sets the name.
|
IContingencyReaction.ReactionType[] |
SupportedContingencyTriggers()
Retrieves the supported contingency triggers.
|
boolean |
SupportsContingencyTriggers()
Checks if the element supports contingency triggers.
|
String |
ToXML()
Serialize to xml the element and all its contained elements
|
void |
Validate()
Validate the element and any sub element it contains
|
void |
ValidatePreExecution(ExecutionHandle Handle)
Validate the element and any sub element it contains before it is executed
|
CheckStatus, Execute, ExecuteWithStateAwareness, GetPerformanceEvent, RegisterToRunningActionElementsRestriction, ResetClocks, StartClock, StopClock, UnregisterToRunningActionElementsRestriction, updatepublic IInputParameter Input
FileTransferPlanElement operation.
If the Direction field has a value of
FileTransferPlanElement.TransferDirection.Retrieve, this parameter is expected to have the
StorageSystem identifier of the document to retrieve. in case the
Direction field has a value of
FileTransferPlanElement.TransferDirection.Store, this parameter is expected to have the path
of the file to store to the StorageSystempublic IOutputParameter Output
StorageSystem return value. in case the Direction
field has a value of FileTransferPlanElement.TransferDirection.Retrieve, this parameter will be set to
the name of the file that is retrieved by the StorageSystem. If the
MoveTo parameter is set, the filename that is retrieved
by this parameter is stored in Output. If the direction
is set to FileTransferPlanElement.TransferDirection.Store, the StorageSystem identifier
assigned to the stored file is set to Outputpublic FileTransferPlanElement.TransferDirection Direction
public IInputParameter MoveTo
StorageSystem, it is stored in a
temporary location. This parameter can be set to retrieve a filename that the temporary
file should be renamed to. This value is only considered in case the
Direction field has a value of
FileTransferPlanElement.TransferDirection.Retrievepublic String Permissions
Direction field has a value of
FileTransferPlanElement.TransferDirection.Retrievepublic boolean IsExecutable
Direction field has a value of
FileTransferPlanElement.TransferDirection.Retrievepublic FileTransferPlanElement.StoreMode OutputStoreMode
public String StoreUrlLocation
public FileTransferPlanElement.AccessInfo accessInfo
public void FromXML(String XML) throws ExecutionSerializationException
IPlanElementIPlanElement.ToXML()XML - the xML serializationExecutionSerializationException - A serialization error occurredpublic void FromXML(Element XML) throws ExecutionSerializationException
IPlanElementIPlanElement.ToXML()XML - the xML serializationExecutionSerializationException - A serialization error occurredpublic String GetID()
IPlanElementpublic String GetName()
IPlanElementpublic IPlanElement.PlanElementType GetPlanElementType()
IPlanElementpublic IPlanElement Locate(String ID)
IPlanElementID - the iDpublic Set<IPlanElement> LocateActionElements()
IPlanElementpublic void SetName(String Name)
IPlanElementName - the namepublic String ToXML() throws ExecutionSerializationException
IPlanElementExecutionSerializationException - A serialization error occurredpublic void Validate()
throws ExecutionValidationException
IPlanElementExecutionValidationException - A validation error occurredpublic IContingencyReaction.ReactionType[] SupportedContingencyTriggers()
IPlanElementpublic boolean SupportsContingencyTriggers()
IPlanElementpublic List<ContingencyTrigger> GetContingencyTriggers()
IPlanElementpublic void SetContingencyResourcePick(ExecutionHandle Handle, String Pick) throws ExecutionRunTimeException
IPlanElementIContingencyReaction.ReactionType#Pick reaction is supportedHandle - the execution handle handlePick - the picked resourceExecutionRunTimeException - A runtime error occurredpublic Set<String> GetModifiedVariableNames()
IPlanElementpublic Set<String> GetNeededVariableNames()
IPlanElementpublic org.slf4j.Logger GetExtenderLogger()
PlanElementBaseGetExtenderLogger in class PlanElementBasepublic void ExecuteExtender(ExecutionHandle Handle) throws ExecutionRunTimeException, ExecutionInternalErrorException, ExecutionCancelException, ExecutionBreakException
PlanElementBaseExecuteExtender in class PlanElementBaseHandle - the execution handleExecutionRunTimeException - A runtime error occurredExecutionInternalErrorException - An internal error occurredExecutionCancelException - The execution was canceledExecutionBreakException - The execution was terminatedpublic void ValidatePreExecution(ExecutionHandle Handle) throws ExecutionValidationException
IPlanElementHandle - the execution handleExecutionValidationException - A validation error occurredCopyright © 2015. All Rights Reserved.