com.ibm.jtopenlite
Interface Connection
-
- All Known Implementing Classes:
- CommandConnection, DatabaseConnection, DDMConnection, FileConnection, HostServerConnection, SignonConnection
public interface Connection
Interface that represents a connection to an IBM i server.
-
-
Method Summary
Methods Modifier and Type Method and Description void
close()
Closes the connection.java.lang.String
getJobName()
Returns the server job associated with this connection, if any.java.lang.String
getUser()
Returns the current authenticated user of this connection.boolean
isClosed()
Returns true if this connection is closed.
-
-
-
Method Detail
-
close
void close() throws java.io.IOException
Closes the connection.- Throws:
java.io.IOException
-
isClosed
boolean isClosed()
Returns true if this connection is closed.
-
getUser
java.lang.String getUser()
Returns the current authenticated user of this connection.
-
getJobName
java.lang.String getJobName()
Returns the server job associated with this connection, if any.
-
-