Universal Messaging 9.7 | Administration Guide | Universal Messaging Enterprise Manager | Administration Using Enterprise Manager | Scheduling | Universal Messaging Scheduling : Realm Triggers Example
 
Universal Messaging Scheduling : Realm Triggers Example

scheduler realmSchedule {

declare Realm myRealm ("productionmaster");
declare Config myGlobalConfig ( "GlobalValues");

when (Realm.connections> 1000) {

Logger.report("Reached 1000 connections, setting max connections");
myGlobalConfig.MaxNoOfConnections(1000);

}

when (Realm.eventsSentPerSecond> 10000) {

Logger.report("Reached 10000 events per second, reducing max connection count by 100");
myGlobalConfig.MaxNoOfConnections("-100");

}


}

Copyright © 2013-2015 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.