stsci.archive
Class HTTPArchive

java.lang.Object
  |
  +--stsci.archive.HTTPwraper
        |
        +--stsci.archive.HTTPArchive
All Implemented Interfaces:
Archive, java.rmi.Remote, SourceArchive

public class HTTPArchive
extends HTTPwraper
implements SourceArchive

Implement the archive via http. Although SourceArchive is remote there is no need to run HTTPArchive as a remote object it should be created locally on the client.


Fields inherited from class stsci.archive.HTTPwraper
factory, factoryName, local, name, url
 
Constructor Summary
HTTPArchive(ArchiveDescriptor d)
          Handled by the super class.
 
Method Summary
 RemoteIter area(double alpha, double delta, double radius)
          The most simple interface is an area search specified by alpha,delta and width of a box.
 RemoteIter area(double alpha, double delta, double radius, java.lang.String predicate)
          Must also support this plus some predicate to cut down on the number entries returned
 RemoteIter area(double alpha, double delta, double radius, java.lang.String[] htmsegments)
          Specify HTM segments but not the predicate
 RemoteIter area(double alpha, double delta, double radius, java.lang.String predicate, java.lang.String[] htmsegments)
          We can make an area even more efficient by allowing the specification of which HTM seqments we want.
 ArchiveObject lookup(java.lang.String id)
          We should support ID lookup for a given archive ..
 RemoteIter scan(java.lang.String classname, java.lang.String predicate)
          The definiton of a predicate is a little tricky.
 
Methods inherited from class stsci.archive.HTTPwraper
name
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface stsci.arci.Archive
name
 

Constructor Detail

HTTPArchive

public HTTPArchive(ArchiveDescriptor d)
            throws java.rmi.RemoteException
Handled by the super class.
Method Detail

lookup

public ArchiveObject lookup(java.lang.String id)
                     throws ArchiveException,
                            java.rmi.RemoteException
Description copied from interface: SourceArchive
We should support ID lookup for a given archive ..
Specified by:
lookup in interface SourceArchive

area

public RemoteIter area(double alpha,
                       double delta,
                       double radius)
                throws ArchiveException,
                       java.rmi.RemoteException
Description copied from interface: SourceArchive
The most simple interface is an area search specified by alpha,delta and width of a box.
Specified by:
area in interface SourceArchive

scan

public RemoteIter scan(java.lang.String classname,
                       java.lang.String predicate)
                throws ArchiveException,
                       java.rmi.RemoteException
Description copied from interface: SourceArchive
The definiton of a predicate is a little tricky. For most systems simple boolean comparisons are okay but it gets more complex with String regular expression testing .e.g. this is not the same in Oracle and Objectivity.
Specified by:
scan in interface SourceArchive

area

public RemoteIter area(double alpha,
                       double delta,
                       double radius,
                       java.lang.String predicate)
                throws ArchiveException,
                       java.rmi.RemoteException
Description copied from interface: SourceArchive
Must also support this plus some predicate to cut down on the number entries returned
Specified by:
area in interface SourceArchive

area

public RemoteIter area(double alpha,
                       double delta,
                       double radius,
                       java.lang.String predicate,
                       java.lang.String[] htmsegments)
                throws ArchiveException,
                       java.rmi.RemoteException
Description copied from interface: SourceArchive
We can make an area even more efficient by allowing the specification of which HTM seqments we want. The server implementation would need to deal with a deapth mismatch in case there was one.
Specified by:
area in interface SourceArchive

area

public RemoteIter area(double alpha,
                       double delta,
                       double radius,
                       java.lang.String[] htmsegments)
                throws ArchiveException,
                       java.rmi.RemoteException
Description copied from interface: SourceArchive
Specify HTM segments but not the predicate
Specified by:
area in interface SourceArchive