@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
53 lines (52 loc) • 1.87 kB
TypeScript
import { AppContext } from '../../data/app-context';
import { SharedCache, SharedCacheOptions } from '../shared-cache';
import { ClusterInventory, ClusterInventoryData, ClusterInventoryParams } from './cluster-inventory';
/**
* Cluster Inventory cache class.
*/
export declare class ClusterInventoryCache extends SharedCache<ClusterInventory, ClusterInventoryData, ClusterInventoryParams> {
private appContext;
private static uniqueId;
private static uniqueVersion;
private serverInventoryCache;
/**
* Initializes a new instance of the ClusterInventoryCache class.
*
* @param appContext the app context.
* @param options the option of shared cache.
*/
constructor(appContext: AppContext, options?: SharedCacheOptions);
/**
* Defines how to identify the cache entry by params.
*
* @param params the server inventory query params.
* @return the id string.
*/
private dataInstanceId;
/**
* Defines how to deserialize the class object from serialized data.
*
* @param serialized the serialized string;
*/
private dataDeserialize;
/**
* Defines how to serialize the class object to serialized data.
*
* @param instance the class instance.
*/
private dataSerialize;
/**
* Defines how to collect the cluster inventory data.
*
* @param params the server inventory query params.
* @return the Observable of ClusterInventory data.
*/
private dataQuery;
/**
* Defines how to collect the cluster node-server inventory data.
* @param clusterInventory the initial cluster inventory query params.
* @param params the parameters for cluster inventory query.
* @return Observable<ClusterInventory> the Observable of ClusterInventory data.
*/
private queryClusterNodeInventories;
}