Class ServerInfo
java.lang.Object
io.debezium.connector.postgresql.connection.ServerInfo
Information about a running Postgres instance.
- Author:
- Horia Chiorean (hchiorea@redhat.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTable REPLICA IDENTITY information.protected static classInformation about a server replication slot -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ServerInfodatabase()Returns the name of a database for which a connection was establishedReturns information about the role names and permissions of the current userserver()Returns information about the server machinetoString()username()Returns the name of the user of a connectionprotected ServerInfowithDatabase(String database) protected ServerInfowithServer(String server) protected ServerInfowithUsername(String username)
-
Field Details
-
server
-
username
-
database
-
permissionsByRoleName
-
-
Constructor Details
-
ServerInfo
protected ServerInfo()
-
-
Method Details
-
withServer
-
withUsername
-
withDatabase
-
addRole
-
server
Returns information about the server machine- Returns:
- a String, possibly null if info was not available
-
username
Returns the name of the user of a connection- Returns:
- a String, possibly null if info was not available
-
database
Returns the name of a database for which a connection was established- Returns:
- a String, possibly null if info was not available
-
permissionsByRoleName
Returns information about the role names and permissions of the current user- Returns:
- a
Mapof role information, keyed by role name; never null but possibly empty
-
toString
-