Last change
on this file since 52 was
38,
checked in by stoda, 11 years ago
|
Remote exception added
todo: change throws Exception to Throwable since it seems that NoSuchMethodException? does not inherit from Exception...
|
File size:
647 bytes
|
Line | |
---|
1 | package exceptionTest; |
---|
2 | |
---|
3 | import omq.server.RemoteObject; |
---|
4 | |
---|
5 | public class OmqServerImpl extends RemoteObject implements ServerInterface { |
---|
6 | /** |
---|
7 | * |
---|
8 | */ |
---|
9 | private static final long serialVersionUID = 1L; |
---|
10 | private int numWheels; |
---|
11 | private int hp; |
---|
12 | private int price; |
---|
13 | |
---|
14 | @Override |
---|
15 | public void addWheels(int numWheels) { |
---|
16 | this.numWheels = numWheels; |
---|
17 | } |
---|
18 | |
---|
19 | @Override |
---|
20 | public void addHp(int hp) { |
---|
21 | this.hp = hp; |
---|
22 | } |
---|
23 | |
---|
24 | @Override |
---|
25 | public int getHp() { |
---|
26 | return hp; |
---|
27 | } |
---|
28 | |
---|
29 | @Override |
---|
30 | public int getWheels() { |
---|
31 | return numWheels; |
---|
32 | } |
---|
33 | |
---|
34 | @Override |
---|
35 | public void setPrice(int price) { |
---|
36 | this.price = price; |
---|
37 | } |
---|
38 | |
---|
39 | @Override |
---|
40 | public int getPrice() { |
---|
41 | return price; |
---|
42 | } |
---|
43 | |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.