public class Slice extends Object implements JSONWriter.Writable
| Constructor and Description |
|---|
Slice(String name,
Map<String,ZkNodeProps> shards) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Return slice name (shard id).
|
Map<String,ZkNodeProps> |
getShards()
Get properties for all shards in this slice.
|
Map<String,ZkNodeProps> |
getShardsCopy()
Get a copy of the shards data this object holds.
|
String |
toString() |
void |
write(JSONWriter jsonWriter) |
public Slice(String name, Map<String,ZkNodeProps> shards)
public Map<String,ZkNodeProps> getShards()
ZkStateReader.getCoreNodeName(String, String), ZKNodeProps
as the value.public Map<String,ZkNodeProps> getShardsCopy()
public String getName()
public void write(JSONWriter jsonWriter)
write in interface JSONWriter.WritableCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.