VolD 0.1

de.zib.vold.common.Key Class Reference

A Key as a part of VolD entries. More...

List of all members.

Public Member Functions

 Key (String scope, String type, String keyname) throws IllegalArgumentException
 Construct a Key with all necessary informations.
String get_scope ()
 Get the scope of the key.
String get_type ()
 Get the type of the key.
String get_keyname ()
 Get the name of the key.
String toString ()
 Convert the key to readable and printable version.
List< String > _buildkey ()
 Convert the key to the language used in volatilelogic.
boolean equals (Object obj)
 Compare this key with another key.
int hashCode ()
 Compute the hash code of this key.

Static Public Member Functions

static Key buildkey (List< String > key) throws IllegalArgumentException
 Construct a key from list of strings.

Private Attributes

final String scope
final String type
final String keyname

Detailed Description

A Key as a part of VolD entries.

A Key is defined by a scope, a type and a keyname. The scope is any valid UNIX-style path. The type and keyname are arbitrary strings.

See also:
URIKey

Definition at line 19 of file Key.java.


Constructor & Destructor Documentation

de.zib.vold.common.Key.Key ( String  scope,
String  type,
String  keyname 
) throws IllegalArgumentException

Construct a Key with all necessary informations.

Parameters:
scopeThe scope of the key.
typeThe type of the key.
keynameThe name of the key.

Definition at line 28 of file Key.java.

References de.zib.vold.common.Key.equals(), de.zib.vold.common.Key.keyname, de.zib.vold.common.Key.scope, and de.zib.vold.common.Key.type.

Referenced by de.zib.vold.common.Key.buildkey().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

List< String > de.zib.vold.common.Key._buildkey ( )

Convert the key to the language used in volatilelogic.

Returns:
The converted key.

Definition at line 132 of file Key.java.

References de.zib.vold.common.Key.keyname, de.zib.vold.common.Key.scope, and de.zib.vold.common.Key.type.

Referenced by de.zib.vold.frontend.Frontend.insert(), de.zib.vold.frontend.Frontend.lookup(), de.zib.vold.frontend.Frontend.refresh(), de.zib.vold.frontend.Frontend.scopeLookup(), and de.zib.vold.common.Key.toString().

Here is the caller graph for this function:

static Key de.zib.vold.common.Key.buildkey ( List< String >  key) throws IllegalArgumentException [static]

Construct a key from list of strings.

Parameters:
keyThe key in a format used in the volatilelogic package.
Returns:
The appropriate Key object.

Definition at line 116 of file Key.java.

References de.zib.vold.common.Key.Key().

Referenced by de.zib.vold.replication.RESTVoldReplicator.insert(), de.zib.vold.replication.RESTVoldReplicator.refresh(), and de.zib.vold.frontend.Frontend.scopeLookup().

Here is the call graph for this function:

Here is the caller graph for this function:

boolean de.zib.vold.common.Key.equals ( Object  obj)

Compare this key with another key.

Returns:
true, iff this key represents the same key as obj.

Definition at line 148 of file Key.java.

References de.zib.vold.common.Key.get_keyname(), de.zib.vold.common.Key.get_scope(), and de.zib.vold.common.Key.get_type().

Referenced by de.zib.vold.common.Key.Key().

Here is the call graph for this function:

Here is the caller graph for this function:

int de.zib.vold.common.Key.hashCode ( )

Compute the hash code of this key.

Returns:
The hash code of this key.

Definition at line 175 of file Key.java.

References de.zib.vold.common.Key.get_keyname(), de.zib.vold.common.Key.get_scope(), and de.zib.vold.common.Key.get_type().

Here is the call graph for this function:

String de.zib.vold.common.Key.toString ( )

Convert the key to readable and printable version.

Returns:
A readable and printable version of the key.

Definition at line 105 of file Key.java.

References de.zib.vold.common.Key._buildkey().

Referenced by de.zib.vold.frontend.Frontend.lookup().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following file: