Add remote control configurations as remove unused methods

revert-70aa11f8
warunalakshitha 7 years ago
parent 22fac48873
commit 2313928741

@ -33,8 +33,7 @@ public class RemoteSessionConfiguration {
private int maxTotalHTTPConnections; private int maxTotalHTTPConnections;
private int maxMessagesPerSecond; private int maxMessagesPerSecond;
private int sessionIdleTimeOut; private int sessionIdleTimeOut;
private int maxSessionDuration; private int maxMessageBufferSize;
private int sessionBufferSize;
public void setRemoteSessionServerUrl(String remoteSessionServerUrl) { public void setRemoteSessionServerUrl(String remoteSessionServerUrl) {
this.remoteSessionServerUrl = remoteSessionServerUrl; this.remoteSessionServerUrl = remoteSessionServerUrl;
@ -113,30 +112,17 @@ public class RemoteSessionConfiguration {
this.sessionIdleTimeOut = 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 * Maximum session buffer size in kilo bytes
* @return * @return
*/ */
@XmlElement(name = "SessionBufferSize", required = true, defaultValue = "640") @XmlElement(name = "MaximumMessageBufferSize", required = true, defaultValue = "640")
public int getSessionBufferSize() { public int getMaxMessageBufferSize() {
return sessionBufferSize; return maxMessageBufferSize;
} }
public void setSessionBufferSize(int sessionBufferSize) { public void setMaxMessageBufferSize(int MaxMessageBufferSize) {
this.sessionBufferSize = sessionBufferSize; this.maxMessageBufferSize = MaxMessageBufferSize;
} }
} }

@ -103,8 +103,7 @@
<MaximumTotalHTTPConnections>100</MaximumTotalHTTPConnections> <MaximumTotalHTTPConnections>100</MaximumTotalHTTPConnections>
<MaximumMessagesPerSecond>20</MaximumMessagesPerSecond> <MaximumMessagesPerSecond>20</MaximumMessagesPerSecond>
<SessionIdleTimeOut>15</SessionIdleTimeOut> <SessionIdleTimeOut>15</SessionIdleTimeOut>
<MaximumSessionDuration>60</MaximumSessionDuration> <MaximumMessageBufferSize>640</MaximumMessageBufferSize>
<SessionBufferSize>640</SessionBufferSize>
</RemoteSessionConfiguration> </RemoteSessionConfiguration>
<DefaultGroupsConfiguration>BYOD,COPE</DefaultGroupsConfiguration> <DefaultGroupsConfiguration>BYOD,COPE</DefaultGroupsConfiguration>
</DeviceMgtConfiguration> </DeviceMgtConfiguration>

@ -46,6 +46,11 @@
<AdminUsername>admin</AdminUsername> <AdminUsername>admin</AdminUsername>
<AdminPassword>admin</AdminPassword> <AdminPassword>admin</AdminPassword>
</IdentityConfiguration> </IdentityConfiguration>
<KeyManagerConfiguration>
<ServerUrl>https://localhost:9443</ServerUrl>
<AdminUsername>admin</AdminUsername>
<AdminPassword>admin</AdminPassword>
</KeyManagerConfiguration>
<PolicyConfiguration> <PolicyConfiguration>
<MonitoringClass>org.wso2.carbon.policy.mgt</MonitoringClass> <MonitoringClass>org.wso2.carbon.policy.mgt</MonitoringClass>
<MonitoringEnable>true</MonitoringEnable> <MonitoringEnable>true</MonitoringEnable>
@ -91,6 +96,16 @@
<isEnabled>false</isEnabled> <isEnabled>false</isEnabled>
<PublishOperationResponse>false</PublishOperationResponse> <PublishOperationResponse>false</PublishOperationResponse>
</OperationAnalyticsConfiguration> </OperationAnalyticsConfiguration>
<!--This configuration used to configure the options for remote device control feature -->
<RemoteSessionConfiguration>
<Enabled>true</Enabled>
<RemoteSessionServerUrl>wss://localhost:9443</RemoteSessionServerUrl>
<MaximumHTTPConnectionPerHost>2</MaximumHTTPConnectionPerHost>
<MaximumTotalHTTPConnections>100</MaximumTotalHTTPConnections>
<MaximumMessagesPerSecond>20</MaximumMessagesPerSecond>
<SessionIdleTimeOut>15</SessionIdleTimeOut>
<MaximumMessageBufferSize>640</MaximumMessageBufferSize>
</RemoteSessionConfiguration>
<DefaultGroupsConfiguration>BYOD,COPE</DefaultGroupsConfiguration> <DefaultGroupsConfiguration>BYOD,COPE</DefaultGroupsConfiguration>
</DeviceMgtConfiguration> </DeviceMgtConfiguration>

Loading…
Cancel
Save