public class BlobStoreUtils extends Object
Constructor and Description |
---|
BlobStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
applyUUIDToFileName(String fileName) |
static void |
createStateInZookeeper(Map conf,
String key,
NimbusInfo nimbusInfo) |
static org.apache.curator.framework.CuratorFramework |
createZKClient(Map conf,
List<org.apache.zookeeper.data.ACL> defaultAcls) |
static boolean |
downloadMissingBlob(Map conf,
BlobStore blobStore,
String key,
Set<NimbusInfo> nimbusInfos) |
static boolean |
downloadUpdatedBlob(Map conf,
BlobStore blobStore,
String key,
Set<NimbusInfo> nimbusInfos) |
static String |
generateDependencyBlobKey(String key) |
static String |
getBlobStoreSubtree() |
static List<String> |
getKeyListFromBlobStore(BlobStore blobStore) |
static int |
getLatestSequenceNumber(List<String> stateInfoList) |
static Set<NimbusInfo> |
getNimbodesWithLatestSequenceNumberOfBlob(org.apache.curator.framework.CuratorFramework zkClient,
String key) |
static Subject |
getNimbusSubject() |
static BlobKeySequenceInfo |
normalizeNimbusHostPortSequenceNumberInfo(String nimbusSeqNumberInfo) |
static void |
updateKeyForBlobStore(Map conf,
BlobStore blobStore,
org.apache.curator.framework.CuratorFramework zkClient,
String key,
NimbusInfo nimbusDetails) |
public static String getBlobStoreSubtree()
public static org.apache.curator.framework.CuratorFramework createZKClient(Map conf, List<org.apache.zookeeper.data.ACL> defaultAcls)
public static Subject getNimbusSubject()
public static BlobKeySequenceInfo normalizeNimbusHostPortSequenceNumberInfo(String nimbusSeqNumberInfo)
public static Set<NimbusInfo> getNimbodesWithLatestSequenceNumberOfBlob(org.apache.curator.framework.CuratorFramework zkClient, String key) throws Exception
Exception
public static boolean downloadMissingBlob(Map conf, BlobStore blobStore, String key, Set<NimbusInfo> nimbusInfos) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static boolean downloadUpdatedBlob(Map conf, BlobStore blobStore, String key, Set<NimbusInfo> nimbusInfos) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static List<String> getKeyListFromBlobStore(BlobStore blobStore) throws Exception
Exception
public static void createStateInZookeeper(Map conf, String key, NimbusInfo nimbusInfo) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static void updateKeyForBlobStore(Map conf, BlobStore blobStore, org.apache.curator.framework.CuratorFramework zkClient, String key, NimbusInfo nimbusDetails)
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.