|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.HiveInfo
public final class HiveInfo
Describes a vault hive on the server.
| Nested Class Summary | |
|---|---|
static class |
HiveInfo.HiveType
Constants identifying the type of archive files stored in a vault hive. |
| Constructor Summary | |
|---|---|
HiveInfo(HiveInfo.HiveType hiveType)
Create a new HiveInfo object |
|
HiveInfo(HiveInfo source)
construct a new HiveInfo from the source |
|
HiveInfo(int ID,
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)
Constructor for the case when we already know the hive object's ID. |
|
| Method Summary | |
|---|---|
HiveInfo |
copy()
return a copy of 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. |
HiveInfo.HiveType |
getType()
The HiveType assigned by StarTeam to identify the the type of archive files stored in the hive: |
boolean |
isEqualTo(HiveInfo other)
returns true if the Object passed in is a HiveInfo instance, with the same set of values as this HiveInfo instance |
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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HiveInfo(HiveInfo.HiveType hiveType)
hiveType - One of the HiveType values described aboveHiveInfo.HiveType
public HiveInfo(int ID,
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)
ID - The ID of this hive object.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.cacheCleanupInterval - Timespan between cache refresh operations.public HiveInfo(HiveInfo source)
source - HiveInfo the HiveInfo to copy| Method Detail |
|---|
public HiveInfo copy()
public boolean isEqualTo(HiveInfo other)
other - Object another instance of a HiveInfo object
public int getID()
public HiveInfo.HiveType 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 java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||