public class JMSTopicService extends java.lang.Object implements Service
| Modifier and Type | Class and Description |
|---|---|
static class |
JMSTopicService.JobType |
static class |
JMSTopicService.TopicType |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_PREFIX |
static java.lang.String |
TOPIC_NAME |
static java.lang.String |
TOPIC_PREFIX |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
JMSTopicService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the service.
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
java.lang.String |
getTopic(org.apache.oozie.AppType appType,
java.lang.String user,
java.lang.String jobId,
java.lang.String parentJobId)
Retrieve Topic
|
java.lang.String |
getTopic(java.lang.String jobId)
Retrieve topic from Job id
|
java.util.Properties |
getTopicPatternProperties() |
java.lang.String |
getTopicPrefix() |
void |
init(Services services)
Initialize the service.
|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String TOPIC_NAME
public static final java.lang.String TOPIC_PREFIX
public JMSTopicService()
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 java.lang.String getTopic(java.lang.String jobId) throws JPAExecutorException
jobId - JPAExecutorExceptionpublic java.lang.String getTopic(org.apache.oozie.AppType appType, java.lang.String user, java.lang.String jobId, java.lang.String parentJobId)
appType - user - jobId - parentJobId - public java.util.Properties getTopicPatternProperties()
public java.lang.String getTopicPrefix()
public void destroy()
ServiceService singleton at shutdown time.public java.lang.Class<? extends Service> getInterface()
ServicegetInterface in interface ServiceCopyright © 2019 Apache Software Foundation. All Rights Reserved.