Class DefaultResourceEntityDelegate
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceEntityDelegate
- All Implemented Interfaces:
ResourceEntityDelegate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA ratio gauge that shows active/total resources for a given resource type, where "active" is defined as having a healthcheck named "status" that is healthystatic classprotected static classA ratio gauge that shows enabled/total resources for a given resource typeprotected static class -
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.config.ResourceEntityDelegate
NONE -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor will decide to include or exclude the entity from the section overview based on whether the resource type is a singletonDefaultResourceEntityDelegate(Boolean includeInSectionOverview) DefaultResourceEntityDelegate(Boolean includeInSectionOverview, boolean includeInDiagnosticOverview) DefaultResourceEntityDelegate(Boolean includeInSectionOverview, boolean includeInDiagnosticOverview, List<String> excludedMetrics) -
Method Summary
Modifier and TypeMethodDescriptionprotected EntitybuildChildEntity(GatewayContext context, ResourceTypeMeta<?> meta, Resource resource) protected EntitybuildEntity(GatewayContext context, ResourceTypeMeta<?> meta) protected voidconfigureChildren(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) protected voidconfigureDescription(ResourceTypeMeta<?> meta, EntityBuilder.DescriptionComponentBuilder descriptionBuilder) protected voidconfigureDiagnostics(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) protected voidconfigureNavigation(ResourceTypeMeta<?> meta, NavLocation location, EntityBuilder.NavigationComponentBuilder navBuilder) getEntity(GatewayContext context, ResourceTypeMeta<?> meta) protected booleanincludeInSectionOverview(ResourceTypeMeta<?> meta) If this returns true, the "section-overview" tag will be added to the entity's navigation component.
-
Constructor Details
-
DefaultResourceEntityDelegate
public DefaultResourceEntityDelegate()This constructor will decide to include or exclude the entity from the section overview based on whether the resource type is a singleton -
DefaultResourceEntityDelegate
- Parameters:
includeInSectionOverview- Whether to include this resource type in the section overview page.
-
DefaultResourceEntityDelegate
public DefaultResourceEntityDelegate(@Nullable Boolean includeInSectionOverview, boolean includeInDiagnosticOverview) - Parameters:
includeInSectionOverview- Whether to include this resource type in the section overview page.includeInDiagnosticOverview- Whether to include this resource type in the diagnostic overview page.
-
DefaultResourceEntityDelegate
public DefaultResourceEntityDelegate(@Nullable Boolean includeInSectionOverview, boolean includeInDiagnosticOverview, List<String> excludedMetrics) - Parameters:
includeInSectionOverview- Whether to include this resource type in the section overview page.includeInDiagnosticOverview- Whether to include this resource type in the diagnostic overview page.excludedMetrics- A list of metric alias names to be excluded from the entity object
-
-
Method Details
-
getEntity
- Specified by:
getEntityin interfaceResourceEntityDelegate- Returns:
- An
Entitythat represents this resource type, or empty if no entity is associated with this resource type.
-
buildEntity
-
configureDescription
protected void configureDescription(ResourceTypeMeta<?> meta, EntityBuilder.DescriptionComponentBuilder descriptionBuilder) -
includeInSectionOverview
If this returns true, the "section-overview" tag will be added to the entity's navigation component. -
configureDiagnostics
protected void configureDiagnostics(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) -
configureChildren
protected void configureChildren(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) -
buildChildEntity
protected Entity buildChildEntity(GatewayContext context, ResourceTypeMeta<?> meta, Resource resource)
-