Package com.thingworx.things.connected
Class RemoteThingWithTunnels
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
- All Implemented Interfaces:
ISupportsAccessModifier,IConfigurableObject,INotScriptFriendly,IEndpointBindingObserver,ISupportsDeprecation,IDiffableObject,IAlertProvider,IAvatar,IEntityLifeCycleEvent,IEventMetadataProvider,IEventProvider,IPersistable,IPropertyProvider,IServiceMetadataProvider,IServiceProvider,IShapeProvider,ITaggableObject,IDependencyScannableObject,IImportDependencyHandler,IHierarchicalEntity,IEntityDefinition,IPersistableObject<String>,IDesignTimeSecurable,IDesignTimeSecurableEntity,IRunTimeSecurable,IRunTimeSecurableEntity,ISecurable,IVisibilitySecurable,IVisibilitySecurableEntity,IEventProcessor,IConnectedDevice,IAspectContainer,INamedObject,Serializable
- Direct Known Subclasses:
RemoteThingWithTunnelsAndFileTransfer
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.things.connected.RemoteThing
STORE_AND_FORWARD_IS_NOT_ENABLEDFields 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_THINGFields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECTFields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAddTunnel(String name, String host, Double port, String proto, Double numConnects, String description, String appUri) Service Category: Tunneling Service Description: Register a new tunnel endpoint at the edge.voidCompleteTunnel(String tid, org.joda.time.DateTime start_time, org.joda.time.DateTime stop_time, String peer_name, org.json.JSONObject connection) Service Category: Tunneling Service Description: Get information about a specific tunnel endpoint registered at the edge.Service Category: Tunneling Service Description: Get a list of Tunnels registered at the edge.Service Category: Tunneling Service Description: Get a list of Tunnel Endpoints registered at the edge.Service Category: Tunneling Service Description: Get the tunnel status and access URL.voidinitializeThing(ContextType contextType) An initialization hook for subclasses ofThing.IsDerivedFromTemplate(String thingTemplateName) Service Category: Metadata Service Description: Check to see if a thing is derived from a particular thing template.voidRemoveTunnel(String name) Service Category: Tunneling Service Description: Remove a tunnel endpoint from the edge.voidStartTunnel(String tid, String type, Integer chunksize, Integer idle_timeout, Integer read_timeout, Integer startup_timeout, org.json.JSONObject connection) voidTunnelCommandFromEdge(String tid, String command) voidTunnelCommandToEdge(String tid, String command) 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, UpdateSubscribedPropertyValuesBatchedMethods 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, 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, WritePropertiesToStreamMethods 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, UpdateProjectDependenciesMethods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransientMethods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thingworx.types.INamedObject
getDescriptionMethods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasIDMethods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getNameMethods inherited from interface com.thingworx.entities.interfaces.IShapeProvider
getNameMethods inherited from interface com.thingworx.accesscontrol.ISupportsAccessModifier
getAccessModifier, getAccessModifierScope, getExemptList, hasAccessModifier, isInternalAccess, isPrivateAccess, isRestrictedAccessMethods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
RemoteThingWithTunnels
-
-
Method Details
-
initializeThing
@ThingworxExtensionApiMethod(since={9,0}, canOverride=true, requiresSuper=true) public void initializeThing(ContextType contextType) throws Exception Description copied from class:ThingAn initialization hook for subclasses of
Thing. Some resources ofThingmay not be available at this point in the lifecycle.- Overrides:
initializeThingin classRemoteThing- Throws:
Exception- if an error occurs during thing initialization
-
IsDerivedFromTemplate
@ThingworxExtensionApiMethod(since={7,4}) public Boolean IsDerivedFromTemplate(String thingTemplateName) throws Exception - Service Category:
- Metadata
- Service Description:
- Check to see if a thing is derived from a particular thing template.
- Overrides:
IsDerivedFromTemplatein classThing- Parameters:
thingTemplateName- Thing template name - THINGTEMPLATENAME- Returns:
- result Is Derived From Template - BOOLEAN
- Throws:
Exception- if an error occurs
-
GetTunnelNames
- Service Category:
- Tunneling
- Service Description:
- Get a list of Tunnels registered at the edge.
- Returns:
- result Tunnel names - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception- if an error occurs
-
GetTunnelStatus
- Service Category:
- Tunneling
- Service Description:
- Get the tunnel status and access URL.
- Returns:
- result Tunnel status - INFOTABLE - Aspects {dataShape:TunnelStatus}
- Throws:
Exception- if an error occurs
-
GetTunnels
- Service Category:
- Tunneling
- Service Description:
- Get a list of Tunnel Endpoints registered at the edge.
- Returns:
- result List of registered tunnel endpoints - INFOTABLE - Aspects {dataShape:TunnelEndpoint}
- Throws:
Exception- if an error occurs
-
AddTunnel
@ThingworxExtensionApiMethod(since={7,4}) public void AddTunnel(String name, String host, Double port, String proto, Double numConnects, String description, String appUri) throws Exception - Service Category:
- Tunneling
- Service Description:
- Register a new tunnel endpoint at the edge.
- Parameters:
name- Name of the tunnel to add - STRINGhost- Host that the tunnel will connect to - STRINGport- Port that the tunnel will connect to - NUMBERproto- Protocol used by the tunnel - STRINGnumConnects- The number of connections required to initilaize the tunnel - NUMBERdescription- Description of the tunnel - STRINGappUri- Location of the client app that will use this tunnel - STRING- Throws:
Exception- if an error occurs
-
RemoveTunnel
- Service Category:
- Tunneling
- Service Description:
- Remove a tunnel endpoint from the edge.
- Parameters:
name- Name of the tunnel to remove - STRING- Throws:
Exception- if an error occurs
-
GetTunnel
- Service Category:
- Tunneling
- Service Description:
- Get information about a specific tunnel endpoint registered at the edge.
- Parameters:
name- Name of the tunnel to query - STRING- Returns:
- result A tunnel endpoint - INFOTABLE - Aspects {dataShape:TunnelEndpoint}
- Throws:
Exception- if an error occurs
-
StartTunnel
@ThingworxExtensionApiMethod(since={7,4}) public void StartTunnel(String tid, String type, Integer chunksize, Integer idle_timeout, Integer read_timeout, Integer startup_timeout, org.json.JSONObject connection) throws Exception - Parameters:
tid- Id of the tunnel - STRINGtype- Type of tunnel, tcp or udp - STRINGchunksize- Max size of tunnel data to send - INTEGERidle_timeout- How long tunnel can remain idle before it will be closed - INTEGERread_timeout- Read timout on tunnel socket - INTEGERstartup_timeout- Read timout on tunnel socket - INTEGERconnection- The connection parameters - JSON- Throws:
Exception- if an error occurs
-
CompleteTunnel
@ThingworxExtensionApiMethod(since={7,4}) public void CompleteTunnel(String tid, org.joda.time.DateTime start_time, org.joda.time.DateTime stop_time, String peer_name, org.json.JSONObject connection) throws Exception - Parameters:
tid- Id of the tunnel - STRINGstart_time- Start time of the tunnel - DATETIMEstop_time- Stop time of the tunnel - DATETIMEpeer_name- Name of the peer connected to this tunnel - STRINGconnection- The connection parameters - JSON- Throws:
Exception- if an error occurs
-
TunnelCommandToEdge
@ThingworxExtensionApiMethod(since={7,4}) public void TunnelCommandToEdge(String tid, String command) throws Exception - Parameters:
tid- Id of the tunnel - STRINGcommand- The command - STRING- Throws:
Exception- if an error occurs
-
TunnelCommandFromEdge
@ThingworxExtensionApiMethod(since={7,4}) public void TunnelCommandFromEdge(String tid, String command) throws Exception - Parameters:
tid- Id of the tunnel - STRINGcommand- The command - STRING- Throws:
Exception- if an error occurs
-