McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 740

↗ View in doc context
page
740
source
cucm/v15/jtapi-dev-guide/jtapi-dev-guide.md
chunk_id
cucm::v15::jtapi-dev-guide::jtapi-dev-guide::742

• ConditionalTraceImpl, on page 735 • UnconditionalTraceImpl, on page 736 • TraceManagerImpl, on page 737 • TraceWriterManagerImpl, on page 741 Alarm Class Hierarchy The following class hierarchy is contained in the com.cisco.services.alarm package. java.lang.Object com.cisco.services.alarm.AlarmManager, on page 676 com.cisco.services.alarm.DefaultAlarm, on page 680 (implements com.cisco.services.alarm.Alarm) com.cisco.services.alarm.DefaultAlarmWriter, on page 682 (implements com.cisco.services.alarm.AlarmWriter, on page 693) com.cisco.services.alarm.ParameterList, on page 686 AlarmManager The AlarmManager is used to create Alarm objects. The AlarmManager is created with a facility and AlarmService hostname and port. All alarms created by the factory will be associated with this facility. This class also maintains a reference to a single AlarmWriter that can be used system wide. An application can make use of this AlarmWriter. AlarmManager exposes a default implementation of an AlarmWriter. Applications can override this with a user defined implementation of their own AlarmWriter. Usage AlarmManager AlarmManager = new AlarmManager(facilityName, alarmServiceHost, alarmServicePort, debugTrace, errorTrace); Alarms are created by the factory by supplying the alarmName (mnemonic), subfacility and severity Alarms can be cached for use in different parts of the application. During a send alarm applications can specify the variable parameters that offer specific information to the AlarmService. Usage Typically applications will maintain their own AlarmManager instance. Applications will also have to set a debug and error trace to enable the alarm tracing to also be sent to the existing trace destinations. Setup the manager and writer classes: AlarmWriter alarmWriter = new DefaultAlarmWriter(port, alarmServiceHost); AlarmManager alarmManager = new AlarmManager(“AA_IVR”, alarmWriter, debugTrace, errorTrace); Generating the Alarms: create an alarm for the subfacility and a default severity. Alarm alarm = alarmManager.createAlarm(“HTTPSS”, Alarm.INFORMATIONAL); alarm.send(“090T”) sends the alarm with the mnemonic alarm.send(“090T”, “Port is stuck”, “CTIPort01”) or with a mnemonic and parameter Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs 676 Cisco Unified JTAPI Alarms and Services Alarm Class Hierarchy