All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.samples.dips.trace.MsgDispClient
java.lang.Object
|
+----com.ibm.beans.samples.dips.trace.MsgDispClient
- public class MsgDispClient
- extends Object
- implements Serializable
This class represents the MsgDispClient instance
that connects to the MsgDispServer instance and
sends data through a socket connection.
(The socket connection is implemented using a Java Socket instance.)
A MsgDispServer instance is a server GUI that enables
the MsgDispClient instance to log messages.
-
MsgDispClient()
- Constructs a MsgDispClient.
-
getMsgDispHostName()
- Gets the host name where the MsgDispServer GUI window is running.
-
getMsgDispPortNumber()
- Gets the port number where the MsgDispServer listens for communication.
-
qprintf(String)
- Logs output to the MsgDispServer GUI through a socket.
-
setMsgDispHostName(String)
- Sets the host name where the MsgDispServer GUI is running.
-
setMsgDispPortNumber(int)
- Sets the port number where the MsgDispServer listens for communication.
MsgDispClient
public MsgDispClient()
- Constructs a MsgDispClient.
qprintf
public synchronized void qprintf(String myBuffer)
- Logs output to the MsgDispServer GUI through a socket.
The method opens a socket on the server and writes to it.
The MsgDispServer GUI reads the data and displays it.
- Parameters:
- myBuffer - The message to log.
setMsgDispHostName
public void setMsgDispHostName(String myHost)
- Sets the host name where the MsgDispServer GUI is running.
- Parameters:
- myHost - The location of the MsgDispServer GUI.
getMsgDispHostName
public String getMsgDispHostName()
- Gets the host name where the MsgDispServer GUI window is running.
- Returns:
- The location of the MsgDispServer GUI.
setMsgDispPortNumber
public void setMsgDispPortNumber(int port)
- Sets the port number where the MsgDispServer listens for communication.
- Parameters:
- port - The number of the MsgDispServer port.
getMsgDispPortNumber
public int getMsgDispPortNumber()
- Gets the port number where the MsgDispServer listens for communication.
- Returns:
- The number of the MsgDispServer port.
All Packages Class Hierarchy This Package Previous Next Index