StateStoreCache@Private @Evolving public class MembershipStoreImpl extends MembershipStore implements StateStoreCache
MembershipStore State Store API.| Constructor | Description |
|---|---|
MembershipStoreImpl(StateStoreDriver driver) |
| Modifier and Type | Method | Description |
|---|---|---|
GetNamenodeRegistrationsResponse |
getExpiredNamenodeRegistrations(GetNamenodeRegistrationsRequest request) |
Get the expired registrations from the registration cache.
|
GetNamenodeRegistrationsResponse |
getNamenodeRegistrations(GetNamenodeRegistrationsRequest request) |
Queries for a single cached registration entry matching the given
parameters.
|
GetNamespaceInfoResponse |
getNamespaceInfo(GetNamespaceInfoRequest request) |
Retrieves a list of registered nameservices and their associated info.
|
boolean |
loadCache(boolean force) |
Load the cache from the State Store.
|
NamenodeHeartbeatResponse |
namenodeHeartbeat(NamenodeHeartbeatRequest request) |
Inserts or updates a namenode membership entry into the table.
|
UpdateNamenodeRegistrationResponse |
updateNamenodeRegistration(UpdateNamenodeRegistrationRequest request) |
Overrides a cached namenode state with an updated state.
|
getCachedRecords, getCachedRecordsAndTimeStamp, overrideExpiredRecord, overrideExpiredRecordsgetDriver, getRecordClass, newInstancepublic MembershipStoreImpl(StateStoreDriver driver)
public GetNamenodeRegistrationsResponse getExpiredNamenodeRegistrations(GetNamenodeRegistrationsRequest request) throws java.io.IOException
MembershipStoregetExpiredNamenodeRegistrations in class MembershipStorerequest - Request to get the expired registrations.StateStoreUnavailableException - Throws exception if the data store
is not initialized.java.io.IOException - if the data store could not be queried or the query is
invalid.public GetNamespaceInfoResponse getNamespaceInfo(GetNamespaceInfoRequest request) throws java.io.IOException
MembershipStoregetNamespaceInfo in class MembershipStorerequest - Request to get the name spaces.java.io.IOException - if the data store could not be queried or the query is
invalid.public GetNamenodeRegistrationsResponse getNamenodeRegistrations(GetNamenodeRegistrationsRequest request) throws java.io.IOException
MembershipStoregetNamenodeRegistrations in class MembershipStorerequest - Fully populated GetNamenodeRegistrationsRequest request.StateStoreUnavailableException - Throws exception if the data store
is not initialized.java.io.IOException - if the data store could not be queried or the query is
invalid.public NamenodeHeartbeatResponse namenodeHeartbeat(NamenodeHeartbeatRequest request) throws java.io.IOException
MembershipStorenamenodeHeartbeat in class MembershipStorerequest - Fully populated NamenodeHeartbeatRequest request.StateStoreUnavailableException - Throws exception if the data store
is not initialized.java.io.IOException - if the data store could not be queried or the query is
invalid.public boolean loadCache(boolean force)
throws java.io.IOException
StateStoreCacheloadCache in interface StateStoreCacheloadCache in class CachedRecordStore<MembershipState>force - If we force the load.java.io.IOException - If there was an error loading the cache.public UpdateNamenodeRegistrationResponse updateNamenodeRegistration(UpdateNamenodeRegistrationRequest request) throws java.io.IOException
MembershipStoreupdateNamenodeRegistration in class MembershipStorerequest - Fully populated OverrideNamenodeRegistrationRequest request.StateStoreUnavailableException - if the data store is not
initialized.java.io.IOException - if the data store could not be queried or the query is
invalid.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.