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
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanFields 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 TypeMethodDescriptionReturns the type of this entity.Service Category: Metrics Service Description: Get information on how the subsystem is performing.protected InfoTableService Category: Monitoring Service Description: Get the subscriber state.protected voidbooleanbooleanbooleanService Category: Lifecycle Service Description: Check the run status of this subsystem.voidService Category: Metrics Service Description: Get information on how the subsystem is performing.protected voidvoidRestart()Service Category: Lifecycle Service Description: Stops and restarts the sub-system.voidsetAutoStart(boolean autoStart) voidsetDependsOn(String value) voidsetFriendlyName(String value) voidsetRunning(boolean value) voidStart()Service Category: Lifecycle Service Description: Starts the sub-system.protected voidstartSubsystem(ContextType contextType) A method to hook into the startup process in the lifecycle of a subsystem.voidStop()Service Category: Lifecycle Service Description: Stops the sub-system.protected voidstopSubsystem(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, processServiceRequestMethods 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, validateConfigurationMethods 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
getDescription, getNameMethods 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.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
-
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 theContextTypein 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 theContextTypein 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
-
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:RootEntityReturns the type of this entity.
- Specified by:
getEntityTypein classRootEntity- Returns:
- the entity type
-