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