aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/gnunet/testbed/Peer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/gnunet/testbed/Peer.java')
-rw-r--r--src/main/java/org/gnunet/testbed/Peer.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/main/java/org/gnunet/testbed/Peer.java b/src/main/java/org/gnunet/testbed/Peer.java
new file mode 100644
index 0000000..f9cfc3e
--- /dev/null
+++ b/src/main/java/org/gnunet/testbed/Peer.java
@@ -0,0 +1,57 @@
1package org.gnunet.testbed;
2
3import org.gnunet.util.Configuration;
4
5/**
6 * Opaque handle to a peer controlled by the testbed framework. A peer runs
7 * at a particular host.
8 */
9public class Peer {
10 public Operation start(PeerChurnCallback peerChurnCallback) {
11 return null;
12 }
13
14 public Operation stop(PeerChurnCallback peerChurnCallback) {
15 return null;
16 }
17
18 public Operation getInformation() {
19 return null;
20 }
21
22 /*
23 * Change peer configuration. Must only be called while the
24 * peer is stopped. Ports and paths cannot be changed this
25 * way.
26 */
27 public Operation updateConfiguration(Configuration cfg) {
28 return null;
29 }
30
31 /*
32 * Change peer configuration. Must only be called while the
33 * peer is stopped. Ports and paths cannot be changed this
34 * way.
35 */
36 public Operation destroy() {
37 return null;
38 }
39
40 public Operation manageService(String serviceName, boolean start) {
41 return null;
42 }
43
44 /**
45 * Both peers must have been started before calling this function.
46 * This function then obtains a HELLO from this peer, gives it to 'otherPeer'
47 * and asks 'otherPeer' to connect to this peer..
48 */
49 public Operation connectOverlay(OperationCompletionCallback cb, Peer otherPeer) {
50 return null;
51 }
52
53 public Operation getServiceConnection(String serviceName /*,... */) {
54 return null;
55 }
56
57}