Package psiprobe.model
Class DataSourceInfo
java.lang.Object
psiprobe.model.DataSourceInfo
POJO representing a datasource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the busy connections.int
Gets the busy score.int
Gets the established connections.int
Gets the established score.Gets the jdbc url.int
Gets the max connections.getType()
Gets the type.Gets the username.boolean
Checks if is resettable.void
setBusyConnections
(int busyConnections) Sets the busy connections.void
setEstablishedConnections
(int establishedConnections) Sets the established connections.void
setJdbcUrl
(String jdbcUrl) Sets the jdbc url.void
setMaxConnections
(int maxConnections) Sets the max connections.void
setResettable
(boolean resettable) Sets the resettable.void
Sets the type.void
setUsername
(String username) Sets the username.
-
Constructor Details
-
DataSourceInfo
public DataSourceInfo()
-
-
Method Details
-
getJdbcUrl
Gets the jdbc url.- Returns:
- the jdbc url
-
setJdbcUrl
Sets the jdbc url.- Parameters:
jdbcUrl
- the new jdbc url
-
getBusyConnections
public int getBusyConnections()Gets the busy connections.- Returns:
- the busy connections
-
setBusyConnections
public void setBusyConnections(int busyConnections) Sets the busy connections.- Parameters:
busyConnections
- the new busy connections
-
getEstablishedConnections
public int getEstablishedConnections()Gets the established connections.- Returns:
- the established connections
-
setEstablishedConnections
public void setEstablishedConnections(int establishedConnections) Sets the established connections.- Parameters:
establishedConnections
- the new established connections
-
getMaxConnections
public int getMaxConnections()Gets the max connections.- Returns:
- the max connections
-
setMaxConnections
public void setMaxConnections(int maxConnections) Sets the max connections.- Parameters:
maxConnections
- the new max connections
-
isResettable
public boolean isResettable()Checks if is resettable.- Returns:
- true, if is resettable
-
setResettable
public void setResettable(boolean resettable) Sets the resettable.- Parameters:
resettable
- the new resettable
-
getUsername
Gets the username.- Returns:
- the username
-
setUsername
Sets the username.- Parameters:
username
- the new username
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type
- the new type
-
getBusyScore
public int getBusyScore()Gets the busy score.- Returns:
- the busy score
-
getEstablishedScore
public int getEstablishedScore()Gets the established score.- Returns:
- the established score
-