com.microsoft.tfs.core.clients.versioncontrol.localworkspace
Class LocalMetadataTable
java.lang.Object
com.microsoft.tfs.core.clients.versioncontrol.localworkspace.LocalMetadataTable
- All Implemented Interfaces:
- java.io.Closeable
public abstract class LocalMetadataTable
- extends java.lang.Object
- implements java.io.Closeable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_EXTENSION_SLOT_ONE
protected static final java.lang.String FILE_EXTENSION_SLOT_ONE
- Constant Field Value:
".tf1"
- See Also:
- Constant Field Values
FILE_EXTENSION_SLOT_TWO
protected static final java.lang.String FILE_EXTENSION_SLOT_TWO
- Constant Field Value:
".tf2"
- See Also:
- Constant Field Values
FILE_EXTENSION_SLOT_THREE
protected static final java.lang.String FILE_EXTENSION_SLOT_THREE
- Constant Field Value:
".tf3"
- See Also:
- Constant Field Values
LocalMetadataTable
public LocalMetadataTable(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
LocalMetadataTable
public LocalMetadataTable(java.lang.String fileName,
LocalMetadataTable cachedLoadSource)
throws java.io.IOException
- Throws:
java.io.IOException
LocalMetadataTable
public LocalMetadataTable(java.lang.String filename,
LocalMetadataTable cachedLoadSource,
int retryCount)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Throws:
java.io.IOException
close
protected void close(boolean disposing)
throws java.io.IOException
- Throws:
java.io.IOException
load
protected abstract void load(java.io.InputStream is)
throws java.lang.Exception
- Throws:
java.lang.Exception
save
protected abstract boolean save(java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
initialize
protected void initialize()
saveComplete
protected void saveComplete()
cachedLoad
protected boolean cachedLoad(LocalMetadataTable source)
isDirty
public boolean isDirty()
setDirty
public void setDirty(boolean dirty)
isAborted
public boolean isAborted()
- If true, all changes made to this file will be ignored.
setAborted
public void setAborted(boolean aborted)
isEligibleForCachedLoad
public boolean isEligibleForCachedLoad()
- If true, the owning transaction may cache this table for a future cached
load.
setEligibleForCachedLoad
public void setEligibleForCachedLoad(boolean eligibleForCachedLoad)
getSlotOnePath
public static java.lang.String getSlotOnePath(java.lang.String filename)
getSlotTwoPath
public static java.lang.String getSlotTwoPath(java.lang.String filename)
getSlotThreePath
public static java.lang.String getSlotThreePath(java.lang.String filename)
getSavedAttributes
public com.microsoft.tfs.jni.FileSystemAttributes getSavedAttributes()
getFilename
protected java.lang.String getFilename()
© 2015 Microsoft. All rights reserved.