source: trunk/src/test/java/omq/test/calculator/Calculator.java @ 47

Last change on this file since 47 was 47, checked in by stoda, 11 years ago

Refactoring Environment class - deleted.
StopBroker? problems solved (?)
Server can receive send and receive messages in different formats.
Some tests modified

TODO: finish all the tests, add log4j

File size: 622 bytes
Line 
1package omq.test.calculator;
2
3import java.io.IOException;
4
5import omq.Remote;
6import omq.client.annotation.AsyncMethod;
7import omq.client.annotation.RemoteInterface;
8import omq.client.annotation.SyncMethod;
9import omq.exception.SerializerException;
10
11@RemoteInterface
12public interface Calculator extends Remote {
13        @SyncMethod(timeout = 1500)
14        public int add(int x, int y);
15
16        @AsyncMethod
17        public void mult(int x, int y);
18
19        @AsyncMethod
20        public void sendMessage(Message m);
21
22        @AsyncMethod
23        public void asyncDivideByZero() throws IOException, SerializerException;
24
25        @SyncMethod(timeout = 1500)
26        public int divideByZero();
27
28}
Note: See TracBrowser for help on using the repository browser.