/** * Removes the context from the context config items * * @param contextCfgItemName */ @Deprecated @InterfaceAudience.LimitedPrivate({"MapReduce"}) public static void removeContext(String contextCfgItemName) { synchronized (contexts) { contexts.remove(contextCfgItemName); } }
@InterfaceStability.Unstable @InterfaceAudience.LimitedPrivate({"HDFS"}) public final void abortResponse(Throwable t) throws IOException { // don't send response if the call was already sent or aborted. if (responseWaitCount.getAndSet(-1) > 0) { doResponse(t); } }
/** * Get a reference to the wrapped input stream. Used by unit tests. * * @return the underlying input stream */ @InterfaceAudience.LimitedPrivate({"HDFS"}) public InputStream getWrappedStream() { return in; }
@KerberosInfo( serverPrincipal=CommonConfigurationKeys.HADOOP_SECURITY_SERVICE_USER_NAME_KEY) @ProtocolInfo( protocolName = "org.apache.hadoop.ipc.GenericRefreshProtocol", protocolVersion = 1) @InterfaceAudience.LimitedPrivate({"HDFS"}) @InterfaceStability.Evolving public interface GenericRefreshProtocolPB extends GenericRefreshProtocolService.BlockingInterface { }
/** * Provide a factory for named daemon threads, * for use in ExecutorServices constructors */ @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) public static class DaemonFactory extends Daemon implements ThreadFactory { @Override public Thread newThread(Runnable runnable) { return new Daemon(runnable); } }
/** * Get a reference to the wrapped output stream. * * @return the underlying output stream */ @InterfaceAudience.LimitedPrivate({"HDFS"}) public OutputStream getWrappedStream() { return wrappedStream; }
/** * A filter provided by the client that determines if a given notification event should be * returned. */ @InterfaceAudience.LimitedPrivate({"HCatalog"}) interface NotificationFilter { /** * Whether a notification event should be accepted * @param event * @return if true, event will be added to list, if false it will be ignored */ boolean accept(NotificationEvent event); }
@InterfaceAudience.LimitedPrivate({"HCATALOG"}) @InterfaceStability.Evolving public PersistenceManager getPersistenceManager() { return PersistenceManagerProvider.getPersistenceManager(); }
@InterfaceAudience.LimitedPrivate({"HCatalog"}) @Override public CurrentNotificationEventId getCurrentNotificationEventId() throws TException { return client.get_current_notificationEventId(); }
/** * Get the number of events from given eventID for the input database. * @return number of events * @throws TException */ @InterfaceAudience.LimitedPrivate({"HCatalog"}) NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) throws TException;
@InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) @Override public void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException { client.add_write_notification_log(rqst); }
@InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) @Override public FireEventResponse fireListenerEvent(FireEventRequest rqst) throws TException { if (!rqst.isSetCatName()) { rqst.setCatName(getDefaultCatalog(conf)); } return client.fire_listener_event(rqst); }
@InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) @Override public FireEventResponse fireListenerEvent(FireEventRequest rqst) throws TException { return client.fire_listener_event(rqst); }
/** * Get the last used notification event id. * @return last used id * @throws TException */ @InterfaceAudience.LimitedPrivate({"HCatalog"}) CurrentNotificationEventId getCurrentNotificationEventId() throws TException;
/** * Add a event related to write operations in an ACID table. * @param rqst message containing information for acid write operation. * @throws TException */ @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException;
/** * Request that the metastore fire an event. Currently this is only supported for DML * operations, since the metastore knows when DDL operations happen. * @param request * @return response, type depends on type of request * @throws TException */ @InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) FireEventResponse fireListenerEvent(FireEventRequest request) throws TException;
@InterfaceAudience.LimitedPrivate({"HCatalog"}) @Override public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) throws TException { if (!rqst.isSetCatName()) { rqst.setCatName(getDefaultCatalog(conf)); } return client.get_notification_events_count(rqst); }
@InterfaceAudience.LimitedPrivate({"HCatalog"}) @Override public CurrentNotificationEventId getCurrentNotificationEventId() throws TException { return client.get_current_notificationEventId(); }
@InterfaceAudience.LimitedPrivate({"Apache Hive, HCatalog"}) @Override public void addWriteNotificationLog(WriteNotificationLogRequest rqst) throws TException { client.add_write_notification_log(rqst); }
@InterfaceAudience.LimitedPrivate({"HCatalog"}) @Override public NotificationEventsCountResponse getNotificationEventsCount(NotificationEventsCountRequest rqst) throws TException { return client.get_notification_events_count(rqst); }