|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclient.ClientData
public class ClientData
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.
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 |
---|
protected int value
Constructor Detail |
---|
public ClientData(int value)
Method Detail |
---|
public int getValue()
getValue
in interface ClientDataInterface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |