|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cvsgrab.LocalRepository
public class LocalRepository
The local repository where the files are stored on this computer.
Field Summary | |
---|---|
static int |
UPDATE_IMPOSSIBLE
|
static int |
UPDATE_LOCAL_CHANGE
|
static int |
UPDATE_MERGE_NEEDED
|
static int |
UPDATE_NEEDED
|
static int |
UPDATE_NO_CHANGES
|
Constructor Summary | |
---|---|
LocalRepository(CVSGrab cvsGrab)
Constructor for the LocalRepository object |
Method Summary | |
---|---|
void |
add(RemoteDirectory remoteDir)
Adds a remote directory in the local filesystem, and update the CVS admin entries for that directory. |
void |
backupFile(RemoteFile remoteFile)
Backup a remote file that was locally modified |
int |
checkUpdateStatus(RemoteFile remoteFile)
Return true if the file needs to be updated |
void |
cleanRemovedFiles(RemoteDirectory remoteDirectory)
Remove the local copies of the files that have been deleted in the remote repository. |
int |
getFailedUpdateCount()
Gets the failed update count |
File |
getLocalDir(RemoteDirectory remoteDir)
Gets the local directory to use for storing the contents of the remote directory |
File |
getLocalFile(RemoteFile remoteFile)
Gets the local file to use for storing the contents of the remote file |
File |
getLocalRootDir()
Gets the root directory |
String |
getLocalVersion(RemoteFile remoteFile)
Returns the local version of the remote file |
int |
getNewFileCount()
Gets the new file count |
int |
getRemovedFileCount()
Gets the removed file count |
int |
getUpdatedFileCount()
Gets the updated file count |
boolean |
isCleanUpdate()
Gets the cleanUpdate flag. |
void |
pruneEmptyDirectories()
Remove any directory that doesn't contain any files |
void |
resetFileCounts()
Resets the counters in this class |
void |
unregisterFile(RemoteFile remoteFile)
Unregister a file from the CVS entries, forcing it to be reloaded next time the program is run |
void |
updateFileVersion(RemoteFile remoteFile)
Update a file version in the local CVS entries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UPDATE_NEEDED
public static final int UPDATE_NO_CHANGES
public static final int UPDATE_LOCAL_CHANGE
public static final int UPDATE_MERGE_NEEDED
public static final int UPDATE_IMPOSSIBLE
Constructor Detail |
---|
public LocalRepository(CVSGrab cvsGrab)
cvsGrab
- The cvs grabberMethod Detail |
---|
public File getLocalRootDir()
public File getLocalDir(RemoteDirectory remoteDir)
remoteDir
- The remote directory
public File getLocalFile(RemoteFile remoteFile)
remoteFile
- The remote file
public int getNewFileCount()
public int getUpdatedFileCount()
public int getRemovedFileCount()
public int getFailedUpdateCount()
public boolean isCleanUpdate()
public void resetFileCounts()
public int checkUpdateStatus(RemoteFile remoteFile)
remoteFile
- The remote file
public String getLocalVersion(RemoteFile remoteFile)
remoteFile
- The remote file
public void updateFileVersion(RemoteFile remoteFile)
remoteFile
- The remote filepublic void backupFile(RemoteFile remoteFile)
remoteFile
- The remote filepublic void unregisterFile(RemoteFile remoteFile)
remoteFile
- The remote filepublic void cleanRemovedFiles(RemoteDirectory remoteDirectory)
remoteDirectory
- The remote directory to clean-uppublic void pruneEmptyDirectories() throws IOException
IOException
public void add(RemoteDirectory remoteDir)
remoteDir
- The remote directory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |