|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.routing.operation.Operation
org.planx.xmlstore.routing.operation.ConnectOperation
public class ConnectOperation
Connects to an existing Kademlia network using a bootstrap node.
| Constructor Summary | |
|---|---|
ConnectOperation(Configuration conf,
MessageServer server,
Space space,
Node local,
InetAddress bootstrap,
int bootPort)
|
|
| Method Summary | |
|---|---|
Object |
execute()
Starts the operation and returns when the operation is finished. |
void |
receive(Message incoming,
int comm)
Receives an AcknowledgeMessage from the boot strap node. |
void |
timeout(int comm)
Resends a ConnectMessage to the boot strap node a maximum of MAX_ATTEMPTS times. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectOperation(Configuration conf,
MessageServer server,
Space space,
Node local,
InetAddress bootstrap,
int bootPort)
| Method Detail |
|---|
public Object execute()
throws IOException,
RoutingException
Operation
execute in class Operationnull
IOException - if a network error occurred
RoutingException - if the bootstrap node did not respond
public void receive(Message incoming,
int comm)
throws IOException
receive in interface ReceiverIOException - if an I/O error occurs
public void timeout(int comm)
throws IOException
timeout in interface ReceiverIOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||