|
| 1 | +/** |
| 2 | + * Copyright (C) 2011 Cloud.com, Inc. All rights reserved. |
| 3 | + */ |
| 4 | + |
| 5 | +package com.cloud.hypervisor.vmware.manager; |
| 6 | + |
| 7 | +import java.io.File; |
| 8 | +import java.util.List; |
| 9 | +import java.util.Map; |
| 10 | + |
| 11 | +//import com.cloud.cluster.CheckPointManager; |
| 12 | +import com.cloud.hypervisor.vmware.mo.HostMO; |
| 13 | +import com.cloud.hypervisor.vmware.mo.VirtualEthernetCardType; |
| 14 | +import com.cloud.hypervisor.vmware.util.VmwareContext; |
| 15 | +import com.cloud.utils.Pair; |
| 16 | +import com.vmware.vim25.ManagedObjectReference; |
| 17 | + |
| 18 | +public interface VmwareManager { |
| 19 | + public final String CONTEXT_STOCK_NAME = "vmwareMgr"; |
| 20 | + |
| 21 | + // this limitation comes from the fact that we are using linked clone on shared VMFS storage, |
| 22 | + // we need to limit the size of vCenter cluster, http://en.wikipedia.org/wiki/VMware_VMFS |
| 23 | + public final int MAX_HOSTS_PER_CLUSTER = 8; |
| 24 | + |
| 25 | + String composeWorkerName(); |
| 26 | + |
| 27 | + String getSystemVMIsoFileNameOnDatastore(); |
| 28 | + void prepareSecondaryStorageStore(String strStorageUrl); |
| 29 | + |
| 30 | + void setupResourceStartupParams(Map<String, Object> params); |
| 31 | + List<ManagedObjectReference> addHostToPodCluster(VmwareContext serviceContext, long dcId, Long podId, Long clusterId, |
| 32 | + String hostInventoryPath) throws Exception; |
| 33 | + |
| 34 | + String getManagementPortGroupByHost(HostMO hostMo) throws Exception; |
| 35 | + String getServiceConsolePortGroupName(); |
| 36 | + String getManagementPortGroupName(); |
| 37 | + |
| 38 | + String getSecondaryStorageStoreUrl(long dcId); |
| 39 | + |
| 40 | + File getSystemVMKeyFile(); |
| 41 | + |
| 42 | + VmwareStorageManager getStorageManager(); |
| 43 | + long pushCleanupCheckpoint(String hostGuid, String vmName); |
| 44 | + void popCleanupCheckpoint(long checkpiont); |
| 45 | + void gcLeftOverVMs(VmwareContext context); |
| 46 | + |
| 47 | + Pair<Integer, Integer> getAddiionalVncPortRange(); |
| 48 | + VirtualEthernetCardType getGuestNicDeviceType(); |
| 49 | + |
| 50 | + int getMaxHostsPerCluster(); |
| 51 | + |
| 52 | + boolean beginExclusiveOperation(int timeOutSeconds); |
| 53 | + void endExclusiveOperation(); |
| 54 | +} |
0 commit comments