Package psiprobe.model
Class DataSourceInfo
java.lang.Object
psiprobe.model.DataSourceInfo
POJO representing a datasource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the busy connections.intGets the busy score.intGets the established connections.intGets the established score.Gets the jdbc url.intGets the max connections.getType()Gets the type.Gets the username.booleanChecks if is resettable.voidsetBusyConnections(int busyConnections) Sets the busy connections.voidsetEstablishedConnections(int establishedConnections) Sets the established connections.voidsetJdbcUrl(String jdbcUrl) Sets the jdbc url.voidsetMaxConnections(int maxConnections) Sets the max connections.voidsetResettable(boolean resettable) Sets the resettable.voidSets the type.voidsetUsername(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
-