nenok.net
Class IdentityLocator

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

public class IdentityLocator
extends Locator

Implementation of the Locator interface for identity elements.

Version:
1.2
Author:
Marc Pouly
See Also:
Serialized Form

Constructor Summary
IdentityLocator(net.jini.id.Uuid pid)
          Constructor:
 
Method Summary
 void delete()
          Deletes the valuation that is referenced by this locator.
 boolean equals(Object obj)
           
 Domain getDomain()
           
 String getType()
           
 int getWeight()
           
 Valuation retrieve()
           
 String toString()
           
 
Methods inherited from class nenok.net.Locator
getPID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityLocator

public IdentityLocator(net.jini.id.Uuid pid)
Constructor:

Parameters:
pid - The identifier of the processor hosting the valuation.
Method Detail

delete

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

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

getDomain

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

getType

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

getWeight

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

retrieve

public Valuation retrieve()
Specified by:
retrieve in class Locator
Returns:
Retrieves the referenced valuation from the processor.
See Also:
Locator.retrieve()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

toString

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