|
|
@ -28,26 +28,116 @@ import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
public class RemoteSessionConfiguration {
|
|
|
|
public class RemoteSessionConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
private String remoteSessionServerUrl;
|
|
|
|
private String remoteSessionServerUrl;
|
|
|
|
private boolean isEnabled;
|
|
|
|
private boolean enabled;
|
|
|
|
|
|
|
|
private int maxHTTPConnectionPerHost;
|
|
|
|
|
|
|
|
private int maxTotalHTTPConnections;
|
|
|
|
|
|
|
|
private int maxMessagesPerSecond;
|
|
|
|
|
|
|
|
private int sessionIdleTimeOut;
|
|
|
|
|
|
|
|
private int maxSessionDuration;
|
|
|
|
|
|
|
|
private int sessionBufferSize;
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(name = "RemoteSessionServerUrl", required = true)
|
|
|
|
|
|
|
|
public void setRemoteSessionServerUrl(String remoteSessionServerUrl) {
|
|
|
|
public void setRemoteSessionServerUrl(String remoteSessionServerUrl) {
|
|
|
|
this.remoteSessionServerUrl = remoteSessionServerUrl;
|
|
|
|
this.remoteSessionServerUrl = remoteSessionServerUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Remote session server url
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "RemoteSessionServerUrl", required = true)
|
|
|
|
public String getRemoteSessionServerUrl() {
|
|
|
|
public String getRemoteSessionServerUrl() {
|
|
|
|
return remoteSessionServerUrl;
|
|
|
|
return remoteSessionServerUrl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public boolean getIsEnabled() {
|
|
|
|
/**
|
|
|
|
return isEnabled;
|
|
|
|
* Remote session enabled
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "Enabled", required = true)
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
|
|
|
|
return enabled;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@XmlElement(name = "isEnabled", required = true)
|
|
|
|
|
|
|
|
public void setEnabled(boolean enabled) {
|
|
|
|
public void setEnabled(boolean enabled) {
|
|
|
|
isEnabled = enabled;
|
|
|
|
this.enabled = enabled;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Maximum connections per host for external http invocations
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "MaximumHTTPConnectionPerHost", required = true, defaultValue = "2")
|
|
|
|
|
|
|
|
public int getMaxHTTPConnectionPerHost() {
|
|
|
|
|
|
|
|
return maxHTTPConnectionPerHost;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMaxHTTPConnectionPerHost(int maxHTTPConnectionPerHost) {
|
|
|
|
|
|
|
|
this.maxHTTPConnectionPerHost = maxHTTPConnectionPerHost;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Maximum total connections for external http invocation
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "MaximumTotalHTTPConnections", required = true, defaultValue = "100")
|
|
|
|
|
|
|
|
public int getMaxTotalHTTPConnections() {
|
|
|
|
|
|
|
|
return maxTotalHTTPConnections;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMaxTotalHTTPConnections(int maxTotalHTTPConnections) {
|
|
|
|
|
|
|
|
this.maxTotalHTTPConnections = maxTotalHTTPConnections;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* This is for protect device from message spamming. Throttling limit in term of messages for device
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "MaximumMessagesPerSecond", required = true, defaultValue = "10")
|
|
|
|
|
|
|
|
public int getMaxMessagesPerSession() {
|
|
|
|
|
|
|
|
return maxMessagesPerSecond;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMaxMessagesPerSession(int maxMessagesPerSession) {
|
|
|
|
|
|
|
|
this.maxMessagesPerSecond = maxMessagesPerSession;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Maximum idle timeout in minutes
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "SessionIdleTimeOut", required = true, defaultValue = "5")
|
|
|
|
|
|
|
|
public int getSessionIdleTimeOut() {
|
|
|
|
|
|
|
|
return sessionIdleTimeOut;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setSessionIdleTimeOut(int sessionIdleTimeOut) {
|
|
|
|
|
|
|
|
this.sessionIdleTimeOut = sessionIdleTimeOut;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Maximum session duration in minutes
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "MaximumSessionDuration", required = true, defaultValue = "15")
|
|
|
|
|
|
|
|
public int getMaxSessionDuration() {
|
|
|
|
|
|
|
|
return maxSessionDuration;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setMaxSessionDuration(int maxSessionDuration) {
|
|
|
|
|
|
|
|
this.maxSessionDuration = maxSessionDuration;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Maximum session buffer size in kilo bytes
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@XmlElement(name = "SessionBufferSize", required = true, defaultValue = "640")
|
|
|
|
|
|
|
|
public int getSessionBufferSize() {
|
|
|
|
|
|
|
|
return sessionBufferSize;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setSessionBufferSize(int sessionBufferSize) {
|
|
|
|
|
|
|
|
this.sessionBufferSize = sessionBufferSize;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|