Record Class RpcDatasourceMeta
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.datasource.RpcDatasourceMeta
public record RpcDatasourceMeta(String name, String description, String problemDescription, String validationQuery, int activeConnections, int maxConnections, String status, String extendedStatus, double statistics, String vendor)
extends Record
To optimize transmission of across rpc, this class passes a subset of info from DatasourceMeta. Specifically only the
properties used in
The optimization avoids sending complex objects, reducing the size of the payload, and reducing serialization time.
AbstractDBUtilities.toDataset(List)
The optimization avoids sending complex objects, reducing the size of the payload, and reducing serialization time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveConnectionsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextendedStatusrecord component.static RpcDatasourceMetafromDatasourceMeta(DatasourceMeta datasource) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxConnectionsrecord component.name()Returns the value of thenamerecord component.Returns the value of theproblemDescriptionrecord component.doubleReturns the value of thestatisticsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationQueryrecord component.vendor()Returns the value of thevendorrecord component.
-
Constructor Details
-
RpcDatasourceMeta
public RpcDatasourceMeta(String name, String description, String problemDescription, String validationQuery, int activeConnections, int maxConnections, String status, String extendedStatus, double statistics, String vendor) Creates an instance of aRpcDatasourceMetarecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentproblemDescription- the value for theproblemDescriptionrecord componentvalidationQuery- the value for thevalidationQueryrecord componentactiveConnections- the value for theactiveConnectionsrecord componentmaxConnections- the value for themaxConnectionsrecord componentstatus- the value for thestatusrecord componentextendedStatus- the value for theextendedStatusrecord componentstatistics- the value for thestatisticsrecord componentvendor- the value for thevendorrecord component
-
-
Method Details
-
fromDatasourceMeta
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
problemDescription
Returns the value of theproblemDescriptionrecord component.- Returns:
- the value of the
problemDescriptionrecord component
-
validationQuery
Returns the value of thevalidationQueryrecord component.- Returns:
- the value of the
validationQueryrecord component
-
activeConnections
public int activeConnections()Returns the value of theactiveConnectionsrecord component.- Returns:
- the value of the
activeConnectionsrecord component
-
maxConnections
public int maxConnections()Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
extendedStatus
Returns the value of theextendedStatusrecord component.- Returns:
- the value of the
extendedStatusrecord component
-
statistics
public double statistics()Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-
vendor
Returns the value of thevendorrecord component.- Returns:
- the value of the
vendorrecord component
-