com.ibm.as400.micro
Class AS400
java.lang.Object
|
+--com.ibm.as400.micro.AS400
- public final class AS400
- extends java.lang.Object
The AS400 class represents an iSeries system sign-on from a wireless device.
This class provides a modified subset of the functions available in
com.ibm.as400.access.AS400.
The following example demonstrates the use of AS400:
AS400 system = new AS400("mySystem", "myUserid", "myPwd", "myMEServer");
try
{
system.connect();
}
catch (Exception e)
{
// Handle the exception
}
// Done with the system object.
system.disconnect();
- See Also:
AS400
Constructor Summary |
AS400(java.lang.String systemName,
java.lang.String userId,
java.lang.String password,
java.lang.String MEServer)
Constructs an AS400 object. |
Method Summary |
boolean |
connect()
Connect to an iSeries server. |
void |
disconnect()
Disconnects the client from the MEServer. |
protected void |
finalize()
When the garbage collector calls finalize(), this
method will call disconnect() on the AS400 object. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AS400
public AS400(java.lang.String systemName,
java.lang.String userId,
java.lang.String password,
java.lang.String MEServer)
- Constructs an AS400 object.
- Parameters:
systemName
- The name of the system.userId
- The user ID to use to connect to the system.password
- The password to use to connect to the system.MEServer
- The system name and port of the ME server in the format serverName[:port]
.
If no port is specified, the default will be used.
disconnect
public void disconnect()
- Disconnects the client from the MEServer. All socket connections associated with this object will be closed.
finalize
protected void finalize()
- When the garbage collector calls finalize(), this
method will call disconnect() on the AS400 object.
- Overrides:
finalize
in class java.lang.Object
connect
public boolean connect()
throws java.io.IOException,
MEException
- Connect to an iSeries server.
A connection is typically made implicitly; therefore, this method does not have to be
called to connect to the iSeries. This method can be used to control when the connection
is established.
- Throws:
java.io.IOException
- If an error occurs while communicating with the iSeries server.MEException
- If an error occurs while processing the ToolboxME request.