public class IsoDomainListSyncronizer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
guestToolsSetupIsoPrefix |
static String |
regexToolPattern |
Modifier and Type | Method and Description |
---|---|
void |
fetchIsoDomains()
Check and update if needed each Iso domain in each Data Center in the system.
|
List<RepoFileMetaData> |
getCachedIsoListByDomainId(Guid isoStorageDomainId,
FileTypeExtension fileTypeExtension)
Returns the cached Iso file meta data list, for storage domain.
|
List<RepoFileMetaData> |
getCachedIsoListByPoolAndDomainId(Guid isoStoragePoolId,
Guid isoStorageDomainId)
Returns the cached Iso file meta data list, of the storage pool Id with the storage domain id.
|
static IsoDomainListSyncronizer |
getInstance()
Returns the singleton instance.
|
List<RepoFileMetaData> |
getUserRequestForStorageDomainRepoFileList(Guid storageDomainId,
FileTypeExtension fileTypeExtension,
boolean forceRefresh)
Returns a RepoFilesMetaData list with Iso file names for storage domain Id and with file type extension.
If user choose to refresh the cache, and a problem occurs, then returns null. |
void |
refresheIsoDomainWhenActivateDomain(Guid isoStorageDomainId,
Guid storagePoolId)
Refresh the Iso domain when activating the domain,
with executing a new Thread to prevent long lock status for the domain.
|
public static final String guestToolsSetupIsoPrefix
public static final String regexToolPattern
public static IsoDomainListSyncronizer getInstance()
public void fetchIsoDomains()
public List<RepoFileMetaData> getUserRequestForStorageDomainRepoFileList(Guid storageDomainId, FileTypeExtension fileTypeExtension, boolean forceRefresh)
storageDomainId
- - The storage domain Id, which we fetch the Iso list from.fileTypeExtension
- - The fileTypeExtension we want to fetch the files from the cache.forceRefresh
- - Indicates if the domain should be refreshed from VDSM.public void refresheIsoDomainWhenActivateDomain(Guid isoStorageDomainId, Guid storagePoolId)
IsoStorageDomainId
- - The storage domain Id we want to get the file list from.storagePoolId
- - The storage pool Id we get an Iso active domain, we want to get the file list from (used mainly for log issues).public List<RepoFileMetaData> getCachedIsoListByPoolAndDomainId(Guid isoStoragePoolId, Guid isoStorageDomainId)
IsoStorageDomainId
- - The storage domain Id we want to get the file list from.IsoStoragePoolId
- - The storage pool Id we want to get the file list from.public List<RepoFileMetaData> getCachedIsoListByDomainId(Guid isoStorageDomainId, FileTypeExtension fileTypeExtension)
IsoStorageDomainId
- - The storage domain Id we want to get the file list from.Copyright © 2012. All Rights Reserved.