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
 void close()
          Closes the connection.
 String getJobName()
          Returns the server job associated with this connection, if any.
 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 IOException
Closes the connection.

Throws:
IOException

isClosed

boolean isClosed()
Returns true if this connection is closed.


getUser

String getUser()
Returns the current authenticated user of this connection.


getJobName

String getJobName()
Returns the server job associated with this connection, if any.