public class SerializableDatasourceMeta extends java.lang.Object implements DatasourceMeta, java.io.Serializable
Constructor and Description |
---|
SerializableDatasourceMeta(DatasourceMeta copy) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveConnections()
Returns the current number of connections in use
|
java.util.List<ActiveQuery> |
getActiveQueries()
A snapshot of the currently executing queries for this datasource
|
java.lang.String |
getDescription() |
DatasourceStatus |
getExtendedStatus()
Returns the "best" status of this datasource or of any failover datasources.
|
DatasourceFailoverMode |
getFailoverMode()
Returns the behavioral failover mode for this datasource
|
int |
getMaxConnections()
Returns the maximum number of connections the underlying pool is configured to use.
|
java.lang.String |
getName() |
java.lang.String |
getProblemDescription()
A string describing the current problem, if the status is not good
|
StatMetric |
getStatistics()
A StatMetric that tracks the overall query throughput for this datasource
|
DatasourceStatus |
getStatus()
Returns the Status of this datasource based on its last tested condition
|
java.lang.String |
getValidationQuery()
Returns a SQL query that will be used to validate the status of this datasource.
|
DatabaseVendor |
getVendor() |
public SerializableDatasourceMeta(DatasourceMeta copy)
public java.lang.String getName()
getName
in interface DatasourceMeta
public java.lang.String getDescription()
getDescription
in interface DatasourceMeta
public java.lang.String getProblemDescription()
DatasourceMeta
getProblemDescription
in interface DatasourceMeta
public java.lang.String getValidationQuery()
DatasourceMeta
getValidationQuery
in interface DatasourceMeta
public int getActiveConnections()
DatasourceMeta
getActiveConnections
in interface DatasourceMeta
public int getMaxConnections()
DatasourceMeta
getMaxConnections
in interface DatasourceMeta
public DatasourceStatus getStatus()
DatasourceMeta
getStatus
in interface DatasourceMeta
public DatasourceStatus getExtendedStatus()
DatasourceMeta
getExtendedStatus
in interface DatasourceMeta
public DatasourceFailoverMode getFailoverMode()
DatasourceMeta
getFailoverMode
in interface DatasourceMeta
public StatMetric getStatistics()
DatasourceMeta
getStatistics
in interface DatasourceMeta
public DatabaseVendor getVendor()
getVendor
in interface DatasourceMeta
public java.util.List<ActiveQuery> getActiveQueries()
DatasourceMeta
getActiveQueries
in interface DatasourceMeta