|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.asunder.AsunderNode
public class AsunderNode
Constructor Summary | |
---|---|
AsunderNode(AsunderConfig config,
AsunderCache cache,
PastryNode kbrNode)
Creates a new instance of AsunderNode |
Method Summary | |
---|---|
void |
deliver(Id id,
Message message)
Deliver a message bound for this kbr application |
boolean |
forward(RouteMessage routeMessage)
AsunderMessage's are always routed directly to peers, so forwarding should not occur but due to the pastry implementation, sent and delivered messages cause forward() to fire. |
DHTCache |
getCache()
|
NodeHandleIterator |
getCandidates(Id targetId)
|
AsunderConfig |
getConfig()
|
void |
getContent(DHTContentKey contentKey,
long timeout,
DHTGetListener listener)
Search for content on the DHT with a newly generated messageId |
Id |
getId()
|
LeafSet |
getLeafSet()
|
void |
initiateJoin(NodeHandle bootstrap)
|
void |
putContent(DHTContent content,
long timeout,
DHTPutListener listener)
Publish content on the DHT using a new messageId most commonly used by a higher level app running this node |
void |
setLogLevel(int logLevel)
|
void |
update(NodeHandle handle,
boolean joined)
Notification of nodes joining/leaving. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsunderNode(AsunderConfig config, AsunderCache cache, PastryNode kbrNode)
Method Detail |
---|
public Id getId()
public void initiateJoin(NodeHandle bootstrap)
public LeafSet getLeafSet()
public AsunderConfig getConfig()
public DHTCache getCache()
getCache
in interface DHTNode
public void setLogLevel(int logLevel)
public NodeHandleIterator getCandidates(Id targetId)
public void getContent(DHTContentKey contentKey, long timeout, DHTGetListener listener)
getContent
in interface DHTNode
public void putContent(DHTContent content, long timeout, DHTPutListener listener)
putContent
in interface DHTNode
public void deliver(Id id, Message message)
Application
public boolean forward(RouteMessage routeMessage)
Application
public void update(NodeHandle handle, boolean joined)
Application
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |