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 TypeMethodDescriptionintReturns 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 datasourceintReturns 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:
getNamein interfaceDatasourceMeta- Returns:
- the name of this datasource
-
getDescription
- Specified by:
getDescriptionin interfaceDatasourceMeta- Returns:
- the description for this datasource
-
getProblemDescription
Description copied from interface:DatasourceMetaA string describing the current problem, if the status is not good- Specified by:
getProblemDescriptionin interfaceDatasourceMeta
-
getValidationQuery
Description copied from interface:DatasourceMetaReturns 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:
getValidationQueryin interfaceDatasourceMeta
-
getActiveConnections
public int getActiveConnections()Description copied from interface:DatasourceMetaReturns the current number of connections in use- Specified by:
getActiveConnectionsin interfaceDatasourceMeta
-
getMaxConnections
public int getMaxConnections()Description copied from interface:DatasourceMetaReturns the maximum number of connections the underlying pool is configured to use.- Specified by:
getMaxConnectionsin interfaceDatasourceMeta
-
getStatus
Description copied from interface:DatasourceMetaReturns the Status of this datasource based on its last tested condition- Specified by:
getStatusin interfaceDatasourceMeta
-
getExtendedStatus
Description copied from interface:DatasourceMetaReturns 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:
getExtendedStatusin interfaceDatasourceMeta
-
getFailoverMode
Description copied from interface:DatasourceMetaReturns the behavioral failover mode for this datasource- Specified by:
getFailoverModein interfaceDatasourceMeta
-
getStatistics
Description copied from interface:DatasourceMetaA StatMetric that tracks the overall query throughput for this datasource- Specified by:
getStatisticsin interfaceDatasourceMeta
-
getVendor
- Specified by:
getVendorin interfaceDatasourceMeta- Returns:
- the database type that this connection's driver is connecting to
-
getActiveQueries
Description copied from interface:DatasourceMetaA snapshot of the currently executing queries for this datasource- Specified by:
getActiveQueriesin interfaceDatasourceMeta
-