Code Search for Developers
 
 
  

Pointer.java from gzz at Krugle


Show Pointer.java syntax highlighted

/*
Pointer.java
 *    
 *    Copyright (c) 2002, Benja Fallenstein
 *    
 *    This file is part of Gzz.
 *    
 *    Gzz is free software; you can redistribute it and/or modify it under
 *    the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *    
 *    Gzz is distributed in the hope that it will be useful, but WITHOUT
 *    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 *    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
 *    Public License for more details.
 *    
 *    You should have received a copy of the GNU Lesser General
 *    Public License along with Gzz; if not, write to the Free
 *    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *    
 *    
 */
/*
 * Written by Benja Fallenstein
 */
package gzz.storm;
import java.io.*;
import java.util.*;

/** Information about the history of a Gzz Storm pointer.
 *  See <code>Documentation/Mediaserver</code> for information
 *  about what a pointer is... XXX
 *  <p>
 *  To retrieve a <code>Pointer</code> instance,
 *  use <code>IndexedPool.getPointer()</code>.
 *  @see IndexedPool
 */
public interface Pointer {
    /** Get the URI of this pointer.
     */
    String getURI();

    /** Get the pool of this <code>Pointer</code> instance.
     *  This is the pool data is read from and written to.
     */
    IndexedPool getPool();

    /** Get the set of all currently active <code>PointerBlocks</code>.
     */
    Set getCurrentBlocks() throws IOException;

    /** Get the set of all <code>PointerBlocks</code> for this pointer
     *  in this pool.
     */
    Set getAllBlocks() throws IOException;

    /** Add a new pointer block for this pointer.
     *  Note: Often, <code>PointerBlock.update()</code> is the more convenient
     *  method for this task, but this method is more flexible.
     *  Probably, <code>PointerBlock.update()</code> implementations will
     *  usually use this method internally.
     *  @param obsoleteBlocks A set of PointerBlocks to obsolete.
     *  @return The new pointer block.
     */
    PointerBlock addPointerBlock(BlockId target, Set obsoleteBlocks)
                                                throws IOException;
}




See more files for this project here

gzz

An implementation of Ted Nelson's ZZstructure. ZZstructure is a new type of programming platform for structured data.

Project homepage: http://savannah.nongnu.org/projects/gzz
Programming language(s): C++,Java,Python
License: lgpl21

  headers/
    DefaultHeaderLines822.java
    DefaultHeaderMap822.java
    Header822.java
    HeaderLines822.java
    HeaderMap822.java
    Headers822.java
    ModularHeader822.java
    MoreThanOneElementException.java
    SortedHeader822.java
    SortedHeaderMap822.java
    UniqueHeader822.java
    VerbatimHeader822.java
  impl/
    AbstractLocalPool.java
    AbstractPool.java
    AsyncSetCollector.java
    DefaultPointerIndex.java
    DefaultPointerIndexType.java
    DirDB.java
    DirPool.java
    DirPool.mock-up.ly
    HttpP2PServer.py
    P2PPool.java
    SimpleSetCollector.java
    TransientPool.java
    ZipPool.java
    __init__.py
  util/
    DiffBlock.java
    DiffIndexType.java
    DiffingStormFiler.java
    SimpleStormFiler.java
    StormFilerBlock.java
    VersionBlock.java
  Block.java
  BlockId.java
  BlockListener.java
  BlockOutputStream.java
  CollectionListener.java
  Collector.java
  IndexedPool.java
  Pointer.java
  PointerBlock.java
  PointerIndexType.java
  SetCollector.java
  StormPool.java
  __init__.py