-
Notifications
You must be signed in to change notification settings - Fork 1
/
NullEnvironmentServer.java
executable file
·78 lines (56 loc) · 1.49 KB
/
NullEnvironmentServer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package c8;
import java.io.IOException;
import java.util.Currency;
import c8.gateway.Message;
import c8.gateway.MessageSink;
import c8.gateway.MessageSource;
import c8.trading.PriceTable;
public class NullEnvironmentServer implements EnvironmentServer {
public void start() {}
public Message sendReplyPaid(Message msg, int maxWaitSecs) {
// TODO Auto-generated method stub
return null;
}
public void setMsgSink(MessageSink sink) {
// TODO Auto-generated method stub
}
public void setMsgSource(MessageSource source) {
// TODO Auto-generated method stub
}
public MessageSink getMsgSink() {
return null;
}
public MessageSource getMsgSource() {
return null;
}
public PriceTable getPriceTable() {
return null;
}
public boolean send(Message msg) {
return false;
}
public void close() throws IOException {
}
public Message sendReplyPaid(Message msg) {
return null;
}
public Currency getAccountingCcy() {
return Currency.getInstance("AUD");
}
public String getName() {
return "NullEnvironmentServer";
}
public long getTime() {
return System.currentTimeMillis();
}
public boolean isTradingBlackout(long time) {
return false;
}
public String nextUniqueId() {
return "";
}
public void setTime(long time) {
}
public void sleep(long ms) {
}
}