stsci.arci
Class ArchiveDescriptor

java.lang.Object
  |
  +--stsci.arci.ArchiveDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ImageArchiveDescriptor

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

This class represents one Archive. It contins the information need to contact an archive and a methoid to return an interface to a particular implementaiton of the archive. This are created by the ArchiveServer when it reads servers.lst.

See Also:
Serialized Form

Field Summary
protected  int dtype
           
static int HTTP
           
static int IMAGE
           
static int LOCAL
           
protected  java.lang.String name
           
protected  int protocol
           
static java.lang.String[] protocols
           
static int RMI
           
protected  java.lang.String server
           
static int SOURCE
           
 
Constructor Summary
ArchiveDescriptor(java.lang.String n, java.lang.String s, int p)
           
 
Method Summary
 java.lang.String dtype()
           
 Archive getArchive()
          Construct or get the archive interface for this Descriptor.
 java.lang.String name()
           
 int protocol()
           
 java.lang.String protocolAsStr()
           
 java.lang.String server()
           
 java.lang.String serverName()
          Parse out some kind of name from the server string.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

server

protected java.lang.String server

protocol

protected int protocol

dtype

protected int dtype

RMI

public static final int RMI

HTTP

public static final int HTTP

LOCAL

public static final int LOCAL

protocols

public static final java.lang.String[] protocols

SOURCE

public static final int SOURCE

IMAGE

public static final int IMAGE
Constructor Detail

ArchiveDescriptor

public ArchiveDescriptor(java.lang.String n,
                         java.lang.String s,
                         int p)
                  throws java.lang.Exception
Method Detail

name

public java.lang.String name()

server

public java.lang.String server()

protocol

public int protocol()

protocolAsStr

public java.lang.String protocolAsStr()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getArchive

public Archive getArchive()
                   throws java.lang.Exception
Construct or get the archive interface for this Descriptor. basically this is a factory method.

dtype

public java.lang.String dtype()

serverName

public java.lang.String serverName()
Parse out some kind of name from the server string.