Class AbstractComponent<ConfT extends ComponentConfiguration>
- java.lang.Object
-
- org.apache.bookkeeper.common.component.AbstractComponent<ConfT>
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
AbstractLifecycleComponent
public abstract class AbstractComponent<ConfT extends ComponentConfiguration> extends java.lang.Object implements java.lang.AutoCloseable
The base class represents a component.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
componentName
protected ConfT
conf
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractComponent(java.lang.String name, ConfT conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfT
getConf()
java.lang.String
getName()
-
-
-
Field Detail
-
componentName
protected final java.lang.String componentName
-
conf
protected final ConfT extends ComponentConfiguration conf
-
-
Constructor Detail
-
AbstractComponent
protected AbstractComponent(java.lang.String name, ConfT conf)
-
-
Method Detail
-
getConf
public ConfT getConf()
-
getName
public java.lang.String getName()
-
-