static { pItems = new ScalarProperty("_item", ""); ((ScalarProperty) pItems).multiple = true; ((ScalarProperty) pItems).listSize = 3; pItems.setDisplayText( "Items", "Select two SNMP, Script, or Database monitors to be checked and their results calculated."); pItems.setParameterOptions(true, 1, false); pOperation = new ScalarProperty("_opertaion", ""); pOperation.setDisplayText( "Operation", "Select the operation to be performed on the results of the above monitors. "); pOperation.setParameterOptions(true, 2, false); pRunMonitors = new BooleanProperty("_checkSequentially", ""); pRunMonitors.setDisplayText("Run Monitors", "Run each monitor before performing calculation."); pRunMonitors.setParameterOptions(true, 3, true); pDelay = new NumericProperty("_delay", "0"); pDelay.setDisplayText( "Monitor Delay", "If running each monitor, delay in seconds between monitor runs."); pDelay.setParameterOptions(true, 4, true); pStatic = new StringProperty("_static", ""); pStatic.setDisplayText( "Constant", "Operate a constant on the Operation result. For example entering *8 will multiply the Operation result by 8."); pStatic.setParameterOptions(true, 5, true); pValueLabels = new StringProperty("_valeLabels", ""); pValueLabels.setDisplayText( "Result Label", "Optional label for the result of the formula calculation."); pValueLabels.setParameterOptions(true, 6, true); pResult = new NumericProperty("result"); pResult.setLabel("Result"); pResult.setStateOptions(1); pStatus = new StringProperty("status"); StringProperty astringproperty[] = { pItems, pRunMonitors, pDelay, pOperation, pResult, pStatus, pStatic, pValueLabels }; addProperties("com.dragonflow.StandardMonitor.BandwidthMonitor", astringproperty); addClassElement( "com.dragonflow.StandardMonitor.BandwidthMonitor", Rule.stringToClassifier("status == 'n/a'\terror", true)); addClassElement( "com.dragonflow.StandardMonitor.BandwidthMonitor", Rule.stringToClassifier("always\tgood")); setClassProperty( "com.dragonflow.StandardMonitor.BandwidthMonitor", "description", "Monitor two SNMP, Script, or Database monitors and perform an arithmetic operation on the results."); setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "help", "BandwidthMon.htm"); setClassProperty( "com.dragonflow.StandardMonitor.BandwidthMonitor", "title", "Formula Composite"); setClassProperty( "com.dragonflow.StandardMonitor.BandwidthMonitor", "class", "BandwidthMonitor"); setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "topazName", "Bandwidth"); setClassProperty( "com.dragonflow.StandardMonitor.BandwidthMonitor", "topazType", "System Resources"); setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "target", "_opertaion"); setClassProperty("com.dragonflow.StandardMonitor.BandwidthMonitor", "loadable", "true"); }