Class NoopChatHandlerProvider
- java.lang.Object
-
- org.apache.druid.segment.realtime.firehose.NoopChatHandlerProvider
-
- All Implemented Interfaces:
ChatHandlerProvider
public class NoopChatHandlerProvider extends Object implements ChatHandlerProvider
-
-
Constructor Summary
Constructors Constructor Description NoopChatHandlerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Optional<ChatHandler>get(String key)Retrieves a chat handler.voidregister(String key, ChatHandler handler)Registers a chat handler which provides an API for others to talk to objects in the indexing service.voidregister(String key, ChatHandler handler, boolean announce)Registers a chat handler which provides an API for others to talk to objects in the indexing service.voidunregister(String key)Unregisters a chat handler.
-
-
-
Method Detail
-
register
public void register(String key, ChatHandler handler)
Description copied from interface:ChatHandlerProviderRegisters a chat handler which provides an API for others to talk to objects in the indexing service. Depending on the implementation, this method may also announce this node so that it can be discovered by other services.- Specified by:
registerin interfaceChatHandlerProvider- Parameters:
key- a unique name identifying this servicehandler- instance which implements the API to be exposed
-
register
public void register(String key, ChatHandler handler, boolean announce)
Description copied from interface:ChatHandlerProviderRegisters a chat handler which provides an API for others to talk to objects in the indexing service. Setting announce to false instructs the implementation to only register the handler to expose the API and skip any discovery announcements that might have been broadcast.- Specified by:
registerin interfaceChatHandlerProvider- Parameters:
key- a unique name identifying this servicehandler- instance which implements the API to be exposedannounce- for implementations that have a service discovery mechanism, whether this node should be announced
-
unregister
public void unregister(String key)
Description copied from interface:ChatHandlerProviderUnregisters a chat handler.- Specified by:
unregisterin interfaceChatHandlerProvider- Parameters:
key- the name of the service
-
get
public com.google.common.base.Optional<ChatHandler> get(String key)
Description copied from interface:ChatHandlerProviderRetrieves a chat handler.- Specified by:
getin interfaceChatHandlerProvider- Parameters:
key- the name of the service
-
-