Package psiprobe.model
Class DataSourceInfo
- java.lang.Object
-
- psiprobe.model.DataSourceInfo
-
public class DataSourceInfo extends Object
POJO representing a datasource.
-
-
Constructor Summary
Constructors Constructor Description DataSourceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBusyConnections()Gets the busy connections.intgetBusyScore()Gets the busy score.intgetEstablishedConnections()Gets the established connections.intgetEstablishedScore()Gets the established score.StringgetJdbcUrl()Gets the jdbc url.intgetMaxConnections()Gets the max connections.StringgetType()Gets the type.StringgetUsername()Gets the username.booleanisResettable()Checks 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.voidsetType(String type)Sets the type.voidsetUsername(String username)Sets the username.
-
-
-
Method Detail
-
getJdbcUrl
public String getJdbcUrl()
Gets the jdbc url.- Returns:
- the jdbc url
-
setJdbcUrl
public void setJdbcUrl(String jdbcUrl)
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
public String getUsername()
Gets the username.- Returns:
- the username
-
setUsername
public void setUsername(String username)
Sets the username.- Parameters:
username- the new username
-
getType
public String getType()
Gets the type.- Returns:
- the type
-
setType
public void setType(String type)
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
-
-