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