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
Service
Invoked by the Service
singleton at start up time.
init
in interface Service
services
- services singleton initializing the service.ServiceException
- thrown if the service could not initialize.public String getTopic(String jobId) throws JPAExecutorException
jobId
- JPAExecutorException
public String getTopic(AppType appType, String user, String jobId, String parentJobId)
appType
- user
- jobId
- parentJobId
- public Properties getTopicPatternProperties()
public String getTopicPrefix()
public void destroy()
Service
Invoked by the Service
singleton at shutdown time.
public Class<? extends Service> getInterface()
Service
Services are retrieved by its public interface. Specializations of services must return the public interface.
getInterface
in interface Service
Copyright © 2018 Apache Software Foundation. All rights reserved.