Interface DatanodeState<T>

All Known Implementing Classes:
InitDatanodeState, RunningDatanodeState

public interface DatanodeState<T>
State Interface that allows tasks to maintain states.
  • Method Summary

    Modifier and Type
    Method
    Description
    await(long time, TimeUnit timeUnit)
    Wait for execute to finish.
    default void
    Clean up some resources.
    void
    Executes one or more tasks that is needed by this state.
    void
    Called before entering this state.
    void
    Called After exiting this state.