source: references/src/main/java/geniusweb/serverobjects/ServerInfo.java@ 52

Last change on this file since 52 was 52, checked in by ruud, 14 months ago

Fixed small issues in domaineditor.

File size: 725 bytes
Line 
1package geniusweb.serverobjects;
2
3import com.fasterxml.jackson.annotation.JsonAutoDetect;
4import 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)
10public 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.