com.microsoft.tfs.core.clients.versioncontrol.localworkspace
Class LocalMetadataTable

java.lang.Object
  extended by 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


Field Summary
protected static java.lang.String FILE_EXTENSION_SLOT_ONE
           
protected static java.lang.String FILE_EXTENSION_SLOT_THREE
           
protected static java.lang.String FILE_EXTENSION_SLOT_TWO
           
 
Constructor Summary
LocalMetadataTable(java.lang.String fileName)
           
LocalMetadataTable(java.lang.String fileName, LocalMetadataTable cachedLoadSource)
           
LocalMetadataTable(java.lang.String filename, LocalMetadataTable cachedLoadSource, int retryCount)
           
 
Method Summary
protected  boolean cachedLoad(LocalMetadataTable source)
           
 void close()
           
protected  void close(boolean disposing)
           
protected  java.lang.String getFilename()
           
 com.microsoft.tfs.jni.FileSystemAttributes getSavedAttributes()
           
static java.lang.String getSlotOnePath(java.lang.String filename)
           
static java.lang.String getSlotThreePath(java.lang.String filename)
           
static java.lang.String getSlotTwoPath(java.lang.String filename)
           
protected  void initialize()
           
 boolean isAborted()
          If true, all changes made to this file will be ignored.
 boolean isDirty()
           
 boolean isEligibleForCachedLoad()
          If true, the owning transaction may cache this table for a future cached load.
protected abstract  void load(java.io.InputStream is)
           
protected abstract  boolean save(java.io.OutputStream os)
           
protected  void saveComplete()
           
 void setAborted(boolean aborted)
           
 void setDirty(boolean dirty)
           
 void setEligibleForCachedLoad(boolean eligibleForCachedLoad)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.