public class AcsSourceClient
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAlarmSourceListener(SourceListener listener)
Add a listener to receive source alarms
|
void |
addListener(AlarmCategoryListener listener)
Add a category listener
|
void |
connect()
Connect to alarm SourceClient and start sending alarms to the
listeners
|
DAL |
getCDB() |
ContainerServices |
getContainerServices() |
static AcsSourceClient |
getInstance()
This is the factory of the singleton
|
java.util.logging.Logger |
getLogger() |
void |
removeAlarmSourceListener(SourceListener listener)
Remove a listener of source alarms
|
void |
removeListener(AlarmCategoryListener listener)
Remove a category listener
|
static void |
shutdown() |
public static AcsSourceClient getInstance() throws java.lang.Exception
java.lang.Exception - If the connection with the manager failedpublic ContainerServices getContainerServices()
public DAL getCDB()
throws AcsJContainerServicesEx
java.lang.Exception - In case of error getting the CDB from the ContainerServicesAcsJContainerServicesExpublic java.util.logging.Logger getLogger()
public void connect()
throws java.lang.Exception
java.lang.Exception - In case of failure connecting the SourceClient to the
source NCpublic void addAlarmSourceListener(SourceListener listener)
listener - The listener receiving source alarmspublic void removeAlarmSourceListener(SourceListener listener)
listener - The listener of source alarms to removepublic static void shutdown()
public void addListener(AlarmCategoryListener listener)
listener - The listenerpublic void removeListener(AlarmCategoryListener listener)
listener - The listener