@Component public class DefaultSlotManager extends SimpleSlotManager implements SlotManager
Dec 02, 2020
logger| 构造器和说明 |
|---|
DefaultSlotManager() |
DefaultSlotManager(MetaLeaderService metaLeaderService) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doInitialize() |
void |
postConstruct() |
boolean |
refresh(SlotTable slotTable)
The function means to update slot-table if possible(like CAS(xxx, xxx)) return 1. true: if
there were any changes on slot-table (by check whether slot-table epoch getting bigger) 2.
|
SimpleSlotManager |
setNotifiers(List<Notifier> notifiers) |
getDataNodeManagedSlot, getSlotNums, getSlotReplicaNums, getSlotTable, setSlotNums, setSlotReplicasaddObserver, notifyObservers, removeObserverdispose, doDispose, doStart, doStop, getLifecycleState, initialize, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataNodeManagedSlot, getSlotNums, getSlotReplicaNumsgetSlotTableaddObserver, removeObserverinitializedisposegetLifecycleStatepublic DefaultSlotManager()
public DefaultSlotManager(MetaLeaderService metaLeaderService)
@PostConstruct public void postConstruct() throws Exception
Exceptionprotected void doInitialize()
throws InitializeException
doInitialize 在类中 AbstractLifecycleInitializeExceptionpublic boolean refresh(SlotTable slotTable)
SimpleSlotManagerThen, it will notify observers about this slot-table change event
refresh 在接口中 SlotManagerrefresh 在类中 SimpleSlotManagerslotTable - the slot tablepublic SimpleSlotManager setNotifiers(List<Notifier> notifiers)
Copyright © 2023 The Ant Financial. All rights reserved.