Package org.apache.storm.blobstore
Class LocalFsBlobStoreSynchronizer
java.lang.Object
org.apache.storm.blobstore.LocalFsBlobStoreSynchronizer
Is called periodically and updates the nimbus
with blobs based on the state stored inside the zookeeper
for a non leader nimbus trying to be in sync
with the operations performed on the leader nimbus.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteKeySetFromBlobStoreNotOnZookeeper
(Set<String> keySetBlobStore, Set<String> keySetZookeeper) getKeySetToDownload
(Set<String> blobStoreKeySet, Set<String> zookeeperKeySet) void
setBlobStoreKeySet
(Set<String> blobStoreKeySet) void
setNimbusInfo
(NimbusInfo nimbusInfo) void
setZkClient
(org.apache.storm.shade.org.apache.curator.framework.CuratorFramework zkClient) void
setZookeeperKeySet
(Set<String> zookeeperKeySet) void
void
updateKeySetForBlobStore
(Set<String> keySetBlobStore)
-
Constructor Details
-
LocalFsBlobStoreSynchronizer
-
-
Method Details
-
setNimbusInfo
-
setZkClient
public void setZkClient(org.apache.storm.shade.org.apache.curator.framework.CuratorFramework zkClient) -
getBlobStoreKeySet
-
setBlobStoreKeySet
-
getZookeeperKeySet
-
setZookeeperKeySet
-
syncBlobs
public void syncBlobs() -
deleteKeySetFromBlobStoreNotOnZookeeper
public void deleteKeySetFromBlobStoreNotOnZookeeper(Set<String> keySetBlobStore, Set<String> keySetZookeeper) throws Exception - Throws:
Exception
-
updateKeySetForBlobStore
-
getKeySetToDownload
-