client
Class ClientData

java.lang.Object
  extended by client.ClientData
All Implemented Interfaces:
ClientDataInterface, java.io.Serializable

public class ClientData
extends java.lang.Object
implements ClientDataInterface

Class ClientData defines client-specific data. It implements the ClientDataInterface to make the data available to the remote server. In this simple RMI example, the client data consist of just a single integer. While data this simple need not be defined in a class of its own, the point of defining this class is to illustrate how more complicated client data can be handled via RMI.

See Also:
Serialized Form

Field Summary
protected  int value
          Data value
 
Constructor Summary
ClientData(int value)
          Construct this with the given numeric value.
 
Method Summary
 int getValue()
          Provide access to this' data value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected int value
Data value

Constructor Detail

ClientData

public ClientData(int value)
Construct this with the given numeric value.

Method Detail

getValue

public int getValue()
Provide access to this' data value.

Specified by:
getValue in interface ClientDataInterface