|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.as400.AS400Connection
public class AS400Connection
AS400Connection manages connections to AS400 machines.
It implements the Singleton-Design-Pattern: Named instances of
AS400Connection are created for every thread.
Configuration:
| Chapter | Section | Key | Content |
|---|---|---|---|
| AS400Connection | name | SystemName | System name or IP-address of the AS400 |
| AS400Connection | name | User | User for accessing the AS400 |
| AS400Connection | name | Password | Password for the user |
| Method Summary | |
|---|---|
static void |
clear()
|
static AS400Connection |
getInstance(java.lang.String name)
Delivers an instance of AS400Connection. |
com.ibm.as400.access.AS400 |
getSystem()
Returns the AS400 object for the connection. |
boolean |
isTestSystem()
Helper method for writing testdrivers when no AS400 is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AS400Connection getInstance(java.lang.String name)
throws XException
AS400Connection.
If it is the first call with the given name for the actual thread, a new
AS400Connection-object gets created. Subsequent calls
with the given name in this thread will deliver the object, that has been
created by the first call.
name - more than one AS400 can be connected, differenced by their
name
XException - if any error occurspublic com.ibm.as400.access.AS400 getSystem()
AS400 object for the connection.
AS400 object for the connectionpublic boolean isTestSystem()
true if this is not a real AS400public static void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||