|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprovided.client.model.task.GetInfo
public class GetInfo
Task that gets the server's system properties plus demonstrates that it can carry internal data to a remote system when the entire object is serialized and sent over.
Field Summary | |
---|---|
private double[] |
dArray
An array carried along to prove that internal data is transmitted too. |
private java.lang.String |
input
Input string given to the constructor |
private static long |
serialVersionUID
Serialversion UID for well-defined serialization |
private ILocalTaskViewAdapter |
taskView
Adapter to the local view. |
Constructor Summary | |
---|---|
GetInfo(java.lang.String input)
Constructor for the class. |
Method Summary | |
---|---|
java.lang.String |
execute()
Display the internal string on the server's console. |
private void |
readObject(java.io.ObjectInputStream stream)
Reinitializes transient fields upon deserialization. |
void |
setTaskViewAdapter(ILocalTaskViewAdapter viewAdapter)
Sets the task view adapter to a new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private transient ILocalTaskViewAdapter taskView
private java.lang.String input
private double[] dArray
Constructor Detail |
---|
public GetInfo(java.lang.String input)
input
- A string to carry around.Method Detail |
---|
public java.lang.String execute() throws java.rmi.RemoteException
execute
in interface ITask<java.lang.String>
java.rmi.RemoteException
- thrown when a network error occurs.private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
stream
- The object stream with the serialized data
java.io.IOException
java.lang.ClassNotFoundException
public void setTaskViewAdapter(ILocalTaskViewAdapter viewAdapter)
setTaskViewAdapter
in interface ITask<java.lang.String>
viewAdapter
- the adapter to the view.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |