nenok.net
Class IdentityLocator

java.lang.Object
  extended by nenok.net.Locator
      extended by nenok.net.IdentityLocator
All Implemented Interfaces:
Serializable, Labeled

public final class IdentityLocator
extends Locator

Identity locators for node initialization.

Version:
$LastChangedRevision: 556 $
$LastChangedDate: 2008-03-26 14:21:45 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nenok.net.Locator
Locator.Predictable
 
Field Summary
 
Fields inherited from class nenok.net.Locator
pid
 
Constructor Summary
IdentityLocator()
          Constructor:
 
Method Summary
 void delete()
          Deletes the valuation that is referenced by this locator.
 boolean equals(Object o)
          Two locators are equal, if they point to the same object.
 String getType()
           
 int getWeight()
           
 Domain label()
           
 Valuation retrieve()
           
 void setPID(Uuid pid)
          Sets the processor of this identity locator.
 String toString()
           
 
Methods inherited from class nenok.net.Locator
create, getEnvelopeID, getPID, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityLocator

public IdentityLocator()
Constructor:

Method Detail

retrieve

public Valuation retrieve()
                   throws RemoteException
Overrides:
retrieve in class Locator
Returns:
Retrieves the referenced valuation from the processor.
Throws:
RemoteException - Exception caused when trying to access processors.
See Also:
Locator.retrieve()

delete

public void delete()
            throws RemoteException
Description copied from class: Locator
Deletes the valuation that is referenced by this locator.

Overrides:
delete in class Locator
Throws:
RemoteException - Exception caused when trying to access processors.
See Also:
Locator.delete()

label

public Domain label()
Specified by:
label in interface Labeled
Overrides:
label in class Locator
Returns:
The domain of the referenced valuation.
See Also:
Locator.label()

getWeight

public int getWeight()
Overrides:
getWeight in class Locator
Returns:
The weight of the referenced valuation.
See Also:
Locator.getWeight()

getType

public String getType()
Overrides:
getType in class Locator
Returns:
The type (class name) of the referenced valuation.
See Also:
Locator.getType()

toString

public String toString()
Overrides:
toString in class Locator
See Also:
Locator.toString()

setPID

public void setPID(Uuid pid)
Sets the processor of this identity locator.

Parameters:
pid - The processor's identifier to set.

equals

public boolean equals(Object o)
Description copied from class: Locator
Two locators are equal, if they point to the same object.

Overrides:
equals in class Locator
See Also:
Locator.equals(java.lang.Object)