Last change
on this file since 53 was 52, checked in by ruud, 22 months ago |
Fixed small issues in domaineditor.
|
File size:
725 bytes
|
Line | |
---|
1 | package geniusweb.serverobjects;
|
---|
2 |
|
---|
3 | import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
---|
4 | import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Contains general info abotu this server
|
---|
8 | */
|
---|
9 | @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
|
---|
10 | public class ServerInfo {
|
---|
11 | private final Integer freeSlots;
|
---|
12 | private final Integer totalSlots;
|
---|
13 |
|
---|
14 | public ServerInfo(int free, int total) {
|
---|
15 | this.freeSlots = free;
|
---|
16 | this.totalSlots = total;
|
---|
17 | }
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * @return currently free slots
|
---|
21 | */
|
---|
22 | public Integer getFree() {
|
---|
23 | return freeSlots;
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | *
|
---|
28 | * @return total available slots.
|
---|
29 | */
|
---|
30 | public Integer getTotal() {
|
---|
31 | return totalSlots;
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.