Package com.thingworx.things.connected
Class RemoteThingWithTunnelsAndFileTransfer
- java.lang.Object
-
- com.thingworx.types.NamedObject
-
- com.thingworx.persistence.common.PersistableNamedObject
-
- com.thingworx.entities.RootEntity
-
- com.thingworx.things.Thing
-
- com.thingworx.things.connected.RemoteThing
-
- com.thingworx.things.connected.RemoteThingWithTunnels
-
- com.thingworx.things.connected.RemoteThingWithTunnelsAndFileTransfer
-
- All Implemented Interfaces:
ISupportsAccessModifier
,IConfigurableObject
,INotScriptFriendly
,IEndpointBindingObserver
,ISupportsDeprecation
,IDiffableObject
,IAlertProvider
,IAvatar
,IEntityLifeCycleEvent
,IEventMetadataProvider
,IEventProvider
,IPersistable
,IPropertyProvider
,IServiceMetadataProvider
,IServiceProvider
,IShapeProvider
,ITaggableObject
,IDependencyScannableObject
,IHierarchicalEntity
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IEventProcessor
,IConnectedDevice
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={7,4}) public class RemoteThingWithTunnelsAndFileTransfer extends RemoteThingWithTunnels
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.thingworx.things.connected.RemoteThing
STORE_AND_FORWARD_IS_NOT_ENABLED
-
Fields inherited from class com.thingworx.things.Thing
_logger, BUILT_IN_PROPERTY_DEFINITIONS, DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING, DEFAULT_SETTINGS_TABLE, ENTITYLIST_SHAPE, GENERIC_THING_TEMPLATE, NON_PROPERTY_BASED_EVENTS, PROPERTY_EVENTS, TYPE_THING
-
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
-
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description RemoteThingWithTunnelsAndFileTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
AppendToBinaryFile(java.lang.String path, byte[] data)
InfoTable
BrowseDirectory(java.lang.String path)
Service Category: FileTransfer Service Description: Get a list of files and/or directories on the Edge Thing.InfoTable
BrowseFileSystem(java.lang.String path)
Service Category: FileTransfer Service Description: Get a list of files and/or directories on the Edge Thing.void
CancelFileTransfer(InfoTable job)
void
CompleteFileTransfer(InfoTable job)
void
CreateBinaryFile(java.lang.String path, byte[] data, java.lang.Boolean overwrite)
void
DeleteFile(java.lang.String path)
Service Category: FileSystemServices Service Description: Delete a file.InfoTable
GetDirectoryStructure()
Service Category: FileTransfer Service Description: Get directory structure.java.lang.String
GetFileChecksum(java.lang.String path)
Deprecated.java.lang.String
GetFileChecksum(java.lang.String path, java.lang.String checksumAlgorithm)
Gets the checksum of a file on this RemoteThing, using the cryptographic algorithm whose name was passed into the service as an argument.InfoTable
GetFileInfo(java.lang.String path)
Service Category: FileTransfer Service Description: Get file info.InfoTable
GetFileListing(java.lang.String path, java.lang.String nameMask)
Service Category: FileTransfer Service Description: Get file system listing.InfoTable
GetSupportedFileChecksumAlgorithms()
InfoTable
GetTransferInfo()
java.lang.Boolean
IsDerivedFromTemplate(java.lang.String thingTemplateName)
Service Category: Metadata Service Description: Check to see if a thing is derived from a particular thing template.InfoTable
ListDirectories(java.lang.String path)
Service Category: FileTransfer Service Description: Get listing of directories.InfoTable
ListFiles(java.lang.String path, java.lang.String nameMask)
Service Category: FileTransfer Service Description: Get file system listing.void
MoveFile(java.lang.String sourcePath, java.lang.String targetPath, java.lang.Boolean overwrite)
Service Category: FileSystemServices Service Description: Move a file.InfoTable
ReadFromBinaryFile(java.lang.String path, java.lang.Double offset, java.lang.Integer count)
void
StartFileTransfer(java.lang.String tid, java.lang.String path, java.lang.String mode)
void
ValidateFileTransfer(java.lang.String sid, java.lang.String toUri, java.lang.String fromUri, java.lang.String md5)
Service Category: FileTransfer Service Description: validate the file transfer based on the validation signature.void
WriteToBinaryFile(java.lang.String path, java.lang.Double offset, byte[] data)
-
Methods inherited from class com.thingworx.things.connected.RemoteThingWithTunnels
AddTunnel, CompleteTunnel, GetTunnel, GetTunnelNames, GetTunnels, GetTunnelStatus, initializeThing, RemoveTunnel, StartTunnel, TunnelCommandFromEdge, TunnelCommandToEdge
-
Methods inherited from class com.thingworx.things.connected.RemoteThing
AddDynamicRemoteSubscription, callService, checkConnection, executeRemoteService, GetEventSubscriptions, getLastConnectionTime, GetPropertySubscriptions, GetPropertySubscriptions, GetQueuedTasks, GetRemoteMetadata, isConnected, ProcessRemoteEvents, processRemoteService, RemoveDynamicRemoteSubscription, SendMaxQueuedTasks, SendQueuedTasks, SetPropertyValues, startThing, stopThing, UpdateSubscribedPropertyValues, UpdateSubscribedPropertyValuesBatched
-
Methods inherited from class com.thingworx.things.Thing
AcknowledgeAlert, acknowledgeAlertByProperty, acknowledgeAlertByPropertyAndName, acknowledgeAllAlerts, AcknowledgeAllAlerts, AddBooleanValueStreamEntry, AddBooleanValueStreamEntry, AddDateTimeValueStreamEntry, AddDateTimeValueStreamEntry, AddDynamicSubscription, AddEventDefinition, AddImageValueStreamEntry, AddImageValueStreamEntry, AddInfoTableValueStreamEntry, AddInfoTableValueStreamEntry, AddIntegerValueStreamEntry, AddIntegerValueStreamEntry, AddLocationValueStreamEntry, AddLocationValueStreamEntry, AddLongValueStreamEntry, AddLongValueStreamEntry, AddNumberValueStreamEntry, AddNumberValueStreamEntry, AddOrUpdateAlert, addProperty, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinitions, AddPropertyTransformDefinition, AddServiceDefinition, AddServiceDefinition, AddStringValueStreamEntry, AddStringValueStreamEntry, AddTags, AddThingCodeValueStreamEntry, AddThingCodeValueStreamEntry, AddVec2ValueStreamEntry, AddVec2ValueStreamEntry, AddVec3ValueStreamEntry, AddVec3ValueStreamEntry, AddVec4ValueStreamEntry, AddVec4ValueStreamEntry, checkDemandRead, checkPropertyName, checkValueStream, cleanupThing, DisableAlertsForProperty, DisableAllAlerts, DisableSubscription, DisableSubscription, DisableThing, dispatchBackgroundEvent, dispatchEvent, dispose, EnableAlertsForProperty, EnableAllAlerts, EnableSubscription, EnableSubscription, EnableThing, fireEvent, getAlertConfigurations, GetAlertDefinition, GetAlertDefinitions, getAlerts, getAlertsForProperty, GetAlertStatus, GetAlertStatuses, GetAlertStatusesForProperty, GetAlertSummary, GetAlertSummaryForProperty, GetAllAnomalyAlertTrainingStatistics, getAllImplementedThingShapes, getAllImplementedThingTemplates, GetAnomalyAlertTrainingStatisticsForAlert, GetAnomalyAlertTrainingStatisticsForProperty, GetAvatar, GetBooleanAlertParameter, GetBooleanPropertyValue, GetDateTimeAlertParameter, GetDateTimePropertyValue, getDependencies, getEffectiveAlertConfiguration, getEffectiveAlertDefinition, getEffectiveEventDefinition, getEffectiveIdentifier, GetEffectiveLocalPropertyBinding, getEffectiveLocalPropertyBindings, GetEffectiveLocalPropertyBindings, getEffectivePropertyDefinition, GetEffectivePropertyLogging, getEffectiveRemoteEventBindings, getEffectiveRemotePropertyBindings, getEffectiveRemoteServiceBindings, getEffectiveServiceDefinition, getEffectiveValueStreamName, getEntityType, GetHomeMashup, getIdentifier, GetIdentifier, GetImagePropertyValue, GetImplementedShapes, getImplementedThingTemplates, GetIncomingLocalPropertyBinding, GetIncomingLocalPropertyBindings, getInstanceEventDefinition, getInstanceEventDefinitions, getInstanceMultiEventSubscriptions, getInstancePropertyDefinition, getInstancePropertyDefinitionIfVisible, getInstancePropertyDefinitions, getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, getInstanceShape, getInstanceSubscriptions, GetIntegerAlertParameter, GetIntegerPropertyValue, GetLocalAlertDefinitions, GetLocallyImplementedShapes, GetLocalPropertyBinding, GetLocationAlertParameter, GetLocationPropertyValue, GetLoggedProperties, GetLongAlertParameter, GetLongPropertyValue, GetMashups, GetNamedProperties, GetNamedPropertyValues, GetNamedPropertyValuesVTQ, GetNamedPropertyValuesVTQA, GetNetworks, GetNumberAlertParameter, GetNumberPropertyValue, GetNumericLoggedProperties, getProperties, getProperty, getPropertyAckStatus, getPropertyAlertStatus, GetPropertyLogging, getPropertyQuality, GetPropertyQuality, getPropertyTime, GetPropertyTime, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValues, GetPropertyValues, getPropertyValuesAsInfoTable, GetPropertyValuesAsMultiRowTable, GetPropertyValuesVTQ, GetPropertyValuesVTQA, GetPublished, GetRemoteEventBinding, GetRemotePropertyBinding, GetRemoteServiceBinding, getState, GetStringAlertParameter, GetStringPropertyValue, GetThingCodePropertyValue, GetThingGroupDelegatedVisibilityPermissions, GetThingRelationships, GetThingSummaryInformation, getThingTemplate, GetThingTemplate, getThingTemplateName, GetValueStream, getValueStreamName, GetVec2PropertyValue, GetVec3PropertyValue, GetVec4PropertyValue, HasAlert, hasEventDefinition, hasLocalEventDefinition, hasLocalPropertyDefinition, hasLocalServiceDefinition, hasProperty, hasPropertyAndIsVisible, hasPropertyDefinition, hasServiceDefinition, HavePropertiesChangedSince, implementsShape, ImplementsShape, implementsTemplate, initializeEntity, initializeProperty, isAlwaysAvailableService, isBuiltInEvent, isBuiltInProperty, IsDynamicSubscriptionCreated, isEnabled, IsEnabled, isEventRemote, isExternallySubscribed, IsInNetwork, isLocallySubscribed, isLocalProperty, isPropertyEvent, isPropertyRemote, isPublished, isRunning, isServiceRemote, isSubscribed, preprocessSetPropertyVTQ, processAPIServiceRequest, processServiceRequest, processStartNotification, PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory, QueryAlertHistory, QueryAlertSummary, QueryBooleanPropertyHistory, QueryBooleanPropertyHistory, QueryDateTimePropertyHistory, QueryDateTimePropertyHistory, QueryImagePropertyHistory, QueryImagePropertyHistory, QueryInfoTablePropertyHistory, QueryInfoTablePropertyHistory, QueryIntegerPropertyHistory, QueryIntegerPropertyHistory, QueryLocationPropertyHistory, QueryLocationPropertyHistory, QueryLongPropertyHistory, QueryLongPropertyHistory, QueryNamedPropertyHistory, QueryNamedPropertyHistory, QueryNamedPropertyHistory, QueryNumberPropertyHistory, QueryNumberPropertyHistory, QueryPropertyHistory, QueryPropertyHistory, QueryPropertyHistory, QueryStringPropertyHistory, QueryStringPropertyHistory, QueryThingCodePropertyHistory, QueryThingCodePropertyHistory, QueryVec2PropertyHistory, QueryVec2PropertyHistory, QueryVec3PropertyHistory, QueryVec3PropertyHistory, QueryVec4PropertyHistory, QueryVec4PropertyHistory, QueuePostCommitEvent, RemoveAlert, RemoveDynamicSubscription, RemoveEventDefinition, RemoveLocalPropertyBinding, RemovePropertyDefinition, RemoveRemoteEventBinding, RemoveRemotePropertyBinding, RemoveRemoteServiceBinding, RemoveServiceDefinition, RestartThing, SetBooleanAlertParameter, SetDateTimeAlertParameter, SetDescription, SetIdentifier, SetIntegerAlertParameter, SetLocalPropertyBinding, SetLocalPropertyBinding, SetLocationAlertParameter, SetNumberAlertParameter, SetPropertyLogging, setPropertyValue, setPropertyVTQ, setPropertyVTQ, SetPublished, SetRemoteEventBinding, SetRemotePropertyBinding, SetRemotePropertyBinding, SetRemoteServiceBinding, SetStringAlertParameter, SetTags, setThingTemplateName, SetUnitsForNumericPropertyDefinition, SetValueStream, UpdatePropertyValues, UpdatePropertyValuesBatched, validateConfiguration, WritePropertiesToStream
-
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, getAspects, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, preInitializeEntity, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies
-
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
-
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.thingworx.types.INamedObject
getDescription
-
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
-
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
-
Methods inherited from interface com.thingworx.entities.interfaces.IShapeProvider
getName
-
Methods inherited from interface com.thingworx.accesscontrol.ISupportsAccessModifier
getAccessModifier, getAccessModifierScope, getExemptList, hasAccessModifier, isInternalAccess, isPrivateAccess, isRestrictedAccess
-
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
-
-
-
Constructor Detail
-
RemoteThingWithTunnelsAndFileTransfer
@ThingworxExtensionApiMethod(since={7,4}) public RemoteThingWithTunnelsAndFileTransfer()
-
-
Method Detail
-
IsDerivedFromTemplate
@ThingworxExtensionApiMethod(since={7,4}) public java.lang.Boolean IsDerivedFromTemplate(java.lang.String thingTemplateName) throws java.lang.Exception
- Service Category:
- Metadata
- Service Description:
- Check to see if a thing is derived from a particular thing template.
- Overrides:
IsDerivedFromTemplate
in classRemoteThingWithTunnels
- Parameters:
thingTemplateName
- Thing template name - THINGTEMPLATENAME- Returns:
- result Is Derived From Template - BOOLEAN
- Throws:
java.lang.Exception
- If an error occurs
-
StartFileTransfer
@ThingworxExtensionApiMethod(since={7,4}) public void StartFileTransfer(java.lang.String tid, java.lang.String path, java.lang.String mode) throws java.lang.Exception
- Parameters:
tid
- Transfer Id - STRINGpath
- File path - STRINGmode
- Indicates if the file will be open in 'read' or 'write' mode - STRING- Throws:
java.lang.Exception
- If an error occurs
-
CompleteFileTransfer
@ThingworxExtensionApiMethod(since={7,4}) public void CompleteFileTransfer(InfoTable job) throws java.lang.Exception
- Parameters:
job
- The transfer job being completed - INFOTABLE- Throws:
java.lang.Exception
- If an error occurs
-
CancelFileTransfer
@ThingworxExtensionApiMethod(since={7,4}) public void CancelFileTransfer(InfoTable job) throws java.lang.Exception
- Parameters:
job
- The transfer job being completed - INFOTABLE- Throws:
java.lang.Exception
- If an error occurs
-
GetTransferInfo
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetTransferInfo() throws java.lang.Exception
- Returns:
- result File Results - INFOTABLE - Aspects {dataShape:GetTransferInfoResult}
- Throws:
java.lang.Exception
- If an error occurs
-
GetFileInfo
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetFileInfo(java.lang.String path) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get file info.
- Parameters:
path
- File path - STRING- Returns:
- result File Results - INFOTABLE - Aspects {dataShape:FileSystemFile}
- Throws:
java.lang.Exception
- If an error occurs
-
GetSupportedFileChecksumAlgorithms
@ThingworxExtensionApiMethod(since={8,4}) public InfoTable GetSupportedFileChecksumAlgorithms() throws java.lang.Exception
- Returns:
- result List of cryptographic algorithms this Thing supports for file transfers - INFOTABLE - Aspects {dataShape:ChecksumAlgorithmList}
- Throws:
java.lang.Exception
- If an error occurs
-
GetFileChecksum
@Deprecated @ThingworxExtensionApiMethod(since={7,4}, deprecatedSince={8,4,0}) public java.lang.String GetFileChecksum(java.lang.String path) throws java.lang.Exception
Deprecated.- Throws:
java.lang.Exception
- If an error occurs
-
GetFileChecksum
@ThingworxExtensionApiMethod(since={8,4}) public java.lang.String GetFileChecksum(java.lang.String path, java.lang.String checksumAlgorithm) throws java.lang.Exception
Gets the checksum of a file on this RemoteThing, using the cryptographic algorithm whose name was passed into the service as an argument. Supported checksum algorithms can be gotten using the GetSupportedChecksumAlgorithms service.- Parameters:
path
- The path to the file to conduct a checksum onchecksumAlgorithm
- The name of the checksum algorithm to use- Returns:
- The checksum of the indicated file
- Throws:
java.lang.Exception
- Thrown if the cryptographic algorithm provided is invalid or is not recognized by the server
-
BrowseFileSystem
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable BrowseFileSystem(java.lang.String path) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get a list of files and/or directories on the Edge Thing.
- Parameters:
path
- Directory path - STRING- Returns:
- result Browse Results - INFOTABLE - Aspects {dataShape:FileSystemFile}
- Throws:
java.lang.Exception
- If an error occurs
-
BrowseDirectory
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable BrowseDirectory(java.lang.String path) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get a list of files and/or directories on the Edge Thing.
- Parameters:
path
- Directory path - STRING- Returns:
- result Browse Results - INFOTABLE - Aspects {dataShape:FileSystemFile}
- Throws:
java.lang.Exception
- If an error occurs
-
GetFileListing
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetFileListing(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get file system listing.
- Parameters:
path
- Directory path - STRINGnameMask
- Name mask - STRING- Returns:
- result File Results - INFOTABLE - Aspects {dataShape:FileSystemFile}
- Throws:
java.lang.Exception
- If an error occurs
-
ListFiles
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable ListFiles(java.lang.String path, java.lang.String nameMask) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get file system listing.
- Parameters:
path
- Directory path - STRINGnameMask
- Name mask - STRING- Returns:
- result File Results - INFOTABLE - Aspects {dataShape:FileSystemFile}
- Throws:
java.lang.Exception
- If an error occurs
-
ListDirectories
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable ListDirectories(java.lang.String path) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get listing of directories.
- Parameters:
path
- Directory path - STRING- Returns:
- result File Results - INFOTABLE - Aspects {dataShape:FileSystemDirectory}
- Throws:
java.lang.Exception
- If an error occurs
-
CreateBinaryFile
@ThingworxExtensionApiMethod(since={7,4}) public void CreateBinaryFile(java.lang.String path, byte[] data, java.lang.Boolean overwrite) throws java.lang.Exception
- Parameters:
path
- File path - STRINGdata
- The data to write to the file - BLOBoverwrite
- Overwrite the file if it already exists - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
ReadFromBinaryFile
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable ReadFromBinaryFile(java.lang.String path, java.lang.Double offset, java.lang.Integer count) throws java.lang.Exception
- Parameters:
path
- File path - STRINGoffset
- File offset in bytes - NUMBERcount
- Number of bytes to read - INTEGER- Returns:
- result File Read Results - INFOTABLE - Aspects {dataShape:ReadFromBinaryFileResult}
- Throws:
java.lang.Exception
- If an error occurs
-
WriteToBinaryFile
@ThingworxExtensionApiMethod(since={7,4}) public void WriteToBinaryFile(java.lang.String path, java.lang.Double offset, byte[] data) throws java.lang.Exception
- Parameters:
path
- File path - STRINGoffset
- File offset in bytes - NUMBERdata
- Initial data - BLOB- Throws:
java.lang.Exception
- If an error occurs
-
AppendToBinaryFile
@ThingworxExtensionApiMethod(since={7,4}) public void AppendToBinaryFile(java.lang.String path, byte[] data) throws java.lang.Exception
- Parameters:
path
- File path - STRINGdata
- Initial data - BLOB- Throws:
java.lang.Exception
- If an error occurs
-
MoveFile
@ThingworxExtensionApiMethod(since={7,4}) public void MoveFile(java.lang.String sourcePath, java.lang.String targetPath, java.lang.Boolean overwrite) throws java.lang.Exception
- Service Category:
- FileSystemServices
- Service Description:
- Move a file.
- Parameters:
sourcePath
- Path of file to move - STRINGtargetPath
- Target path - STRINGoverwrite
- Overwrite existing file - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
DeleteFile
@ThingworxExtensionApiMethod(since={7,4}) public void DeleteFile(java.lang.String path) throws java.lang.Exception
- Service Category:
- FileSystemServices
- Service Description:
- Delete a file.
- Parameters:
path
- File path - STRING- Throws:
java.lang.Exception
- If an error occurs
-
GetDirectoryStructure
@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetDirectoryStructure() throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- Get directory structure.
- Returns:
- result The directory structure at the edge - INFOTABLE - Aspects {dataShape:FileSystemDirectory}
- Throws:
java.lang.Exception
- If an error occurs
-
ValidateFileTransfer
@ThingworxExtensionApiMethod(since={7,4}) public void ValidateFileTransfer(java.lang.String sid, java.lang.String toUri, java.lang.String fromUri, java.lang.String md5) throws java.lang.Exception
- Service Category:
- FileTransfer
- Service Description:
- validate the file transfer based on the validation signature.
- Parameters:
sid
- File transfer Job ID - STRINGtoUri
- File destination uri - STRINGfromUri
- File source uri - STRINGmd5
- Checksum signature used for validation - STRING- Throws:
java.lang.Exception
- If an error occurs
-
-