jpl.mipl.mdms.FileService.komodo.api
Class RestartInfo

java.lang.Object
  extended by jpl.mipl.mdms.FileService.komodo.api.RestartInfo

Deprecated.

public class RestartInfo
extends Object

This JavaBean keeps track of restart information that can be presisted on the client local disk to assist restart transfer of data file.

Version:
$Id: RestartInfo.java,v 1.6 2004/10/27 00:52:33 txh Exp $
Author:
T. Huang {Thomas.Huang@jpl.nasa.gov}

Constructor Summary
RestartInfo()
          Deprecated. A default constructor to help serialization of class instance.
RestartInfo(String fileType, String persistFile)
          Deprecated. Constructor used by the komodo client to create new restart objects
 
Method Summary
 void addResume(String filename, long size, String datetime)
          Deprecated. Method to create a new entry to the file name hash table.
 void addResume(String filename, String vft, long size, String datetime)
          Deprecated. Method to create a new entry to the file name hash table.
 void commit()
          Deprecated. Method to persist the RestartInfo object
 Properties getFileList()
          Deprecated. Accessor method to obtain the hash table for file names.
 String getFileType()
          Deprecated. Accessor method to obtain the file type name.
 long getListRestartTime()
          Deprecated. Method to obtain the file query restart time.
 String getPersistFile()
          Deprecated. Accessor method to obtain the name of the persistent file.
 long getRestartTime()
          Deprecated. Accessor method to obtain the restart time.
 String getResume(String filename, String filepath)
          Deprecated. Method to retrieve the resume string for the associated file.
 Properties getVFTList()
          Deprecated.  
 String removeResume(String filename)
          Deprecated. Method to remove an entry from the hash table.
 void setFileList(Properties fileList)
          Deprecated. Method to set the file list hash table.
 void setFileType(String fileType)
          Deprecated. Method to set the associated file type.
 void setListRestartTime(long restartTime)
          Deprecated. Method to set the file query restart time
 void setPersistFile(String persistFile)
          Deprecated. Method to set the name of the persistent file.
 void setRestartTime(long restartTime)
          Deprecated. Method to set the restart time
 void setVFTList(Properties vftList)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestartInfo

public RestartInfo()
Deprecated. 
A default constructor to help serialization of class instance.


RestartInfo

public RestartInfo(String fileType,
                   String persistFile)
Deprecated. 
Constructor used by the komodo client to create new restart objects

Parameters:
fileType - the associated file type
persistFile - the persistent file name
Method Detail

getPersistFile

public String getPersistFile()
Deprecated. 
Accessor method to obtain the name of the persistent file.

Returns:
the name of the persistent file.

setPersistFile

public void setPersistFile(String persistFile)
Deprecated. 
Method to set the name of the persistent file.

Parameters:
persistFile - name of the persistent file.

getFileType

public String getFileType()
Deprecated. 
Accessor method to obtain the file type name.

Returns:
the file type name

setFileType

public void setFileType(String fileType)
Deprecated. 
Method to set the associated file type.

Parameters:
fileType - the file type name

getFileList

public Properties getFileList()
Deprecated. 
Accessor method to obtain the hash table for file names.

Returns:
the file names hash table.

setFileList

public void setFileList(Properties fileList)
Deprecated. 
Method to set the file list hash table.

Parameters:
fileList - the hash table reference.

getVFTList

public Properties getVFTList()
Deprecated. 

setVFTList

public void setVFTList(Properties vftList)
Deprecated. 

getRestartTime

public long getRestartTime()
Deprecated. 
Accessor method to obtain the restart time.

Returns:
the restart timestamp

setRestartTime

public void setRestartTime(long restartTime)
Deprecated. 
Method to set the restart time

Parameters:
restartTime - the restart timestamp.

getListRestartTime

public long getListRestartTime()
Deprecated. 
Method to obtain the file query restart time.

Returns:
the file query restart time stamp

setListRestartTime

public void setListRestartTime(long restartTime)
Deprecated. 
Method to set the file query restart time

Parameters:
restartTime - the file query restart time.

addResume

public void addResume(String filename,
                      long size,
                      String datetime)
Deprecated. 
Method to create a new entry to the file name hash table.

Parameters:
filename - the file name
size - the file size
datetime - the file registred time on the server.

addResume

public void addResume(String filename,
                      String vft,
                      long size,
                      String datetime)
Deprecated. 
Method to create a new entry to the file name hash table.

Parameters:
filename - the file name
vft - the name of the VFT
size - the file size
datetime - the file registered time on the server

removeResume

public String removeResume(String filename)
Deprecated. 
Method to remove an entry from the hash table.

Parameters:
filename - the file name to be removed
Returns:
the value string for the associated file name

getResume

public String getResume(String filename,
                        String filepath)
Deprecated. 
Method to retrieve the resume string for the associated file.

Parameters:
filename - the file name
filepath - the location of the file on the client side.
Returns:
the formated restart string for the file.

commit

public void commit()
            throws SessionException
Deprecated. 
Method to persist the RestartInfo object

Throws:
SessionException - when unable to cache the object instance.