Package org.apache.druid.discovery
Class DruidService
- java.lang.Object
-
- org.apache.druid.discovery.DruidService
-
- Direct Known Subclasses:
DataNodeService,LookupNodeService,WorkerNodeService
public abstract class DruidService extends Object
Metadata of a service announced by node. See DataNodeService and LookupNodeService for examples.
-
-
Constructor Summary
Constructors Constructor Description DruidService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetName()booleanisDiscoverable()
-
-
-
Method Detail
-
getName
public abstract String getName()
-
isDiscoverable
public boolean isDiscoverable()
- Returns:
- Whether the service should be discoverable. The default implementation returns true. Some implementations may choose to override this so that the service is not discoverable if it has not been configured. This will not throw a fatal exception, but instead will just skip binding and log a message. This could be useful for optional configuration for the service.
-
-