@NotThreadSafe public abstract class ListenerEvent extends Object
Constructor and Description |
---|
ListenerEvent(boolean status,
HiveMetaStore.HMSHandler handler) |
Modifier and Type | Method and Description |
---|---|
EnvironmentContext |
getEnvironmentContext() |
HiveMetaStore.HMSHandler |
getHandler() |
Map<String,String> |
getParameters()
Return all parameters of the listener event.
|
boolean |
getStatus() |
void |
putParameter(String name,
String value)
Put a new parameter to the listener event.
|
void |
putParameters(Map<String,String> parameters)
Put a new set the parameters to the listener event.
|
void |
setEnvironmentContext(EnvironmentContext environmentContext)
Set the environment context of the event.
|
public ListenerEvent(boolean status, HiveMetaStore.HMSHandler handler)
public boolean getStatus()
public void setEnvironmentContext(EnvironmentContext environmentContext)
environmentContext
- An EnvironmentContext object that contains environment parameters sent from
the HMS client.public EnvironmentContext getEnvironmentContext()
public HiveMetaStore.HMSHandler getHandler()
public final Map<String,String> getParameters()
public void putParameter(String name, String value)
name
- Name of the parameter.value
- Value of the parameter.IllegalStateException
- if a parameter already exists.public void putParameters(Map<String,String> parameters)
parameters
- A Map object with the a set of parameters.IllegalStateException
- if a parameter already exists.Copyright © 2021 The Apache Software Foundation. All rights reserved.