public class JMSSLAEventListener extends SLAEventListener
| Constructor and Description |
|---|
JMSSLAEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the listener
|
String |
getTopic(org.apache.oozie.client.event.SLAEvent event) |
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the listener
|
void |
onDurationMet(org.apache.oozie.client.event.SLAEvent event)
on SLA job duration limit met
|
void |
onDurationMiss(org.apache.oozie.client.event.SLAEvent event)
on SLA job duration limit missed
|
void |
onEndMet(org.apache.oozie.client.event.SLAEvent event)
on SLA job end-time limit met
|
void |
onEndMiss(org.apache.oozie.client.event.SLAEvent event)
on SLA job end-time limit missed
|
void |
onStartMet(org.apache.oozie.client.event.SLAEvent event)
on SLA job start-time limit met
|
void |
onStartMiss(org.apache.oozie.client.event.SLAEvent event)
on SLA job start-time limit missed
|
protected void |
sendJMSMessage(org.apache.oozie.client.event.message.SLAMessage slaMsg,
String messageBody,
String topicName,
String messageFormat) |
protected void |
sendSLANotification(org.apache.oozie.client.event.SLAEvent event) |
public JMSSLAEventListener()
public void init(org.apache.hadoop.conf.Configuration conf) throws Exception
SLAEventListenerinit in class SLAEventListenerExceptionpublic void onStartMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronStartMiss in class SLAEventListenerpublic void onEndMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronEndMiss in class SLAEventListenerpublic void onDurationMiss(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronDurationMiss in class SLAEventListenerpublic void onStartMet(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronStartMet in class SLAEventListenerpublic void onEndMet(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronEndMet in class SLAEventListenerpublic void onDurationMet(org.apache.oozie.client.event.SLAEvent event)
SLAEventListeneronDurationMet in class SLAEventListenerprotected void sendSLANotification(org.apache.oozie.client.event.SLAEvent event)
protected void sendJMSMessage(org.apache.oozie.client.event.message.SLAMessage slaMsg, String messageBody, String topicName, String messageFormat)
public void destroy()
SLAEventListenerdestroy in class SLAEventListenerCopyright © 2014 Apache Software Foundation. All Rights Reserved.