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.


Constructor Index

 o MsgDispClient()
Constructs a MsgDispClient.

Method Index

 o getMsgDispHostName()
Gets the host name where the MsgDispServer GUI window is running.
 o getMsgDispPortNumber()
Gets the port number where the MsgDispServer listens for communication.
 o qprintf(String)
Logs output to the MsgDispServer GUI through a socket.
 o setMsgDispHostName(String)
Sets the host name where the MsgDispServer GUI is running.
 o setMsgDispPortNumber(int)
Sets the port number where the MsgDispServer listens for communication.

Constructors

 o MsgDispClient
 public MsgDispClient()
Constructs a MsgDispClient.

Methods

 o 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.
 o setMsgDispHostName
 public void setMsgDispHostName(String myHost)
Sets the host name where the MsgDispServer GUI is running.

Parameters:
myHost - The location of the MsgDispServer GUI.
 o getMsgDispHostName
 public String getMsgDispHostName()
Gets the host name where the MsgDispServer GUI window is running.

Returns:
The location of the MsgDispServer GUI.
 o setMsgDispPortNumber
 public void setMsgDispPortNumber(int port)
Sets the port number where the MsgDispServer listens for communication.

Parameters:
port - The number of the MsgDispServer port.
 o 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