2017-01-16 20:59:50 +01:00
|
|
|
|
/* Copyright (c) Citrix Systems, Inc.
|
2013-06-24 13:41:48 +02:00
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Redistribution and use in source and binary forms,
|
|
|
|
|
* with or without modification, are permitted provided
|
|
|
|
|
* that the following conditions are met:
|
|
|
|
|
*
|
|
|
|
|
* * Redistributions of source code must retain the above
|
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
|
* following disclaimer.
|
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
|
* copyright notice, this list of conditions and the
|
|
|
|
|
* following disclaimer in the documentation and/or other
|
|
|
|
|
* materials provided with the distribution.
|
|
|
|
|
*
|
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
|
|
|
|
|
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
|
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
|
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using XenAPI;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using XenAdmin.Model;
|
|
|
|
|
using XenAdmin.Core;
|
|
|
|
|
namespace XenAdmin.Network
|
|
|
|
|
{
|
|
|
|
|
public interface ICache
|
|
|
|
|
{
|
|
|
|
|
Bond[] Bonds { get; }
|
|
|
|
|
void CheckFoldersBatchChange();
|
|
|
|
|
void Clear();
|
|
|
|
|
void DeregisterBatchCollectionChanged<T>(EventHandler h) where T : XenObject<T>;
|
|
|
|
|
void DeregisterCollectionChanged<T>(CollectionChangeEventHandler h) where T : XenObject<T>;
|
|
|
|
|
T Find_By_Uuid<T>(string uuid) where T : XenObject<T>;
|
|
|
|
|
XenRef<T> FindRef<T>(T needle) where T : XenObject<T>;
|
|
|
|
|
Folder[] Folders { get; }
|
|
|
|
|
GPU_group[] GPU_groups { get; }
|
|
|
|
|
Host_cpu[] Host_cpus { get; }
|
|
|
|
|
int HostCount { get; }
|
|
|
|
|
Host[] Hosts { get; }
|
|
|
|
|
Message[] Messages { get; }
|
|
|
|
|
XenAPI.Network[] Networks { get; }
|
|
|
|
|
PBD[] PBDs { get; }
|
2013-11-14 12:06:50 +01:00
|
|
|
|
PCI[] PCIs { get; }
|
2013-06-24 13:41:48 +02:00
|
|
|
|
PGPU[] PGPUs { get; }
|
|
|
|
|
PIF[] PIFs { get; }
|
|
|
|
|
Pool_patch[] Pool_patches { get; }
|
2016-10-04 15:58:54 +02:00
|
|
|
|
Pool_update[] Pool_updates { get; }
|
2013-06-24 13:41:48 +02:00
|
|
|
|
Pool[] Pools { get; }
|
|
|
|
|
void AddFolder(XenRef<Folder> path, Folder folder);
|
|
|
|
|
void RemoveFolder(XenRef<Folder> path);
|
|
|
|
|
void AddAll<T>(List<T> l, Predicate<T> p) where T : XenObject<T>;
|
|
|
|
|
void RegisterBatchCollectionChanged<T>(EventHandler h) where T : XenObject<T>;
|
|
|
|
|
void RegisterCollectionChanged<T>(CollectionChangeEventHandler h) where T : XenObject<T>;
|
|
|
|
|
T Resolve<T>(XenRef<T> xenRef) where T : XenObject<T>;
|
|
|
|
|
Role[] Roles { get; }
|
|
|
|
|
SM[] SMs { get; }
|
|
|
|
|
SR[] SRs { get; }
|
|
|
|
|
Subject[] Subjects { get; }
|
|
|
|
|
bool TryResolve<T>(XenRef<T> xenRef, out T result) where T : XenObject<T>;
|
|
|
|
|
Tunnel[] Tunnels { get; }
|
|
|
|
|
bool UpdateFrom(IXenConnection connection, IList<ObjectChange> changes);
|
|
|
|
|
VBD[] VBDs { get; }
|
|
|
|
|
VDI[] VDIs { get; }
|
|
|
|
|
VGPU[] VGPUs { get; }
|
2013-09-18 10:43:49 +02:00
|
|
|
|
VGPU_type[] VGPU_types { get; }
|
2013-06-24 13:41:48 +02:00
|
|
|
|
VIF[] VIFs { get; }
|
2016-02-05 08:14:39 +01:00
|
|
|
|
VMSS[] VMSSs { get; }
|
2013-06-24 13:41:48 +02:00
|
|
|
|
VM_appliance[] VM_appliances { get; }
|
|
|
|
|
VM[] VMs { get; }
|
|
|
|
|
IEnumerable<IXenObject> XenSearchableObjects { get; }
|
2015-02-10 04:03:53 +01:00
|
|
|
|
DockerContainer[] DockerContainers { get; }
|
2016-08-09 12:12:34 +02:00
|
|
|
|
PVS_site[] PVS_sites { get; }
|
2016-07-13 14:36:49 +02:00
|
|
|
|
PVS_server[] PVS_servers { get; }
|
|
|
|
|
PVS_proxy[] PVS_proxies { get; }
|
2016-09-26 18:44:17 +02:00
|
|
|
|
PVS_cache_storage[] PVS_cache_storages { get; }
|
2015-02-23 18:02:06 +01:00
|
|
|
|
void UpdateDockerContainersForVM(IList<DockerContainer> d, VM v);
|
2015-02-04 10:48:32 +01:00
|
|
|
|
void CheckDockerContainersBatchChange();
|
2013-06-24 13:41:48 +02:00
|
|
|
|
}
|
|
|
|
|
}
|