001: package com.bostechcorp.cbesb.console.common;
002:
003: import com.google.gwt.user.client.rpc.IsSerializable;
004:
005: public class ConsoleUserSettingInfo extends BaseRPCResultInfo implements
006: IsSerializable {
007:
008: public static String COMPONENT_REFRESH_RATE = "ComponentRefreshRate";
009: public static String SA_REFRESH_RATE = "SaRefreshRate";
010: public static String ENDPOINT_STATUS_REFRESH_RATE = "EndpointStatusRefreshRate";
011: public static String STATISTICS_REFRESH_RATE = "StatisticsRefreshRate";
012: public static String ALERTVIEW_REFRESH_RATE = "AlertViewRefreshRate";
013: public static String ERRORDB_PAGE_SIZE = "ErrorDbPageSize";
014: public static String ALERTVIEW_PAGE_SIZE = "AlertViewPageSize";
015: public static String LOGVIEW_NUMOF_LINE = "LogViewerNumOfLine";
016: public static String LOGVIEW_LINE_BUFFER_SIZE = "LogViewerLineBufferSize";
017: public static String SA_IN_ENDPOINTVIEW = "SaInEndpointView";
018: public static String LOG_REFRESH_RATE = "LogRefreshRate";
019:
020: private String componentRefreshRate = "60";
021: private String saRefreshRate = "60";
022: private String endpointStatusRefreshRate = "60";
023: private String statisticsRefreshRate = "60";
024: private String alertViewRefreshRate = "60";
025: private String errorDbPageSize = "25";
026: private String alertViewPageSize = "25";
027: private String logViewerNumOfLine = "25";
028: private String logViewerLineBufferSize = "500";
029: private String saInEndpointView = "one";
030: private String logRefreshRate = "60";
031:
032: private String userId;
033:
034: public ConsoleUserSettingInfo() {
035: super ();
036:
037: }
038:
039: public String getUserId() {
040: return userId;
041: }
042:
043: public void setUserId(String userId) {
044: this .userId = userId;
045: }
046:
047: public String getAlertViewPageSize() {
048: return alertViewPageSize;
049: }
050:
051: public void setAlertViewPageSize(String alertViewPageSize) {
052: this .alertViewPageSize = alertViewPageSize;
053: }
054:
055: public String getAlertViewRefreshRate() {
056: return alertViewRefreshRate;
057: }
058:
059: public void setAlertViewRefreshRate(String alertViewRefreshRate) {
060: this .alertViewRefreshRate = alertViewRefreshRate;
061: }
062:
063: public String getComponentRefreshRate() {
064: return componentRefreshRate;
065: }
066:
067: public void setComponentRefreshRate(String componentRefreshRate) {
068: this .componentRefreshRate = componentRefreshRate;
069: }
070:
071: public String getEndpointStatusRefreshRate() {
072: return endpointStatusRefreshRate;
073: }
074:
075: public void setEndpointStatusRefreshRate(
076: String endpointStatusRefreshRate) {
077: this .endpointStatusRefreshRate = endpointStatusRefreshRate;
078: }
079:
080: public String getErrorDbPageSize() {
081: return errorDbPageSize;
082: }
083:
084: public void setErrorDbPageSize(String errorDbPageSize) {
085: this .errorDbPageSize = errorDbPageSize;
086: }
087:
088: public String getLogViewerLineBufferSize() {
089: return logViewerLineBufferSize;
090: }
091:
092: public void setLogViewerLineBufferSize(
093: String logViewerLineBufferSize) {
094: this .logViewerLineBufferSize = logViewerLineBufferSize;
095: }
096:
097: public String getLogViewerNumOfLine() {
098: return logViewerNumOfLine;
099: }
100:
101: public void setLogViewerNumOfLine(String logViewerNumOfLine) {
102: this .logViewerNumOfLine = logViewerNumOfLine;
103: }
104:
105: public String getSaRefreshRate() {
106: return saRefreshRate;
107: }
108:
109: public void setSaRefreshRate(String saRefreshRate) {
110: this .saRefreshRate = saRefreshRate;
111: }
112:
113: public String getStatisticsRefreshRate() {
114: return statisticsRefreshRate;
115: }
116:
117: public void setStatisticsRefreshRate(String statisticsRefreshRate) {
118: this .statisticsRefreshRate = statisticsRefreshRate;
119: }
120:
121: public String getSaInEndpointView() {
122: return saInEndpointView;
123: }
124:
125: public void setSaInEndpointView(String saInEndpointView) {
126: this .saInEndpointView = saInEndpointView;
127: }
128:
129: public String getLogRefreshRate() {
130: return logRefreshRate;
131: }
132:
133: public void setLogRefreshRate(String logRefreshRate) {
134: this .logRefreshRate = logRefreshRate;
135: }
136:
137: public LogViewProperties getLogViewProperties() {
138: LogViewProperties properties = new LogViewProperties();
139: properties.setBufferSize(Integer.parseInt(this
140: .getLogViewerLineBufferSize()));
141: properties.setNumOfLines(Integer.parseInt(this
142: .getLogViewerNumOfLine()));
143: properties.setInterval(Integer.parseInt(this
144: .getLogRefreshRate()) * 1000);
145: return properties;
146: }
147:
148: }
|