@InterfaceAudience.Private public class MetaStoreListenerNotifier extends Object
Constructor and Description |
---|
MetaStoreListenerNotifier() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
notifyEvent(List<MetaStoreEventListener> listeners,
EventMessage.EventType eventType,
ListenerEvent event)
Notify a list of listeners about a specific metastore event.
|
static Map<String,String> |
notifyEvent(List<MetaStoreEventListener> listeners,
EventMessage.EventType eventType,
ListenerEvent event,
EnvironmentContext environmentContext)
Notify a list of listeners about a specific metastore event.
|
static Map<String,String> |
notifyEvent(List<MetaStoreEventListener> listeners,
EventMessage.EventType eventType,
ListenerEvent event,
EnvironmentContext environmentContext,
Map<String,String> parameters,
RawStore ms)
Notify a list of listeners about a specific metastore event.
|
public static Map<String,String> notifyEvent(List<MetaStoreEventListener> listeners, EventMessage.EventType eventType, ListenerEvent event) throws MetaException
listeners
- List of MetaStoreEventListener listeners.eventType
- Type of the notification event.event
- The ListenerEvent with information about the event.MetaException
- If an error occurred while calling the listeners.public static Map<String,String> notifyEvent(List<MetaStoreEventListener> listeners, EventMessage.EventType eventType, ListenerEvent event, EnvironmentContext environmentContext) throws MetaException
listeners
- List of MetaStoreEventListener listeners.eventType
- Type of the notification event.event
- The ListenerEvent with information about the event.environmentContext
- An EnvironmentContext object with parameters sent by the HMS client.MetaException
- If an error occurred while calling the listeners.public static Map<String,String> notifyEvent(List<MetaStoreEventListener> listeners, EventMessage.EventType eventType, ListenerEvent event, EnvironmentContext environmentContext, Map<String,String> parameters, RawStore ms) throws MetaException
listeners
- List of MetaStoreEventListener listeners.eventType
- Type of the notification event.event
- The ListenerEvent with information about the event.environmentContext
- An EnvironmentContext object with parameters sent by the HMS client.parameters
- A list of key/value pairs with the new parameters to add.ms
- The RawStore object from where to check if a transaction is active.MetaException
- If an error occurred while calling the listeners.Copyright © 2021 The Apache Software Foundation. All rights reserved.