@ThingworxExtensionApiClass(since={7,4}, canExtendOrImplement=true, canInstantiate=true) public class RemoteThing extends Thing implements IEndpointBindingObserver, IConnectedDevice
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STORE_AND_FORWARD_IS_NOT_ENABLED |
_logger, DATASHAPE_INCOMING_LOCAL_PROPERTY_BINDING, DEFAULT_SETTINGS_TABLE, ENTITYLIST_SHAPE, GENERIC_THING_TEMPLATE, TYPE_THING
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
RemoteThing() |
Modifier and Type | Method and Description |
---|---|
void |
AddDynamicRemoteSubscription(java.lang.String thingName,
java.lang.String eventName,
java.lang.String propertyName,
java.lang.String serviceName) |
InfoTable |
callService(java.lang.String serviceName,
ValueCollection params,
BaseTypes resultType) |
void |
checkConnection() |
InfoTable |
executeRemoteService(ServiceDefinition def,
ValueCollection params,
boolean isPrivate)
Execute the RemoteService. |
InfoTable |
GetEventSubscriptions()
Service Category: Metadata
Service Description: Get the events that are bound to the remote Thing.
|
org.joda.time.DateTime |
getLastConnectionTime() |
InfoTable |
GetPropertySubscriptions() |
InfoTable |
GetPropertySubscriptions(org.json.JSONObject options)
Service Category: Metadata
Service Description: Get the properties plus data change type and data change threshold for the edge Thing.
|
InfoTable |
GetQueuedTasks()
Service Category: Queueing
Service Description: Retrieve any tasks for this connected thing.
|
org.json.JSONObject |
GetRemoteMetadata()
Service Category: Metadata
Service Description: Return the metadata for the connected thing.
|
void |
initializeThing()
|
protected void |
initializeThing(PatchType patchType) |
boolean |
isConnected() |
void |
ProcessRemoteEvents(InfoTable values)
Service Category: Updates
Service Description: Process remote events.
|
protected InfoTable |
processRemoteService(IServiceProvider serviceProvider,
ServiceDefinition serviceDefinition,
ValueCollection params) |
void |
RemoveDynamicRemoteSubscription(java.lang.String thingName,
java.lang.String eventName,
java.lang.String propertyName) |
java.lang.Integer |
SendMaxQueuedTasks(java.lang.Integer maxCount)
Service Category: Queueing
Service Description: Sends up to a specific maximum number of queued tasks to the connected thing.
|
void |
SendQueuedTasks()
Service Category: Queueing
Service Description: Sends any queued tasks to the connected thing.
|
protected void |
startThing()
|
protected void |
stopThing()
|
void |
UpdateSubscribedPropertyValues(InfoTable values)
Service Category: Updates
Service Description: Write subscribed property values for a connected thing.
|
AcknowledgeAlert, acknowledgeAlertByProperty, acknowledgeAlertByPropertyAndName, acknowledgeAllAlerts, AcknowledgeAllAlerts, AddBooleanValueStreamEntry, AddDateTimeValueStreamEntry, AddDynamicSubscription, AddEventDefinition, AddImageValueStreamEntry, AddInfoTableValueStreamEntry, AddIntegerValueStreamEntry, AddLocationValueStreamEntry, AddLongValueStreamEntry, AddNumberValueStreamEntry, AddOrUpdateAlert, addProperty, AddPropertyDefinition, AddPropertyDefinition, AddPropertyDefinitions, AddPropertyTransformDefinition, AddServiceDefinition, AddStringValueStreamEntry, AddTags, AddThingCodeValueStreamEntry, AddVec2ValueStreamEntry, AddVec3ValueStreamEntry, AddVec4ValueStreamEntry, checkDemandRead, checkPropertyName, checkValueStream, cleanupThing, cleanupThing, DisableAlertsForProperty, DisableAllAlerts, DisableSubscription, DisableThing, dispatchBackgroundEvent, dispatchEvent, dispose, EnableAlertsForProperty, EnableAllAlerts, 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, getInstancePropertyDefinition, 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, GetThingRelationships, GetThingSummaryInformation, getThingTemplate, GetThingTemplate, getThingTemplateName, GetValueStream, getValueStreamName, GetVec2PropertyValue, GetVec3PropertyValue, GetVec4PropertyValue, HasAlert, hasEventDefinition, hasLocalEventDefinition, hasLocalPropertyDefinition, hasLocalServiceDefinition, hasProperty, hasPropertyDefinition, hasServiceDefinition, HavePropertiesChangedSince, implementsShape, ImplementsShape, implementsTemplate, initializeEntity, initializeProperty, isAlwaysAvailableService, isBuiltInEvent, isBuiltInProperty, IsDerivedFromTemplate, IsDynamicSubscriptionCreated, isEnabled, IsEnabled, isEventRemote, isExternallySubscribed, IsInNetwork, isLocallySubscribed, isLocalProperty, isPropertyEvent, isPropertyRemote, isPublished, isRunning, isServiceRemote, isSubscribed, preprocessSetPropertyVTQ, processAPIServiceRequest, processServiceRequest, processStartNotification, processStartNotification, PurgeAllPropertyHistory, PurgePropertyHistory, PurgeSelectedPropertyHistory, QueryAlertHistory, QueryAlertSummary, QueryBooleanPropertyHistory, QueryDateTimePropertyHistory, QueryImagePropertyHistory, QueryInfoTablePropertyHistory, QueryIntegerPropertyHistory, QueryLocationPropertyHistory, QueryLongPropertyHistory, QueryNamedPropertyHistory, QueryNumberPropertyHistory, QueryPropertyHistory, QueryStringPropertyHistory, QueryThingCodePropertyHistory, QueryVec2PropertyHistory, QueryVec3PropertyHistory, QueryVec4PropertyHistory, RemoveAlert, RemoveDynamicSubscription, RemoveEventDefinition, RemoveLocalPropertyBinding, RemovePropertyDefinition, RemoveRemoteEventBinding, RemoveRemotePropertyBinding, RemoveRemoteServiceBinding, RemoveServiceDefinition, RestartThing, SetBooleanAlertParameter, SetDateTimeAlertParameter, SetDescription, SetIdentifier, SetIntegerAlertParameter, SetLocalPropertyBinding, SetLocalPropertyBinding, SetLocationAlertParameter, SetNumberAlertParameter, SetPropertyLogging, setPropertyValue, SetPropertyValues, setPropertyVTQ, setPropertyVTQ, SetPublished, SetRemoteEventBinding, SetRemotePropertyBinding, SetRemotePropertyBinding, SetRemoteServiceBinding, SetStringAlertParameter, SetTags, setThingTemplateName, SetUnitsForNumericPropertyDefinition, SetValueStream, startThing, UpdatePropertyValues, validateConfiguration, WritePropertiesToStream
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, 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, 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, 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
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getID, hasID
getDescription
getID, getName
public static final java.lang.String STORE_AND_FORWARD_IS_NOT_ENABLED
@ThingworxExtensionApiMethod(since={7,4}, canOverride=true, requiresSuper=true) public void initializeThing() throws java.lang.Exception
Thing
An initialization hook for subclasses of Thing
. Some resources of Thing
may not be available at this point in the
lifecycle.
initializeThing
in class Thing
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={9,0}, canOverride=true) protected void initializeThing(PatchType patchType) throws java.lang.Exception
initializeThing
in class Thing
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}, canOverride=true, requiresSuper=true) protected final void startThing() throws java.lang.Exception
Thing
A startup hook for subclasses of Thing
.
startThing
in class Thing
java.lang.Exception
- If an error occurs
@ThingworxExtensionApiMethod(since={7,4}, canOverride=true, requiresSuper=true) protected final void stopThing() throws java.lang.Exception
Thing
A shutdown hook for subclasses of Thing
.
@ThingworxExtensionApiMethod(since={7,4}) public org.joda.time.DateTime getLastConnectionTime()
getLastConnectionTime
in interface IConnectedDevice
@ThingworxExtensionApiMethod(since={7,4}) public boolean isConnected()
isConnected
in interface IConnectedDevice
@ThingworxExtensionApiMethod(since={7,4}) public void checkConnection() throws CouldNotConnectException
CouldNotConnectException
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) protected InfoTable processRemoteService(IServiceProvider serviceProvider, ServiceDefinition serviceDefinition, ValueCollection params) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public InfoTable executeRemoteService(ServiceDefinition def, ValueCollection params, boolean isPrivate) throws java.lang.Exception
def
- The ServiceDefinition of the RemoteService to be called.params
- The parameters for the RemoteService to be called.isPrivate
- (ignored)CouldNotConnectException
- If the Thing is not connected, but the service invocation can be queued.EdgeControlledEgressQuotaException
- If the EdgeControlled Thing lacks egress quota to send the service invocation. Queueable
service invocations will be queued if possible.MessageStoreFullException
- If the MessageStore for this Thing is full and
cannot accept the service.java.lang.Exception
- is thrown if the service invocation was unable to be called for another reason.@ThingworxExtensionApiMethod(since={7,4}) public org.json.JSONObject GetRemoteMetadata() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public void UpdateSubscribedPropertyValues(InfoTable values) throws java.lang.Exception
values
- Collection of properties to be updated - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public void ProcessRemoteEvents(InfoTable values) throws java.lang.Exception
values
- Collection of events to be dispatched - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetPropertySubscriptions() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={8,0}) public InfoTable GetPropertySubscriptions(org.json.JSONObject options) throws java.lang.Exception
options
- Binding options supported by the calling SDK - JSONjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetEventSubscriptions() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public void SendQueuedTasks() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public java.lang.Integer SendMaxQueuedTasks(java.lang.Integer maxCount) throws java.lang.Exception
maxCount
- The maximum number of messages desired by the edge device. - INTEGERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public InfoTable GetQueuedTasks() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public InfoTable callService(java.lang.String serviceName, ValueCollection params, BaseTypes resultType) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public void AddDynamicRemoteSubscription(java.lang.String thingName, java.lang.String eventName, java.lang.String propertyName, java.lang.String serviceName) throws java.lang.Exception
thingName
- Thing name - THINGNAMEeventName
- Event name - STRINGpropertyName
- Property name - STRINGserviceName
- Remote service name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public void RemoveDynamicRemoteSubscription(java.lang.String thingName, java.lang.String eventName, java.lang.String propertyName) throws java.lang.Exception
thingName
- Thing name - THINGNAMEeventName
- Event name - STRINGpropertyName
- Property name - STRINGjava.lang.Exception
- If an error occurs