All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eNetwork.ECL.ECLConnection
java.lang.Object
|
+----com.ibm.eNetwork.ECL.ECLConnection
- public class ECLConnection
- extends Object
- implements Observer
ECLConnection is the base class from which ECLSession inherits.
An application must use an instance of ECLSession to access the
methods in this class.
-
GetCICSGWCodePage()
- Gets the user-specified CICS gateway codepage.
-
GetCICSServer()
- Gets the name of CICS server.
-
GetCodePage()
- Gets the host code page.
-
GetConnType()
- Gets the session type.
-
GetHost()
- Gets the name of the host with which the session is established.
-
GetName()
- Gets the session name.
-
GetPort()
- Gets the host port number of the session.
-
IsCommStarted()
- Checks if the session is connected to the host.
-
RegisterCommEvent(ECLCommNotify, boolean)
- Registers a notification object for events dispatched by a single
instance of ECLComm.
-
StartCommunication()
- Starts the communications link to the host.
-
StopCommunication()
- Stops the communications link to the host.
-
UnregisterCommEvent(ECLCommNotify)
- Unregisters a notification object previously registered with the
RegisterCommEvent() method.
-
update(Observable, Object)
- Method called to turn tracing on or off for this class.
GetConnType
public int GetConnType()
- Gets the session type.
- Returns:
- The session type. The value can be SESSION_TYPE_3270,
SESSION_TYPE_5250, SESSION_TYPE_VT, or SESSION_TYPE_CICS.
GetName
public String GetName()
- Gets the session name.
- Returns:
- The session name.
GetCodePage
public int GetCodePage()
- Gets the host code page.
- Returns:
- The code page in use on the host.
GetHost
public String GetHost()
- Gets the name of the host with which the session is established.
- Returns:
- The name of the attached host.
GetPort
public int GetPort()
- Gets the host port number of the session.
- Returns:
- The host port number.
IsCommStarted
public boolean IsCommStarted()
- Checks if the session is connected to the host.
- Returns:
- True if the Session is started. False otherwise.
StartCommunication
public synchronized void StartCommunication()
- Starts the communications link to the host.
StopCommunication
public synchronized void StopCommunication()
- Stops the communications link to the host.
RegisterCommEvent
public void RegisterCommEvent(ECLCommNotify notify,
boolean initEvent)
- Registers a notification object for events dispatched by a single
instance of ECLComm. The notification object must implement the
ECLCommNotify interface which defines three callback methods
called by the ECLComm class under different conditions.
ECLCommNotify objects can be unregistered using the
UnregisterCommEvent() method.
- Parameters:
- notify - ECLCommNotify object which is notified when
events occur.
- initEvent - Boolean indicating whether or not an initial
notification should be sent out for the
initial state of communications.
- See Also:
- UnregisterCommEvent, ECLCommNotify
UnregisterCommEvent
public void UnregisterCommEvent(ECLCommNotify notify)
- Unregisters a notification object previously registered with the
RegisterCommEvent() method. If the notification object is not
currently registered, this method does nothing.
- Parameters:
- notify - ECLCommNotify object which should be
unregistered.
- See Also:
- RegisterCommEvent, ECLCommNotify
GetCICSServer
public String GetCICSServer()
- Gets the name of CICS server.
- Returns:
- The CICS Server name.
GetCICSGWCodePage
public int GetCICSGWCodePage()
- Gets the user-specified CICS gateway codepage.
- Returns:
- The user-specified CICS gateway code page.
update
public void update(Observable o,
Object arg)
- Method called to turn tracing on or off for this class.
All Packages Class Hierarchy This Package Previous Next Index