public class DroolsNorthbounderManager extends Object implements Northbounder, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Constructor and Description |
---|
DroolsNorthbounderManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
After properties set.
|
void |
destroy()
Destroy.
|
String |
getName()
Gets the name.
|
boolean |
isReady()
Used to determine if the northbounder is ready to accept alarms.
|
void |
onAlarm(NorthboundAlarm alarm)
On alarm.
|
void |
reloadConfig()
Reloads the configuration.
|
void |
start()
Start.
|
void |
stop()
Stop.
|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- the exceptionpublic void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
- the exceptionpublic void start() throws NorthbounderException
start
in interface Northbounder
NorthbounderException
- the northbounder exceptionpublic boolean isReady()
Northbounder
NorthboundAlarm
s.
This method is called once after northbounder is registered and started.
If the status were to change sometime after, the northbounder must re-register itself.isReady
in interface Northbounder
true
if the northbounder is ready to accept alarms, false
otherwise.public void onAlarm(NorthboundAlarm alarm) throws NorthbounderException
onAlarm
in interface Northbounder
alarm
- the alarmNorthbounderException
- the northbounder exceptionpublic void stop() throws NorthbounderException
stop
in interface Northbounder
NorthbounderException
- the northbounder exceptionpublic String getName()
getName
in interface Northbounder
public void reloadConfig() throws NorthbounderException
reloadConfig
in interface Northbounder
NorthbounderException
Copyright © 2018. All rights reserved.