All Packages Class Hierarchy This Package Previous Next Index
Class semper.download.VmfClass
java.lang.Object
|
+----semper.download.VmfClass
- public class VmfClass
- extends Object
- implements Serializable
VmfClass implements the Version Management File(VMF) that keeps information
about the state for each package contained in the SEMPER software tool.
- Version:
- $Revision: 1.4 $ $Date: 1998/05/28 15:10:03 $
- Author:
- Petros Pantis, Kostas Tzelepis
-
certStore
- Contains the reference of the Certificate Blocks contained in the associated VMF
-
VmfClass()
- VmfClass object constructor
-
VmfClass(String)
- VmfClass object constructor.
-
add(CertificateBlock)
- Inserts a new certificate block in the current VMF structure
-
addCertBlock(String, Object[])
- Adds a updated certificate block to a vector object
-
checkVmfContents(Hashtable, Download, RandomAccessFile)
- Checks the contents of the current VMF with the local stored files
-
compareVmfs(Hashtable, Vector)
- Compares a list of VMFs with a list of certificate blocks
-
getCerts()
- Retieves all the contained certificate blocks
-
getDiffs(CertificateBlock)
- Compares a passed certificate block with the current VMF
-
getDiffs(Vector, Vector[])
- Compares a list of certificate blocks with the current VMF structure
-
getFileList(String)
-
-
getPath()
- Retieves the path in which the VMF is located
-
getVersion()
- Retieves the version list of all the contained certificate blocks
-
printSelf()
- Method used for debugging reasons
certStore
public Hashtable certStore
- Contains the reference of the Certificate Blocks contained in the associated VMF
VmfClass
public VmfClass()
- VmfClass object constructor
VmfClass
public VmfClass(String dirname)
- VmfClass object constructor. Additional the package path
name is passed
- Parameters:
- dirname - package path name
getCerts
public Hashtable getCerts()
- Retieves all the contained certificate blocks
- Returns:
- value the contained certificate blocks
getDiffs
public int getDiffs(CertificateBlock cb)
- Compares a passed certificate block with the current VMF
getDiffs
public boolean getDiffs(Vector certblockinfo,
Vector diff[])
- Compares a list of certificate blocks with the current VMF structure
- Parameters:
- certblockinfo - the list of certificate blocks
- diff - the storage object in which the changes are registered
- Returns:
- value true, if changes are found
compareVmfs
public static Vector[] compareVmfs(Hashtable vmflocal,
Vector certBlockElements)
- Compares a list of VMFs with a list of certificate blocks
- Parameters:
- vmflocal - the list of local VMFs
- certBlockElements - the list of obtained certificate blocks
- Returns:
- value a list of changes found during the above comparison
getPath
public String getPath()
- Retieves the path in which the VMF is located
- Returns:
- value the path name
getVersion
public Vector getVersion()
- Retieves the version list of all the contained certificate blocks
- Returns:
- value a list of the certificate block versions
add
public boolean add(CertificateBlock cb)
- Inserts a new certificate block in the current VMF structure
- Parameters:
- cb - the new certificate block
- Returns:
- value true, on success
addCertBlock
public boolean addCertBlock(String certId,
Object retVec[])
- Adds a updated certificate block to a vector object
- Parameters:
- certId - the updated certificate block identifier
- retVec - the vector storage object in which the above certificate block identifier should be registered
- Returns:
- value true, on success
printSelf
public void printSelf()
- Method used for debugging reasons
checkVmfContents
public void checkVmfContents(Hashtable files,
Download dm,
RandomAccessFile out)
- Checks the contents of the current VMF with the local stored files
- Parameters:
- files - the local stored file data
- dm - a reference to the download module
getFileList
public Vector getFileList(String certid)
All Packages Class Hierarchy This Package Previous Next Index