|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectmanagers.NetworkManager
public class NetworkManager
Responsible for networking.
| Method Summary | |
|---|---|
boolean |
isConnectionInitiated()
Answers if the connection with the server is initialized. |
void |
remoteCall(Node remoteNode,
ByteArray... arguments)
Invokes a remote call to the server. |
void |
setGaugeToSynchronizeWith(Gauge gauge)
The Gauge object set with this method will be used by the NetworkManager to report the progress of downloading data from the server. |
void |
stopDownloading()
Forces the network connection to close. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isConnectionInitiated()
true if the network connection has been
initialized, false otherwise.
<blue:call manager="NetworkManager"
method="isConnectionInitiated
toVariable="isInitialized"/>
public void remoteCall(Node remoteNode,
ByteArray... arguments)
ProcessingManager.
remoteNode - node to communicate witharguments - ByteArray type arguments to transfer to the server
<blue:call manager="NetworkManager" method="remoteCall">
<blue:argument type="node" location="network"
name="com/emarson/bluelemon/example"/>
<blue:argument type="variable" name="byteArrVar"/>
<blue:argument type="String" name="string"/>
<blue:argument type="int" name="6"/>
</blue:call>
However, in most cases it is more convenient to use the equivalent
<call
node='...' location='...'> syntax:
<blue:call node="com/emarson/bluelemon/example"
location="network">
<blue:argument type="variable" name="byteArrVar"/>
<blue:argument type="String" name="string"/>
<blue:argument type="int" name="6"/>
</blue:call>
public void setGaugeToSynchronizeWith(Gauge gauge)
gauge - the Gauge object to use for showing the progress of
downloading the data
<blue:call manager="NetworkManager"
method="setGaugeToSynchronizeWith">
<blue:argument type="variable" name="gauge"/>
</blue:call>
public void stopDownloading()
<blue:call manager="NetworkManager"
method="stopDownloading"/>
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||