001/*
002 * Stallion Core: A Modern Web Framework
003 *
004 * Copyright (C) 2015 - 2016 Stallion Software LLC.
005 *
006 * This program is free software: you can redistribute it and/or modify it under the terms of the
007 * GNU General Public License as published by the Free Software Foundation, either version 2 of
008 * the License, or (at your option) any later version. This program is distributed in the hope that
009 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
011 * License for more details. You should have received a copy of the GNU General Public License
012 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
013 *
014 *
015 *
016 */
017
018package io.stallion.monitoring;
019
020import java.util.Map;
021
022import static io.stallion.utils.Literals.*;
023
024
025public class SystemInformation {
026    private String remoteAddr = "";
027    private String xForwardedFor = "";
028    private String xRealIp = "";
029    private String guessedIp = "";
030    private Map<String, String> jarBuildDates = map();
031    private String instanceHostName = "";
032    private String instanceDomain = "";
033    private String targetPath = "";
034    private String deployDate = "";
035    private int port;
036    private String env;
037    private String xForwardedHost = "";
038    private String guessedHost = "";
039    private String guessedScheme = "";
040    private String xForwardedProto = "";
041    private String xUpstreamForwardedProto = "";
042
043    public String getRemoteAddr() {
044        return remoteAddr;
045    }
046
047    public void setRemoteAddr(String remoteAddr) {
048        this.remoteAddr = remoteAddr;
049    }
050
051    public String getxForwardedFor() {
052        return xForwardedFor;
053    }
054
055    public void setxForwardedFor(String xForwardedFor) {
056        this.xForwardedFor = xForwardedFor;
057    }
058
059    public String getxRealIp() {
060        return xRealIp;
061    }
062
063    public void setxRealIp(String xRealIp) {
064        this.xRealIp = xRealIp;
065    }
066
067    public String getGuessedIp() {
068        return guessedIp;
069    }
070
071    public void setGuessedIp(String guessedIp) {
072        this.guessedIp = guessedIp;
073    }
074
075    public Map<String, String> getJarBuildDates() {
076        return jarBuildDates;
077    }
078
079    public void setJarBuildDates(Map<String, String> jarBuildDates) {
080        this.jarBuildDates = jarBuildDates;
081    }
082
083    public String getInstanceHostName() {
084        return instanceHostName;
085    }
086
087    public void setInstanceHostName(String instanceHostName) {
088        this.instanceHostName = instanceHostName;
089    }
090
091    public String getTargetPath() {
092        return targetPath;
093    }
094
095    public void setTargetPath(String targetPath) {
096        this.targetPath = targetPath;
097    }
098
099    public String getDeployDate() {
100        return deployDate;
101    }
102
103    public void setDeployDate(String deployDate) {
104        this.deployDate = deployDate;
105    }
106
107    public String getInstanceDomain() {
108        return instanceDomain;
109    }
110
111    public void setInstanceDomain(String instanceDomain) {
112        this.instanceDomain = instanceDomain;
113    }
114
115    public int getPort() {
116        return port;
117    }
118
119    public void setPort(int port) {
120        this.port = port;
121    }
122
123    public String getEnv() {
124        return env;
125    }
126
127    public void setEnv(String env) {
128        this.env = env;
129    }
130
131    public String getxForwardedHost() {
132        return xForwardedHost;
133    }
134
135    public void setxForwardedHost(String xForwardedHost) {
136        this.xForwardedHost = xForwardedHost;
137    }
138
139    public String getGuessedHost() {
140        return guessedHost;
141    }
142
143    public SystemInformation setGuessedHost(String guessedHost) {
144        this.guessedHost = guessedHost;
145        return this;
146    }
147
148    public String getGuessedScheme() {
149        return guessedScheme;
150    }
151
152    public SystemInformation setGuessedScheme(String guessedScheme) {
153        this.guessedScheme = guessedScheme;
154        return this;
155    }
156
157    public String getxForwardedProto() {
158        return xForwardedProto;
159    }
160
161    public SystemInformation setxForwardedProto(String xForwardedProto) {
162        this.xForwardedProto = xForwardedProto;
163        return this;
164    }
165
166    public String getxUpstreamForwardedProto() {
167        return xUpstreamForwardedProto;
168    }
169
170    public SystemInformation setxUpstreamForwardedProto(String xUpstreamForwardedProto) {
171        this.xUpstreamForwardedProto = xUpstreamForwardedProto;
172        return this;
173    }
174}