com.microsoft.tfs.core.config.persistence
Interface PersistenceStoreProvider

All Known Implementing Classes:
DefaultPersistenceStoreProvider

public interface PersistenceStoreProvider

A PersistenceStoreProvider is used by a TFSConnection to locate cache and configuration files. A PersistenceStoreProvider is supplied to a TFSConnection by a ConnectionAdvisor.

TFSConnection allows multiple threads to use a PersistenceStoreProvider concurrently.

For a default implementation, see DefaultPersistenceStoreProvider.

See Also:
TFSConnection, ConnectionAdvisor, DefaultPersistenceStoreProvider
Since:
TEE-SDK-11.0
Thread-safety:
thread-compatible

Method Summary
 FilesystemPersistenceStore getCachePersistenceStore()
           Gets the PersistenceStore for storing cache information.
 FilesystemPersistenceStore getConfigurationPersistenceStore()
           Gets the PersistenceStore for storing non-cache configuration information.
 FilesystemPersistenceStore getLogPersistenceStore()
           Gets the PersistenceStore for storing log files.
 

Method Detail

getCachePersistenceStore

FilesystemPersistenceStore getCachePersistenceStore()

Gets the PersistenceStore for storing cache information. Cache information is information that can be re-created from server data but improves performance to have it locally.

Returns:
a FilesystemPersistenceStore object for storing cache data, never null

getConfigurationPersistenceStore

FilesystemPersistenceStore getConfigurationPersistenceStore()

Gets the PersistenceStore for storing non-cache configuration information. User configuration information is unlike cache information in that it cannot be recreated without input from the user.

Returns:
a FilesystemPersistenceStore object for storing non-cache configuration data, never null

getLogPersistenceStore

FilesystemPersistenceStore getLogPersistenceStore()

Gets the PersistenceStore for storing log files. Returning null disables logging to files.

Returns:
a FilesystemPersistenceStore object for storing non-cache configuration data, null to disable storing log files on disk


© 2015 Microsoft. All rights reserved.