Class SerializableDatasourceMeta
java.lang.Object
com.inductiveautomation.ignition.common.datasource.SerializableDatasourceMeta
- All Implemented Interfaces:
DatasourceMeta
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current number of connections in useA snapshot of the currently executing queries for this datasourceReturns the "best" status of this datasource or of any failover datasources.Returns the behavioral failover mode for this datasourceint
Returns the maximum number of connections the underlying pool is configured to use.getName()
A string describing the current problem, if the status is not goodA StatMetric that tracks the overall query throughput for this datasourceReturns the Status of this datasource based on its last tested conditionReturns a SQL query that will be used to validate the status of this datasource.
-
Constructor Details
-
SerializableDatasourceMeta
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceDatasourceMeta
- Returns:
- the name of this datasource
-
getDescription
- Specified by:
getDescription
in interfaceDatasourceMeta
- Returns:
- the description for this datasource
-
getProblemDescription
Description copied from interface:DatasourceMeta
A string describing the current problem, if the status is not good- Specified by:
getProblemDescription
in interfaceDatasourceMeta
-
getValidationQuery
Description copied from interface:DatasourceMeta
Returns a SQL query that will be used to validate the status of this datasource. This query should always return at least 1 row.- Specified by:
getValidationQuery
in interfaceDatasourceMeta
-
getActiveConnections
public int getActiveConnections()Description copied from interface:DatasourceMeta
Returns the current number of connections in use- Specified by:
getActiveConnections
in interfaceDatasourceMeta
-
getMaxConnections
public int getMaxConnections()Description copied from interface:DatasourceMeta
Returns the maximum number of connections the underlying pool is configured to use.- Specified by:
getMaxConnections
in interfaceDatasourceMeta
-
getStatus
Description copied from interface:DatasourceMeta
Returns the Status of this datasource based on its last tested condition- Specified by:
getStatus
in interfaceDatasourceMeta
-
getExtendedStatus
Description copied from interface:DatasourceMeta
Returns the "best" status of this datasource or of any failover datasources. This is a better indicator of whether or not getConnection() will succeed- Specified by:
getExtendedStatus
in interfaceDatasourceMeta
-
getFailoverMode
Description copied from interface:DatasourceMeta
Returns the behavioral failover mode for this datasource- Specified by:
getFailoverMode
in interfaceDatasourceMeta
-
getStatistics
Description copied from interface:DatasourceMeta
A StatMetric that tracks the overall query throughput for this datasource- Specified by:
getStatistics
in interfaceDatasourceMeta
-
getVendor
- Specified by:
getVendor
in interfaceDatasourceMeta
- Returns:
- the database type that this connection's driver is connecting to
-
getActiveQueries
Description copied from interface:DatasourceMeta
A snapshot of the currently executing queries for this datasource- Specified by:
getActiveQueries
in interfaceDatasourceMeta
-