|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.HiveInfo
Describes a vault hive on the server.
| Nested Class Summary | |
static interface |
HiveInfo.HiveType
Constants identifying the type of archive files stored in a vault hive. |
| Constructor Summary | |
HiveInfo(HiveInfo source)
construct a new HiveInfo from the source |
|
HiveInfo(int ID)
Deprecated. |
|
HiveInfo(int hiveType,
java.lang.String name,
java.lang.String rootDirectory,
java.lang.String cacheDirectory,
java.lang.String archiveDirectory,
java.lang.String rootCacheAgentArchiveDirectory,
boolean bAllowNewArchives,
int storageLimitThreshold,
long maxCacheSize,
int cacheCleanupInterval)
Creates a new HiveInfo object. |
|
| Method Summary | |
HiveInfo |
copy()
return a copy of this HiveInfo instance |
boolean |
equals(java.lang.Object source)
returns true if the Object passed in is a HiveInfo instance, with the same set of values as this HiveInfo instance |
boolean |
getAllowNewArchives()
Indicates whether new archive files can be added to the hive. |
java.lang.String |
getArchiveDirectory()
Path to the hive's Archive directory. |
int |
getCacheCleanupInterval()
Seconds between cache cleanup operations. |
java.lang.String |
getCacheDirectory()
Path to the hive's Cache directory. |
int |
getID()
The number assigned by StarTeam to identify the hive. |
long |
getMaxCacheSize()
Maximum number of megabytes of hard disk space that the cache can use. |
java.lang.String |
getName()
The name of the hive. |
java.lang.String |
getRootCacheAgentArchiveDirectory()
Same folder path as for ArchiveDirectory but from the perspective of the computer on which the Root Cache Agent is installed. |
java.lang.String |
getRootDirectory()
Shortcut to creating path to Cache and Archive directories; when set, CacheDirectory and ArchiveDirectory do not need to be set. |
int |
getStorageLimitThreshold()
Percentage of total disk space allowed for hive. |
int |
getType()
The number assigned by StarTeam to identify the the type of archive files stored in the hive: 0 for unknown; 1 for PVCS, 2 for VSS, or 3 for Native II. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isEqualTo(HiveInfo other)
Return true if this HiveInfo is equal to the argument. |
void |
setAllowNewArchives(boolean bAllowNewArchives)
Set whether new archive files can be added to the hive. |
void |
setArchiveDirectory(java.lang.String archiveDirectory)
Set the path to the hiv's Archive directory. |
void |
setCacheCleanupInterval(int cacheCleanupInterval)
Set the number of seconds between cache cleanup operations. |
void |
setCacheDirectory(java.lang.String cacheDirectory)
Set the path to the hive's Cache directory. |
void |
setMaxCacheSize(long maxCacheSize)
Set the maximum number of megabytes of hard disk space that the cache can use. |
void |
setName(java.lang.String name)
Set the name of the hive. |
void |
setRootCacheAgentArchiveDirectory(java.lang.String rootCacheAgentArchiveDirectory)
Set the Root Cache Agent Archive Directory. |
void |
setRootDirectory(java.lang.String rootDirectory)
Set the shortcut for paths to the Cache and Archive directories; when set, CacheDirectory and ArchiveDirectory do not need to be set. |
void |
setStorageLimitThreshold(int storageLimitThreshold)
Set the percentage of total disk space allowed for the hive. |
java.lang.String |
toString()
Return a string representation of the HiveInfo object. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HiveInfo(int hiveType,
java.lang.String name,
java.lang.String rootDirectory,
java.lang.String cacheDirectory,
java.lang.String archiveDirectory,
java.lang.String rootCacheAgentArchiveDirectory,
boolean bAllowNewArchives,
int storageLimitThreshold,
long maxCacheSize,
int cacheCleanupInterval)
hiveType - One of the HiveType values described above.name - Name of the hive.rootDirectory - Root directory of the hive.cacheDirectory - Cache directory of the hive.archiveDirectory - Archive directory of the hive.rootCacheAgentArchiveDirectory - Directory for the root cache agent of the hive.bAllowNewArchives - true = allow new archives, false = do not allow.storageLimitThreshold - Hive's storage limit threshold.maxCacheSize - 64-bit value specifying the hive's maximum cache size.public HiveInfo(int ID)
public HiveInfo(HiveInfo source)
source - HiveInfo the HiveInfo to copy| Method Detail |
public HiveInfo copy()
public int getID()
public int getType()
public java.lang.String getName()
public void setName(java.lang.String name)
name - The new hive name. Note that on UNIX-based systems the name should not include any spaces.public java.lang.String getRootDirectory()
public void setRootDirectory(java.lang.String rootDirectory)
rootDirectory - The new root directory.public java.lang.String getCacheDirectory()
public void setCacheDirectory(java.lang.String cacheDirectory)
cacheDirectory - The new path to the hive's Cache directory.public java.lang.String getArchiveDirectory()
public void setArchiveDirectory(java.lang.String archiveDirectory)
archiveDirectory - The new path to the hive's Archive directory.public java.lang.String getRootCacheAgentArchiveDirectory()
public void setRootCacheAgentArchiveDirectory(java.lang.String rootCacheAgentArchiveDirectory)
rootCacheAgentArchiveDirectory - The new path to the Root Cache Agent Archive Directory.public long getMaxCacheSize()
public void setMaxCacheSize(long maxCacheSize)
maxCacheSize - The new maximum number of megabytes of hard disk space that the cache can use.public int getCacheCleanupInterval()
public void setCacheCleanupInterval(int cacheCleanupInterval)
cacheCleanupInterval - The number of seconds between cache cleanup operations.public int getStorageLimitThreshold()
public void setStorageLimitThreshold(int storageLimitThreshold)
storageLimitThreshold - The percentage of total disk space allowed for the hive.public boolean getAllowNewArchives()
public void setAllowNewArchives(boolean bAllowNewArchives)
bAllowNewArchives - TRUE if new archives can be added, FALSE if not.public boolean isEqualTo(HiveInfo other)
other - the HiveInfo to compare with this one.
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object source)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||