Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.fetish.directory
Class SearchIDFactory  view SearchIDFactory download SearchIDFactory.java

java.lang.Object
  extended bycom.fetish.directory.SearchIDFactory
All Implemented Interfaces:
java.io.Serializable

public class SearchIDFactory
extends java.lang.Object
implements java.io.Serializable

Class to obtain unique SearchID identifiers. It implements Serializable in order to be stored to persistent storage, to keep consistency between activations.
This class is meant to be a field of the FADA class.


Field Summary
private  long seqNum
           
private  ServiceID sid
           
 
Constructor Summary
SearchIDFactory()
          Constructor provided for serialization purposes
SearchIDFactory(ServiceID sid)
          Initializes the SearchIDFactory object.
It needs the FADA node Jini ServiceID to create unique search identifiers for the FADA node this class belongs to.
 
Method Summary
 SearchID getSearchID()
          Creates the next SearchID for this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seqNum

private long seqNum

sid

private ServiceID sid
Constructor Detail

SearchIDFactory

public SearchIDFactory()
Constructor provided for serialization purposes


SearchIDFactory

public SearchIDFactory(ServiceID sid)
Initializes the SearchIDFactory object.
It needs the FADA node Jini ServiceID to create unique search identifiers for the FADA node this class belongs to.

Method Detail

getSearchID

public SearchID getSearchID()
Creates the next SearchID for this factory.