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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ArchiveDescriptor
public ArchiveDescriptor(java.lang.String n,
java.lang.String s,
int p)
throws java.lang.Exception
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.