|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.opencms.file
Class CmsSynchronizeList

java.lang.Objectcom.opencms.file.CmsSynchronizeList
- All Implemented Interfaces:
- com.opencms.core.I_CmsConstants, java.io.Serializable
- public class CmsSynchronizeList
- extends java.lang.Object
- implements com.opencms.core.I_CmsConstants, java.io.Serializable
- extends java.lang.Object
Describes the synchronize list for synchronizing the resources in the virtual filesystem (VFS) and the server filesystem (SFS)
- Version:
- $Revision: 1.10 $ $Date: 2003/04/01 15:20:18 $
| Field Summary | |
(package private) static java.lang.String |
C_SFS_DATE
the name of the key for the resource date in the server filesystem |
static java.lang.String |
C_SYNCLIST_FILE
the name of the synchronize list in the filesystem |
(package private) static java.lang.String |
C_VFS_DATE
the name of the key for the resource date in the virtual filesystem |
private java.util.Hashtable |
m_synchronizeList
the hashtable which holds the dates of the resource in both filesystems |
private java.lang.String |
m_synchronizePath
the path on the filesystem for synchronization |
| Constructor Summary | |
CmsSynchronizeList(java.lang.String syncPath)
Constructor, creates a new CmsSynchronizeList object. |
|
| Method Summary | |
private void |
createNewLocalFile(java.io.File newFile)
Creates the new file on the SFS |
long |
getSfsDate(java.lang.String resourceName)
This returns the date of the last synchronized version of the resource from the server filesystem |
long |
getVfsDate(java.lang.String resourceName)
This returns the date of the last synchronized version of the resource from the virtual filesystem |
void |
putDates(java.lang.String resourceName,
long vfsDate,
long sfsDate)
This writes the dates of the last synchronized version of the resource to the synchronize list hashtable |
private java.io.Serializable |
readSyncList()
This reads the synchronize list which containts the resources which were already synchronized and the date of the last synchronized file |
void |
remove(java.lang.String resourceName)
This removes the resource from the hashtable |
void |
saveSyncList()
This saves the synchronization list after the synchronization and clears the hashtable |
java.lang.String |
toString()
Returns a string-representation for this object. |
private java.io.Serializable |
writeSyncList(java.io.Serializable hashSyncList)
This writes the synchronize list which containts the resources which were already synchronized and the date of the last synchronized file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
C_SYNCLIST_FILE
public static java.lang.String C_SYNCLIST_FILE
- the name of the synchronize list in the filesystem
C_VFS_DATE
static final java.lang.String C_VFS_DATE
- the name of the key for the resource date in the virtual filesystem
- See Also:
- Constant Field Values
C_SFS_DATE
static final java.lang.String C_SFS_DATE
- the name of the key for the resource date in the server filesystem
- See Also:
- Constant Field Values
m_synchronizePath
private java.lang.String m_synchronizePath
- the path on the filesystem for synchronization
m_synchronizeList
private java.util.Hashtable m_synchronizeList
- the hashtable which holds the dates of the resource in both filesystems
| Constructor Detail |
CmsSynchronizeList
public CmsSynchronizeList(java.lang.String syncPath) throws com.opencms.core.CmsException
- Constructor, creates a new CmsSynchronizeList object.
| Method Detail |
createNewLocalFile
private void createNewLocalFile(java.io.File newFile) throws com.opencms.core.CmsException
- Creates the new file on the SFS
getSfsDate
public long getSfsDate(java.lang.String resourceName)
- This returns the date of the last synchronized version of the resource
from the server filesystem
getVfsDate
public long getVfsDate(java.lang.String resourceName)
- This returns the date of the last synchronized version of the resource
from the virtual filesystem
putDates
public void putDates(java.lang.String resourceName, long vfsDate, long sfsDate)
- This writes the dates of the last synchronized version of the resource
to the synchronize list hashtable
readSyncList
private java.io.Serializable readSyncList() throws java.lang.Exception
- This reads the synchronize list which containts the resources which were
already synchronized and the date of the last synchronized file
remove
public void remove(java.lang.String resourceName)
- This removes the resource from the hashtable
saveSyncList
public void saveSyncList()
throws com.opencms.core.CmsException
- This saves the synchronization list after the synchronization
and clears the hashtable
toString
public java.lang.String toString()
- Returns a string-representation for this object.
This can be used for debugging.
writeSyncList
private java.io.Serializable writeSyncList(java.io.Serializable hashSyncList) throws com.opencms.core.CmsException
- This writes the synchronize list which containts the resources which were
already synchronized and the date of the last synchronized file
|
|||||||||
| Home >> All >> com >> opencms >> [ file overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.opencms.file.CmsSynchronizeList