|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.arcrepository.Replica
public class Replica
This class encapsulates the bitarchive or checksum replicas. It guarantees that there is only one Replica object per replica id/name.
Method Summary | |
---|---|
java.lang.String |
getId()
Get the id of this replica. |
ChannelID |
getIdentificationChannel()
Get the identification channel that corresponds to this replica. |
static java.util.Collection<Replica> |
getKnown()
Get all known replicas. |
static java.lang.String[] |
getKnownIds()
Get all known replicas as ids. |
static java.util.Set<java.lang.String> |
getKnownIdsAsSet()
Get the id of all known replicas as a string set. |
static java.lang.String[] |
getKnownNames()
Get names of all known replicas as string array. |
static java.util.Set<java.lang.String> |
getKnownNamesAsSet()
Get the names of all known replicas as a string set. |
java.lang.String |
getName()
Get the name of this replica. |
static Replica |
getReplicaFromId(java.lang.String id)
Get an object representing the replica with the given id. |
static Replica |
getReplicaFromName(java.lang.String name)
Get an object representing the replica with the given name. |
ReplicaType |
getType()
Get the type of this replica. |
static boolean |
isKnownReplicaId(java.lang.String id)
Check, if a given id is a replica id. |
static boolean |
isKnownReplicaName(java.lang.String name)
Check, if a given name is a replica name. |
java.lang.String |
toString()
Returns a human-readable representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Replica getReplicaFromId(java.lang.String id)
id
- The given name of an replica
UnknownID
- if no replica is known with the given idpublic static Replica getReplicaFromName(java.lang.String name)
name
- The given name of an replica
UnknownID
- if no replica is known with the given namepublic static boolean isKnownReplicaName(java.lang.String name)
name
- a given name
public static boolean isKnownReplicaId(java.lang.String id)
id
- a given id
public static java.util.Collection<Replica> getKnown()
public static java.lang.String[] getKnownIds()
public static java.util.Set<java.lang.String> getKnownIdsAsSet()
public static java.lang.String[] getKnownNames()
public static java.util.Set<java.lang.String> getKnownNamesAsSet()
public ReplicaType getType()
public java.lang.String getId()
public java.lang.String getName()
public ChannelID getIdentificationChannel()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |