|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.storage.BlockManagerId
public class BlockManagerId
:: DeveloperApi :: This class represent an unique identifier for a BlockManager.
The first 2 constructors of this class is made private to ensure that BlockManagerId objects can be created only using the apply method in the companion object. This allows de-duplication of ID objects. Also, constructor parameters are private to ensure that parameters cannot be modified from outside this class.
Method Summary | |
---|---|
static BlockManagerId |
apply(java.io.ObjectInput in)
|
static BlockManagerId |
apply(String execId,
String host,
int port)
Returns a BlockManagerId for the given configuration. |
static java.util.concurrent.ConcurrentHashMap<BlockManagerId,BlockManagerId> |
blockManagerIdCache()
|
boolean |
equals(Object that)
|
String |
executorId()
|
static BlockManagerId |
getCachedBlockManagerId(BlockManagerId id)
|
int |
hashCode()
|
String |
host()
|
String |
hostPort()
|
boolean |
isDriver()
|
int |
port()
|
void |
readExternal(java.io.ObjectInput in)
|
String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static BlockManagerId apply(String execId, String host, int port)
BlockManagerId
for the given configuration.
execId
- ID of the executor.host
- Host name of the block manager.port
- Port of the block manager.
BlockManagerId
.public static BlockManagerId apply(java.io.ObjectInput in)
public static java.util.concurrent.ConcurrentHashMap<BlockManagerId,BlockManagerId> blockManagerIdCache()
public static BlockManagerId getCachedBlockManagerId(BlockManagerId id)
public String executorId()
public String hostPort()
public String host()
public int port()
public boolean isDriver()
public void writeExternal(java.io.ObjectOutput out)
writeExternal
in interface java.io.Externalizable
public void readExternal(java.io.ObjectInput in)
readExternal
in interface java.io.Externalizable
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object that)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |