-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
534 additions
and
33 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
jans-config-api/common/src/main/java/io/jans/configapi/model/status/FacterData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
package io.jans.configapi.model.status; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "memoryfree", "swapfree", "hostname", "ipaddress", "uptime", "free_disk_space", "load_average" }) | ||
public class FacterData { | ||
|
||
@JsonProperty("memoryfree") | ||
private String memoryfree; | ||
|
||
@JsonProperty("swapfree") | ||
private String swapfree; | ||
|
||
@JsonProperty("hostname") | ||
private String hostname; | ||
|
||
@JsonProperty("ipaddress") | ||
private String ipaddress; | ||
|
||
@JsonProperty("uptime") | ||
private String uptime; | ||
|
||
@JsonProperty("free_disk_space") | ||
private String freeDiskSpace; | ||
|
||
@JsonProperty("load_average") | ||
private String loadAverage; | ||
|
||
|
||
@JsonProperty("memoryfree") | ||
public String getMemoryfree() { | ||
return memoryfree; | ||
} | ||
|
||
@JsonProperty("memoryfree") | ||
public void setMemoryfree(String memoryfree) { | ||
this.memoryfree = memoryfree; | ||
} | ||
|
||
@JsonProperty("swapfree") | ||
public String getSwapfree() { | ||
return swapfree; | ||
} | ||
|
||
@JsonProperty("swapfree") | ||
public void setSwapfree(String swapfree) { | ||
this.swapfree = swapfree; | ||
} | ||
|
||
@JsonProperty("hostname") | ||
public String getHostname() { | ||
return hostname; | ||
} | ||
|
||
@JsonProperty("hostname") | ||
public void setHostname(String hostname) { | ||
this.hostname = hostname; | ||
} | ||
|
||
@JsonProperty("ipaddress") | ||
public String getIpaddress() { | ||
return ipaddress; | ||
} | ||
|
||
@JsonProperty("ipaddress") | ||
public void setIpaddress(String ipaddress) { | ||
this.ipaddress = ipaddress; | ||
} | ||
|
||
@JsonProperty("uptime") | ||
public String getUptime() { | ||
return uptime; | ||
} | ||
|
||
@JsonProperty("uptime") | ||
public void setUptime(String uptime) { | ||
this.uptime = uptime; | ||
} | ||
|
||
@JsonProperty("free_disk_space") | ||
public String getFreeDiskSpace() { | ||
return freeDiskSpace; | ||
} | ||
|
||
@JsonProperty("free_disk_space") | ||
public void setFreeDiskSpace(String freeDiskSpace) { | ||
this.freeDiskSpace = freeDiskSpace; | ||
} | ||
|
||
@JsonProperty("load_average") | ||
public String getLoadAverage() { | ||
return loadAverage; | ||
} | ||
|
||
@JsonProperty("load_average") | ||
public void setLoadAverage(String loadAverage) { | ||
this.loadAverage = loadAverage; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "FacterData [memoryfree=" + memoryfree + ", swapfree=" + swapfree + ", hostname=" + hostname | ||
+ ", ipaddress=" + ipaddress + ", uptime=" + uptime + ", freeDiskSpace=" + freeDiskSpace | ||
+ ", loadAverage=" + loadAverage + "]"; | ||
} | ||
|
||
} |
51 changes: 51 additions & 0 deletions
51
jans-config-api/common/src/main/java/io/jans/configapi/model/status/StatsData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package io.jans.configapi.model.status; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
import java.util.Date; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "dbType", "lastUpdate", "facterData", }) | ||
public class StatsData { | ||
|
||
@JsonProperty("dbType") | ||
private String dbType; | ||
|
||
@JsonProperty("lastUpdate") | ||
private Date lastUpdate; | ||
|
||
@JsonProperty("facterData") | ||
private FacterData facterData; | ||
|
||
public String getDbType() { | ||
return dbType; | ||
} | ||
|
||
public void setDbType(String dbType) { | ||
this.dbType = dbType; | ||
} | ||
|
||
public Date getLastUpdate() { | ||
return lastUpdate; | ||
} | ||
|
||
public void setLastUpdate(Date lastUpdate) { | ||
this.lastUpdate = lastUpdate; | ||
} | ||
|
||
public FacterData getFacterData() { | ||
return facterData; | ||
} | ||
|
||
public void setFacterData(FacterData facterData) { | ||
this.facterData = facterData; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "StatsData [dbType=" + dbType + ", lastUpdate=" + lastUpdate + ", facterData=" + facterData + "]"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.