|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.baserpc.RemoteData
Models the data transferred via BaseRPCs. The main functionality in this class is its ability to serialize and deserialize the data.
| Constructor Summary | |
RemoteData()
|
|
| Method Summary | |
protected void |
externalize(XmaOutput o)
Write the parameters to the XmaOutput. |
java.lang.Object |
getParameter(int id)
Retrieves a parameter for a given id. |
int |
getParameterCount()
Returns the number of parameters |
java.util.Collection |
getUnserializableCollection(int id)
Retrieves a parameter that has been set via setUnserializableCollection. |
protected void |
internalize(XmaInput in)
Reads parameters as written by externalizeParameters. |
void |
setParameter(int id,
java.lang.Object parameter)
Adds a parameter to this |
void |
setUnserializableCollection(int id,
java.util.Collection parameter)
Like setParameter, except that the provided collection is not serialized itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RemoteData()
| Method Detail |
protected void externalize(XmaOutput o)
throws java.io.IOException
java.io.IOException
protected void internalize(XmaInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void setParameter(int id,
java.lang.Object parameter)
id - a numeric id of the parameter. Must not be less than zero and greater than 127.parameter - the parameter data which has to implement java.io.Serializable
and must be successfully be serialized. It cannot be null.
java.lang.IllegalArgumentException - if any before mentioned condition is violated.
public void setUnserializableCollection(int id,
java.util.Collection parameter)
public java.lang.Object getParameter(int id)
id - the id that has been used in setParameter.
public java.util.Collection getUnserializableCollection(int id)
public int getParameterCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||