public class ControllerCEntry
extends java.lang.Object
Constructor and Description |
---|
ControllerCEntry(ChunkDescriptor chunkDesc,
HostID cs)
Create a new chunk entry for a given chunk descriptor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChunkServer(HostID cs)
Add a new chunkserver that
is now replicating this chunk.
|
void |
delChunkServer(HostID cs)
Remove a chunkserver from the list
of chunkservers currently replicating
this chunk.
|
HostID[] |
getChunkServers()
Get chunkservers currently replicating this chunk.
|
ChunkDescriptor |
getDescriptor() |
int |
getNumChunkServers()
Get the number of chunkservers currently
replicating this chunk.
|
void |
setChunkServers(HostID[] cs)
Set the list of chunkservers
currently replicating this chunk.
|
java.lang.String |
toString() |
void |
touch(HostID cs) |
public ControllerCEntry(ChunkDescriptor chunkDesc, HostID cs)
public ChunkDescriptor getDescriptor()
public HostID[] getChunkServers()
public int getNumChunkServers()
public void touch(HostID cs)
public void addChunkServer(HostID cs)
cs
- A chunkserver that is
now replicating this chunk.public void delChunkServer(HostID cs)
cs
- The id of the chunkserver to remove.public void setChunkServers(HostID[] cs)
cs
- List of chunkservers
currently replicating this chunk.public java.lang.String toString()
toString
in class java.lang.Object