|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.service.JMSAccessorService
public class JMSAccessorService
This class will
| Nested Class Summary | |
|---|---|
class |
JMSAccessorService.JMSRetryRunnable
|
| Field Summary | |
|---|---|
static String |
CONF_PREFIX
|
static String |
CONF_RETRY_INITIAL_DELAY
|
static String |
CONF_RETRY_MAX_ATTEMPTS
|
static String |
CONF_RETRY_MULTIPLIER
|
static String |
JMS_CONNECTION_CONTEXT_IMPL
|
static String |
SESSION_OPTS
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
| Constructor Summary | |
|---|---|
JMSAccessorService()
|
|
| Method Summary | |
|---|---|
ConnectionContext |
createConnectionContext(JMSConnectionInfo connInfo)
|
ConnectionContext |
createProducerConnectionContext(JMSConnectionInfo connInfo)
|
void |
destroy()
Destroy the service. |
Class<? extends Service> |
getInterface()
Return the public interface of the service. |
void |
init(Services services)
Initialize the service. |
void |
reestablishConnection(JMSConnectionInfo connInfo)
Reestablish connection for the given JMS connect information |
void |
registerForNotification(JMSConnectionInfo connInfo,
String topic,
MessageHandler msgHandler)
Register for notifications on a JMS topic. |
void |
unregisterFromNotification(JMSConnectionInfo connInfo,
String topic)
Unregister from listening to JMS messages on a topic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONF_PREFIX
public static final String JMS_CONNECTION_CONTEXT_IMPL
public static final String SESSION_OPTS
public static final String CONF_RETRY_INITIAL_DELAY
public static final String CONF_RETRY_MULTIPLIER
public static final String CONF_RETRY_MAX_ATTEMPTS
| Constructor Detail |
|---|
public JMSAccessorService()
| Method Detail |
|---|
public void init(Services services)
throws ServiceException
ServiceService singleton at start up time.
init in interface Serviceservices - services singleton initializing the service.
ServiceException - thrown if the service could not initialize.
public void registerForNotification(JMSConnectionInfo connInfo,
String topic,
MessageHandler msgHandler)
connInfo - Information to connect to a JMS compliant messaging service.topic - Topic in which the JMS messages are publishedmsgHandler - Handler which will process the messages received on the topic
public void unregisterFromNotification(JMSConnectionInfo connInfo,
String topic)
connInfo - Information to connect to the JMS compliant messaging service.topic - Topic in which the JMS messages are publishedpublic ConnectionContext createConnectionContext(JMSConnectionInfo connInfo)
public ConnectionContext createProducerConnectionContext(JMSConnectionInfo connInfo)
public void destroy()
ServiceService singleton at shutdown time.
destroy in interface Servicepublic Class<? extends Service> getInterface()
Service
getInterface in interface Servicepublic void reestablishConnection(JMSConnectionInfo connInfo)
connInfo - JMS connection info
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||