|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alliance.core.comm.RPC
public abstract class RPC
Created by IntelliJ IDEA. User: maciek Date: 2005-dec-21 Time: 16:30:20 To change this template use File | Settings | File Templates.
| Field Summary | |
|---|---|
protected boolean |
broadcastable
Can this RPC be broadcasted in an exponential fashion to my friends and their friends? |
protected FriendConnection |
con
|
protected CoreSubsystem |
core
|
protected int |
fromGuid
|
protected int |
hops
|
protected FriendManager |
manager
|
protected boolean |
routable
Can this RPC be router through several nodes to reach its destination? |
| Constructor Summary | |
|---|---|
RPC()
|
|
| Method Summary | |
|---|---|
abstract void |
execute(Packet in)
|
RPC |
init(FriendConnection rpcc)
Initializes this RCP in a mode where it has not been recived from anyone - fromGuid is 0 |
RPC |
init(FriendConnection rpcc,
int fromGuid,
int numHops)
Might be ran several times when broadcasting a packet.. |
boolean |
isBroadcastable()
|
boolean |
isInitialized()
|
boolean |
isRoutable()
|
protected void |
send(int dstGuid,
RPC rpc)
|
protected void |
send(RPC rpc)
|
abstract Packet |
serializeTo(Packet out)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient FriendConnection con
protected transient FriendManager manager
protected transient CoreSubsystem core
protected transient boolean routable
protected transient boolean broadcastable
protected transient int fromGuid
protected transient int hops
| Constructor Detail |
|---|
public RPC()
| Method Detail |
|---|
public abstract void execute(Packet in)
throws java.io.IOException
java.io.IOExceptionpublic abstract Packet serializeTo(Packet out)
public RPC init(FriendConnection rpcc)
rpcc -
public RPC init(FriendConnection rpcc,
int fromGuid,
int numHops)
rpcc - fromGuid - numHops -
protected void send(RPC rpc)
throws java.io.IOException
java.io.IOException
protected void send(int dstGuid,
RPC rpc)
throws java.io.IOException
java.io.IOExceptionpublic boolean isInitialized()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isRoutable()
public boolean isBroadcastable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||