|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.service.HCatAccessorService
public class HCatAccessorService
Field Summary | |
---|---|
static String |
CONF_PREFIX
|
static String |
JMS_CONNECTIONS_PROPERTIES
|
Fields inherited from interface org.apache.oozie.service.Service |
---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
Constructor Summary | |
---|---|
HCatAccessorService()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the service. |
Class<? extends Service> |
getInterface()
Return the public interface of the service. |
JMSConnectionInfo |
getJMSConnectionInfo(URI publisherURI)
Given a publisher host:port return the connection details of JMS server that the publisher publishes to |
void |
init(Services services)
Initialize the service. |
boolean |
isKnownPublisher(URI sourceURI)
Determine whether a given source URI publishes JMS messages |
boolean |
isRegisteredForNotification(org.apache.oozie.util.HCatURI hcatURI)
Check if we are already listening to the JMS topic for the table in the given hcatURI |
void |
registerForNotification(org.apache.oozie.util.HCatURI hcatURI,
String topic,
HCatMessageHandler msgHandler)
Register for notifications on a JMS topic for the specified hcatalog table. |
void |
unregisterFromNotification(org.apache.oozie.util.HCatURI hcatURI)
|
void |
unregisterFromNotification(String server,
String database,
String table)
|
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_CONNECTIONS_PROPERTIES
Constructor Detail |
---|
public HCatAccessorService()
Method Detail |
---|
public void init(Services services) throws ServiceException
Service
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 boolean isKnownPublisher(URI sourceURI)
sourceURI
- URI of the publisher
public JMSConnectionInfo getJMSConnectionInfo(URI publisherURI)
publisherURI
- URI of the publisher
public boolean isRegisteredForNotification(org.apache.oozie.util.HCatURI hcatURI)
hcatURI
- hcatalog partition URI
public void registerForNotification(org.apache.oozie.util.HCatURI hcatURI, String topic, HCatMessageHandler msgHandler)
hcatURI
- hcatalog partition URItopic
- JMS topic to register tomsgHandler
- Handler which will process the messages received on the topicpublic void unregisterFromNotification(org.apache.oozie.util.HCatURI hcatURI)
public void unregisterFromNotification(String server, String database, String table)
public void destroy()
Service
Service
singleton at shutdown time.
destroy
in interface Service
public Class<? extends Service> getInterface()
Service
getInterface
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |