Package com.mapr.fs
Class ClusterConf
- java.lang.Object
-
- com.mapr.fs.ClusterConf
-
- All Implemented Interfaces:
com.mapr.fs.jni.MapRConstants
public class ClusterConf extends java.lang.Object implements com.mapr.fs.jni.MapRConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classClusterConf.ClusterEntryclassClusterConf.IpPort
-
Field Summary
-
Fields inherited from interface com.mapr.fs.jni.MapRConstants
AtimeBit, AuditBit, ChunkSizeBit, ClusterConfDefault, CompressBit, CompressorTypeBit, DEFAULT_USER_IDENTIFIER, DEFAULT_USER_IDENTIFIER_ESCAPED, DefaultChunkSize, DefaultCLDBIp, DefaultCLDBPort, DiskFlushBit, EMPTY_BYTE_ARRAY, EMPTY_END_ROW, EMPTY_START_ROW, FidNameBit, GroupBit, HADOOP_MAX_BLOCKSIZE, HADOOP_SECURITY_SPOOFED_GID, HADOOP_SECURITY_SPOOFED_GROUP, HADOOP_SECURITY_SPOOFED_UID, HADOOP_SECURITY_SPOOFED_USER, HOSTNAME_IP_SEPARATOR, IP_PORT_SEPARATOR, LAST_ROW, LATEST_TIMESTAMP, MAPR_ENV_VAR, MAPR_PROPERTY_HOME, MapRClusterDir, MapRClusterDirPattern, MapRClusterDirSlash, MAPRFS_PREFIX, MAPRFS_SCHEME, MapRHomeDefault, MAX_CLUSTERS_CROSSED, MAX_PATH_LENGTH, MAX_PORT_NUMBER, MAX_RA_THREADS, MIN_RA_THREADS, MinChunkSize, ModeBit, MtimeBit, MULTI_ADDR_SEPARATOR, NUM_CONTAINERS_PER_RPC, OLDEST_TIMESTAMP, RA_THREADS_PER_STREAM, ReplBit, UserBit, UTF8_ENCODING, WireSecureBit
-
-
Constructor Summary
Constructors Constructor Description ClusterConf()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterConf.ClusterEntrygetClusterByPath(MapRFileSystem fs, java.net.URI p, java.net.URI fsUri, java.lang.String fsClusterName)ClusterConf.ClusterEntrygetClusterByPath(java.net.URI p, java.net.URI fsUri, java.lang.String fsClusterName)ClusterConf.ClusterEntrygetClusterByUri(MapRFileSystem fs, java.net.URI name)ClusterConf.ClusterEntrygetClusterByUri(java.net.URI name)ClusterConf.ClusterEntrygetClusterEntryByAddr(MapRFileSystem fs, java.lang.String ip, int port)ClusterConf.ClusterEntrygetClusterEntryByAddr(java.lang.String ip, int port)ClusterConf.ClusterEntrygetClusterEntryByName(MapRFileSystem fs, java.lang.String clusterName)ClusterConf.ClusterEntrygetClusterEntryByName(java.lang.String clusterName)java.util.List<ClusterConf.ClusterEntry>getClusterList()static longipToLong(java.lang.String addr)voidupdateClusterEntry(MapRFileSystem fs, java.lang.String cName, java.lang.String[] cldbLocations)voidupdateClusterEntry(java.lang.String cName, java.lang.String[] cldbLocations)
-
-
-
Method Detail
-
ipToLong
public static long ipToLong(java.lang.String addr) throws java.net.UnknownHostException- Throws:
java.net.UnknownHostException
-
updateClusterEntry
public void updateClusterEntry(MapRFileSystem fs, java.lang.String cName, java.lang.String[] cldbLocations)
-
updateClusterEntry
public void updateClusterEntry(java.lang.String cName, java.lang.String[] cldbLocations)
-
getClusterEntryByAddr
public ClusterConf.ClusterEntry getClusterEntryByAddr(MapRFileSystem fs, java.lang.String ip, int port)
-
getClusterEntryByAddr
public ClusterConf.ClusterEntry getClusterEntryByAddr(java.lang.String ip, int port)
-
getClusterEntryByName
public ClusterConf.ClusterEntry getClusterEntryByName(MapRFileSystem fs, java.lang.String clusterName)
-
getClusterEntryByName
public ClusterConf.ClusterEntry getClusterEntryByName(java.lang.String clusterName)
-
getClusterByUri
public ClusterConf.ClusterEntry getClusterByUri(MapRFileSystem fs, java.net.URI name) throws java.io.IOException
- Throws:
java.io.IOException
-
getClusterByUri
public ClusterConf.ClusterEntry getClusterByUri(java.net.URI name) throws java.io.IOException
- Throws:
java.io.IOException
-
getClusterByPath
public ClusterConf.ClusterEntry getClusterByPath(MapRFileSystem fs, java.net.URI p, java.net.URI fsUri, java.lang.String fsClusterName) throws java.io.IOException
- Throws:
java.io.IOException
-
getClusterByPath
public ClusterConf.ClusterEntry getClusterByPath(java.net.URI p, java.net.URI fsUri, java.lang.String fsClusterName) throws java.io.IOException
- Throws:
java.io.IOException
-
getClusterList
public java.util.List<ClusterConf.ClusterEntry> getClusterList()
-
-