Package com.thingworx.system.subsystems
Class Subsystem
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
- Direct Known Subclasses:
PlatformSubsystem
,SCIMSubsystem
,UserManagementSubsystem
@ThingworxExtensionApiClass(since={6,6},
canExtendOrImplement=true)
public class Subsystem
extends ExtensibleRootEntity
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionService Category: Metrics Service Description: Get information on how the subsystem is performing.protected InfoTable
Service Category: Monitoring Service Description: Get the subscriber state.protected void
boolean
boolean
boolean
Service Category: Lifecycle Service Description: Check the run status of this subsystem.void
Service Category: Metrics Service Description: Get information on how the subsystem is performing.protected void
void
Restart()
Service Category: Lifecycle Service Description: Stops and restarts the sub-system.void
setAutoStart
(boolean autoStart) void
setDependsOn
(String value) void
setFriendlyName
(String value) void
setRunning
(boolean value) void
Start()
Service Category: Lifecycle Service Description: Starts the sub-system.protected void
startSubsystem
(ContextType contextType)
A method to hook into the startup process in the lifecycle of a subsystem.void
Stop()
Service Category: Lifecycle Service Description: Stops the sub-system.protected void
stopSubsystem
(ContextType contextType)
A method to hook into the shutdown process in the lifecycle of a subsystem.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, 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, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
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, getName
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.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED- See Also:
-
DEFAULT_AUTOSTART
public static final boolean DEFAULT_AUTOSTART- See Also:
-
-
Constructor Details
-
Subsystem
-
-
Method Details
-
isEnabled
-
getFriendlyName
-
setFriendlyName
-
getSubsystemState
-
initializeSubsystem
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true) protected void initializeSubsystem() throws Exception- Throws:
Exception
- If an error occurs
-
startSubsystem
@ThingworxExtensionApiMethod(since={9,0}, canOverride=true) protected void startSubsystem(ContextType contextType) throws Exception
A method to hook into the startup process in the lifecycle of a subsystem. As of 9.0, this method replaced startSubsystem(), which is no long valid because all lifecycle events must be aware of theContextType
in which the method is called in order to appropriately make changes.- Parameters:
contextType
- - the type of change happening when this method is called- Throws:
Exception
-
stopSubsystem
@ThingworxExtensionApiMethod(since={9,0}, canOverride=true) protected void stopSubsystem(ContextType contextType) throws Exception
A method to hook into the shutdown process in the lifecycle of a subsystem. As of 9.0, this method replaced startSubsystem(), which is no long valid because all lifecycle events must be aware of theContextType
in which the method is called in order to appropriately make changes.- Parameters:
contextType
- - the type of change happening when this method is called- Throws:
Exception
-
Start
- Service Category:
- Lifecycle
- Service Description:
- Starts the sub-system.
- Throws:
Exception
- If an error occurs
-
Stop
- Service Category:
- Lifecycle
- Service Description:
- Stops the sub-system.
- Throws:
Exception
- If an error occurs
-
IsRunning
- Service Category:
- Lifecycle
- Service Description:
- Check the run status of this subsystem.
- Returns:
- result Run status - BOOLEAN
- Throws:
Exception
- If an error occurs
-
Restart
- Service Category:
- Lifecycle
- Service Description:
- Stops and restarts the sub-system.
- Throws:
Exception
- If an error occurs
-
GetSubsystemState
- Service Category:
- Monitoring
- Service Description:
- Get the subscriber state.
- Returns:
- result Current subscriber state - STRING
- Throws:
Exception
- If an error occurs
-
GetPerformanceMetrics
- Service Category:
- Metrics
- Service Description:
- Get information on how the subsystem is performing.
- Returns:
- result Performance metrics - INFOTABLE - Aspects {dataShape:ThingworxMetric}
- Throws:
Exception
- If an error occurs
-
ResetPerformanceMetrics
- Service Category:
- Metrics
- Service Description:
- Get information on how the subsystem is performing.
- Throws:
Exception
- If an error occurs
-
getSubsystemPerformanceMetrics
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true) protected InfoTable getSubsystemPerformanceMetrics() throws Exception- Throws:
Exception
- If an error occurs
-
resetSubsystemPerformanceMetrics
@ThingworxExtensionApiMethod(since={6,6}, canOverride=true) protected void resetSubsystemPerformanceMetrics() -
isRunning
-
setRunning
-
getDependsOn
-
setDependsOn
-
isAutoStart
-
setAutoStart
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntity
Returns the type of this entity.
- Specified by:
getEntityType
in classRootEntity
- Returns:
- the entity type
-