|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.scripts.ScriptsUtil
public class ScriptsUtil
Utilities for scripts.
| Nested Class Summary | |
|---|---|
static class |
ScriptsUtil.ChunkType
The types of chunk: data, meta, project. |
| Constructor Summary | |
|---|---|
ScriptsUtil()
|
|
| Method Summary | |
|---|---|
static ProjectFile |
getProjectFile(BigHash projectFileHash)
Recycles from GetFileTool. |
static ProjectFile |
getProjectFile(BigHash projectFileHash,
java.lang.String passphrase)
Recycles from GetFileTool. |
static java.util.List<java.lang.String> |
getServersWithChunk(BigHash hash,
ScriptsUtil.ChunkType type)
Finds all online core servers with a particular chunk. |
static java.util.List<java.lang.String> |
getServersWithChunk(BigHash hash,
ScriptsUtil.ChunkType type,
java.util.List<java.lang.String> serversToUse)
Finds all online core servers with a particular chunk. |
static java.util.List<java.lang.String> |
getServersWithoutChunk(BigHash hash,
ScriptsUtil.ChunkType type)
Finds all online core servers without a particular chunk. |
static java.util.List<java.lang.String> |
getServersWithoutChunk(BigHash hash,
ScriptsUtil.ChunkType type,
java.util.List<java.lang.String> serversToUse)
Finds all online core servers without a particular chunk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptsUtil()
| Method Detail |
|---|
public static java.util.List<java.lang.String> getServersWithChunk(BigHash hash,
ScriptsUtil.ChunkType type)
throws java.lang.Exception
Finds all online core servers with a particular chunk.
hash - The big hash of the chunktype - The ChunkType of the chunk (enumerated value), specifying whether data or meta data. Don't use PROJECT type as parameter.
java.lang.Exception
public static java.util.List<java.lang.String> getServersWithChunk(BigHash hash,
ScriptsUtil.ChunkType type,
java.util.List<java.lang.String> serversToUse)
throws java.lang.Exception
Finds all online core servers with a particular chunk.
hash - The big hash of the chunktype - The ChunkType of the chunk (enumerated value), specifying whether data or meta data. Don't use PROJECT type as parameter.serversToUse - Listjava.lang.Exception
public static java.util.List<java.lang.String> getServersWithoutChunk(BigHash hash,
ScriptsUtil.ChunkType type)
throws java.lang.Exception
Finds all online core servers without a particular chunk.
hash - The big hash of the chunktype - The ChunkType of the chunk (enumerated value), specifying whether data or meta data. Don't use PROJECT type as parameter.
java.lang.Exception
public static java.util.List<java.lang.String> getServersWithoutChunk(BigHash hash,
ScriptsUtil.ChunkType type,
java.util.List<java.lang.String> serversToUse)
throws java.lang.Exception
Finds all online core servers without a particular chunk.
hash - The big hash of the chunktype - The ChunkType of the chunk (enumerated value), specifying whether data or meta data. Don't use PROJECT type as parameter.serversToUse - Listjava.lang.Exception
public static ProjectFile getProjectFile(BigHash projectFileHash)
throws java.lang.Exception
Recycles from GetFileTool. =)
projectFileHash -
java.lang.Exception
public static ProjectFile getProjectFile(BigHash projectFileHash,
java.lang.String passphrase)
throws java.lang.Exception
Recycles from GetFileTool. =)
projectFileHash - passphrase -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||