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 TypeMethodDescriptionint
Returns the value of theactiveConnections
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextendedStatus
record component.static RpcDatasourceMeta
fromDatasourceMeta
(DatasourceMeta datasource) final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxConnections
record component.name()
Returns the value of thename
record component.Returns the value of theproblemDescription
record component.double
Returns the value of thestatistics
record component.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevalidationQuery
record component.vendor()
Returns the value of thevendor
record 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 aRpcDatasourceMeta
record class.- Parameters:
name
- the value for thename
record componentdescription
- the value for thedescription
record componentproblemDescription
- the value for theproblemDescription
record componentvalidationQuery
- the value for thevalidationQuery
record componentactiveConnections
- the value for theactiveConnections
record componentmaxConnections
- the value for themaxConnections
record componentstatus
- the value for thestatus
record componentextendedStatus
- the value for theextendedStatus
record componentstatistics
- the value for thestatistics
record componentvendor
- the value for thevendor
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
problemDescription
Returns the value of theproblemDescription
record component.- Returns:
- the value of the
problemDescription
record component
-
validationQuery
Returns the value of thevalidationQuery
record component.- Returns:
- the value of the
validationQuery
record component
-
activeConnections
public int activeConnections()Returns the value of theactiveConnections
record component.- Returns:
- the value of the
activeConnections
record component
-
maxConnections
public int maxConnections()Returns the value of themaxConnections
record component.- Returns:
- the value of the
maxConnections
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
extendedStatus
Returns the value of theextendedStatus
record component.- Returns:
- the value of the
extendedStatus
record component
-
statistics
public double statistics()Returns the value of thestatistics
record component.- Returns:
- the value of the
statistics
record component
-
vendor
Returns the value of thevendor
record component.- Returns:
- the value of the
vendor
record component
-