Class EventStreamProjectLifecycleFactory.Lifecycle
java.lang.Object
com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
com.inductiveautomation.ignition.gateway.resourcecollection.ResourceCollectionLifecycle
com.inductiveautomation.eventstream.gateway.project.EventStreamProjectLifecycleFactory.Lifecycle
- All Implemented Interfaces:
Lifecycle
- Enclosing class:
- EventStreamProjectLifecycleFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onResourcesCreated
(List<Resource> resources) Resources matching the interests of this lifecycle were created.protected void
onResourcesDeleted
(List<ResourceId> resourceIds) Resources matching the interests of this lifecycle were deleted.protected void
onResourcesModified
(List<Resource> resources) Resources matching the interests of this lifecycle were modified.protected void
onShutdown
(List<ResourceId> resourceIds) Shut down thisResourceCollectionLifecycle
.protected void
Start thisResourceCollectionLifecycle
.Methods inherited from class com.inductiveautomation.ignition.gateway.resourcecollection.ResourceCollectionLifecycle
getResourceChangeFilter, getResourceCollection, initialize, onAfterChanges, onBeforeChanges, onManifestChanged, onShutdown, onStartup
Methods inherited from class com.inductiveautomation.ignition.common.lifecycle.AbstractLifecycle
isRunning, shutdown, startup
-
Constructor Details
-
Lifecycle
-
-
Method Details
-
onStartup
Description copied from class:ResourceCollectionLifecycle
Start thisResourceCollectionLifecycle
.- Specified by:
onStartup
in classResourceCollectionLifecycle
- Parameters:
resources
- initial list of resources that match the scope and type interests of this lifecycle.
-
onShutdown
Description copied from class:ResourceCollectionLifecycle
Shut down thisResourceCollectionLifecycle
.- Specified by:
onShutdown
in classResourceCollectionLifecycle
- Parameters:
resourceIds
- list ofResourceId
s that match the scope and type interests of this lifecycle.
-
onResourcesCreated
Description copied from class:ResourceCollectionLifecycle
Resources matching the interests of this lifecycle were created.This is a chance for subclasses to do something of interest with these new resources, e.g. "run" them.
- Specified by:
onResourcesCreated
in classResourceCollectionLifecycle
- Parameters:
resources
-Resource
s matching the interests of this lifecycle.
-
onResourcesModified
Description copied from class:ResourceCollectionLifecycle
Resources matching the interests of this lifecycle were modified.This is a chance for subclasses to do something of interest with these modified resources, e.g. stop "running" something based on the old resource and start "running" something based on the newly modified resource.
- Specified by:
onResourcesModified
in classResourceCollectionLifecycle
- Parameters:
resources
-Resource
s matching the interests of this lifecycle.
-
onResourcesDeleted
Description copied from class:ResourceCollectionLifecycle
Resources matching the interests of this lifecycle were deleted.This is a chance for subclasses to do something of interest with these deleted resources, e.g. stop "running" something based on the resource.
- Specified by:
onResourcesDeleted
in classResourceCollectionLifecycle
- Parameters:
resourceIds
-ResourceId
s matching the interests of this lifecycle.
-