CP-25565: Added new classes to cache and project

Signed-off-by: serenc <seren.corbett@citrix.com>
This commit is contained in:
serenc 2017-11-28 10:35:51 +00:00
parent 3e9e2609e8
commit 4837c0a5df
3 changed files with 18 additions and 0 deletions

View File

@ -48,6 +48,8 @@ namespace XenAdmin.Network
// keep sorted please
private readonly ChangeableDictionary<XenRef<Bond>, Bond> _bond = new ChangeableDictionary<XenRef<Bond>, Bond>();
private readonly ChangeableDictionary<XenRef<Blob>, Blob> _blob = new ChangeableDictionary<XenRef<Blob>, Blob>();
private readonly ChangeableDictionary<XenRef<Cluster>, Cluster> _cluster = new ChangeableDictionary<XenRef<Cluster>, Cluster>();
private readonly ChangeableDictionary<XenRef<Cluster_host>, Cluster_host> _cluster_host = new ChangeableDictionary<XenRef<Cluster_host>, Cluster_host>();
private readonly ChangeableDictionary<XenRef<XenAPI.Console>, XenAPI.Console> _console = new ChangeableDictionary<XenRef<XenAPI.Console>, XenAPI.Console>();
private readonly ChangeableDictionary<XenRef<Folder>, Folder> _folders = new ChangeableDictionary<XenRef<Folder>, Folder>();
private readonly ChangeableDictionary<XenRef<DockerContainer>, DockerContainer> _dockerContainers = new ChangeableDictionary<XenRef<DockerContainer>, DockerContainer>();
@ -125,6 +127,16 @@ namespace XenAdmin.Network
get { return contents(_vm_appliance); }
}
public Cluster[] Clusters
{
get { return contents(_cluster); }
}
public Cluster_host[] ClusterHosts
{
get { return contents(_cluster_host); }
}
public Folder[] Folders
{
get { return contents(_folders); }

View File

@ -89,5 +89,7 @@ namespace XenAdmin.Network
PVS_cache_storage[] PVS_cache_storages { get; }
void UpdateDockerContainersForVM(IList<DockerContainer> d, VM v);
void CheckDockerContainersBatchChange();
Cluster[] Clusters { get; }
Cluster_host[] ClusterHosts { get; }
}
}

View File

@ -346,6 +346,10 @@
<Compile Include="XenAPI\allocation_algorithm.cs" />
<Compile Include="XenAPI\ApiVersion.cs" />
<Compile Include="XenAPI\bond_mode.cs" />
<Compile Include="XenAPI\Cluster.cs" />
<Compile Include="XenAPI\Cluster_host.cs" />
<Compile Include="XenAPI\cluster_host_operation.cs" />
<Compile Include="XenAPI\cluster_operation.cs" />
<Compile Include="XenAPI\DeprecatedAttribute.cs" />
<Compile Include="XenAPI\DR_task.cs" />
<Compile Include="XenAPI\Feature.cs" />