Interface DatasourceMeta
- All Known Subinterfaces:
- Datasource
- All Known Implementing Classes:
- SerializableDatasourceMeta
public interface DatasourceMeta
Describes an Ignition datasource, including its current status, query workload, etc.
- 
Method SummaryModifier 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.
- 
Method Details- 
getNameString getName()- Returns:
- the name of this datasource
 
- 
getDescriptionString getDescription()- Returns:
- the description for this datasource
 
- 
getVendorDatabaseVendor getVendor()- Returns:
- the database type that this connection's driver is connecting to
 
- 
getStatusDatasourceStatus getStatus()Returns the Status of this datasource based on its last tested condition
- 
getProblemDescriptionString getProblemDescription()A string describing the current problem, if the status is not good
- 
getExtendedStatusDatasourceStatus getExtendedStatus()Returns the "best" status of this datasource or of any failover datasources. This is a better indicator of whether or not getConnection() will succeed
- 
getFailoverModeDatasourceFailoverMode getFailoverMode()Returns the behavioral failover mode for this datasource
- 
getStatisticsStatMetric getStatistics()A StatMetric that tracks the overall query throughput for this datasource
- 
getMaxConnectionsint getMaxConnections()Returns the maximum number of connections the underlying pool is configured to use.
- 
getActiveConnectionsint getActiveConnections()Returns the current number of connections in use
- 
getValidationQueryString getValidationQuery()Returns a SQL query that will be used to validate the status of this datasource. This query should always return at least 1 row.
- 
getActiveQueriesList<ActiveQuery> getActiveQueries()A snapshot of the currently executing queries for this datasource
 
-