public class ResourceManager extends Object implements IVdsEventListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
AddAsyncRunningVm(Guid vmId,
IVdsEventListener listener) |
void |
AddVds(VDS vds,
boolean isInternal) |
IVdsEventListener |
getBackendCallback()
This will return the EventListener from WCF Callback Channel if exists or the EventListener if not
|
IVdsEventListener |
getEventListener() |
static ResourceManager |
getInstance() |
VdsManager |
GetVdsManager(Guid vdsId) |
void |
HandleVdsFinishedInit(Guid vdsId) |
void |
InternalSetVmStatus(VM vm,
VMStatus status)
Set vm status without saving to DB
|
boolean |
isDomainReportedInProblem(Guid storagePoolId,
Guid domainId) |
boolean |
IsVmDuringInitiating(Guid vm_guid) |
boolean |
IsVmInAsyncRunningList(Guid vmId) |
void |
MasterDomainNotOperational(Guid storageDomainId,
Guid storagePoolId) |
void |
ProcessOnClientIpChange(VDS vds,
Guid vmId) |
void |
ProcessOnCpuFlagsChange(Guid vdsId) |
void |
ProcessOnVmPoweringUp(Guid vds_id,
Guid vmid,
String display_ip,
int display_port) |
void |
ProcessOnVmStop(Guid vmId)
Temoporary patch.
|
void |
RemoveAsyncRunningCommand(Guid vmId) |
void |
RemoveAsyncRunningVm(Guid vmId) |
void |
RemoveVds(Guid vdsId) |
void |
RemoveVmFromDownVms(Guid vdsId,
Guid vmId) |
void |
Rerun(Guid VmId) |
void |
RerunFailedCommand(Guid vmId,
Guid vdsId)
Initiate rerun event when vm failed to run
|
boolean |
RestartVds(Guid vdsId) |
void |
RunFailedAutoStartVM(Guid vmId) |
void |
RunningSucceded(Guid vmId) |
<P extends VDSParametersBase> |
runVdsCommand(VDSCommandType commandType,
P parameters) |
void |
SetVmDown(VM vm) |
void |
SetVmUnknown(VM vm)
Set vm status to DOWN and save to DB.
|
void |
StorageDomainNotOperational(Guid storageDomainId,
Guid storagePoolId) |
void |
StoragePoolStatusChange(Guid storagePoolId,
StoragePoolStatus status,
AuditLogType auditLogType,
VdcBllErrors error) |
void |
StoragePoolStatusChange(Guid storagePoolId,
StoragePoolStatus status,
AuditLogType auditLogType,
VdcBllErrors error,
TransactionScopeOption transactionScopeOption) |
void |
StoragePoolStatusChanged(Guid storagePoolId,
StoragePoolStatus status) |
void |
StoragePoolUpEvent(storage_pool storagePool,
boolean isSpmStarted) |
void |
SuccededToRunVm(Guid vmId,
Guid vdsId) |
void |
UpdateVdsDomainsData(Guid vdsId,
String vdsName,
Guid storagePoolId,
ArrayList<VDSDomainsData> vdsDomainData) |
void |
UpdateVdsDynamicData(VdsDynamic vdsDynamic) |
void |
UpdateVdsStatisticsData(VdsStatistics vdsStatistics) |
void |
VdsMovedToMaintanance(Guid vdsId) |
void |
VdsNonOperational(Guid vdsId,
NonOperationalReason reason,
boolean logCommand,
boolean saveToDb,
Guid domainId) |
void |
VdsNotResponding(VDS vds)
implement this interface with blank methods just in case no event listener is sent from frontend
|
void |
VdsUpEvent(Guid vdsId) |
public static ResourceManager getInstance()
public boolean AddAsyncRunningVm(Guid vmId, IVdsEventListener listener)
public void RemoveAsyncRunningVm(Guid vmId)
public void RerunFailedCommand(Guid vmId, Guid vdsId)
vmId - public boolean IsVmInAsyncRunningList(Guid vmId)
public void HandleVdsFinishedInit(Guid vdsId)
public IVdsEventListener getEventListener()
public IVdsEventListener getBackendCallback()
public void AddVds(VDS vds, boolean isInternal)
public void RemoveVds(Guid vdsId)
public VdsManager GetVdsManager(Guid vdsId)
public void SetVmUnknown(VM vm)
vm - public void SetVmDown(VM vm)
public boolean IsVmDuringInitiating(Guid vm_guid)
public void InternalSetVmStatus(VM vm, VMStatus status)
vm - status - public void UpdateVdsDynamicData(VdsDynamic vdsDynamic)
public void UpdateVdsStatisticsData(VdsStatistics vdsStatistics)
public <P extends VDSParametersBase> VDSReturnValue runVdsCommand(VDSCommandType commandType, P parameters)
public void VdsNotResponding(VDS vds)
VdsNotResponding in interface IVdsEventListenervds - public void VdsNonOperational(Guid vdsId, NonOperationalReason reason, boolean logCommand, boolean saveToDb, Guid domainId)
VdsNonOperational in interface IVdsEventListenerpublic void VdsMovedToMaintanance(Guid vdsId)
VdsMovedToMaintanance in interface IVdsEventListenerpublic void StorageDomainNotOperational(Guid storageDomainId, Guid storagePoolId)
StorageDomainNotOperational in interface IVdsEventListenerpublic void MasterDomainNotOperational(Guid storageDomainId, Guid storagePoolId)
MasterDomainNotOperational in interface IVdsEventListenerpublic void ProcessOnVmStop(Guid vmId)
IVdsEventListenerProcessOnVmStop in interface IVdsEventListenerpublic void VdsUpEvent(Guid vdsId)
VdsUpEvent in interface IVdsEventListenerpublic void ProcessOnClientIpChange(VDS vds, Guid vmId)
ProcessOnClientIpChange in interface IVdsEventListenerpublic void ProcessOnCpuFlagsChange(Guid vdsId)
ProcessOnCpuFlagsChange in interface IVdsEventListenerpublic void Rerun(Guid VmId)
Rerun in interface IVdsEventListenerpublic void RunningSucceded(Guid vmId)
RunningSucceded in interface IVdsEventListenerpublic void ProcessOnVmPoweringUp(Guid vds_id, Guid vmid, String display_ip, int display_port)
ProcessOnVmPoweringUp in interface IVdsEventListenerpublic void RemoveAsyncRunningCommand(Guid vmId)
RemoveAsyncRunningCommand in interface IVdsEventListenerpublic void StoragePoolUpEvent(storage_pool storagePool, boolean isSpmStarted)
StoragePoolUpEvent in interface IVdsEventListenerpublic void StoragePoolStatusChange(Guid storagePoolId, StoragePoolStatus status, AuditLogType auditLogType, VdcBllErrors error, TransactionScopeOption transactionScopeOption)
StoragePoolStatusChange in interface IVdsEventListenerpublic void StoragePoolStatusChange(Guid storagePoolId, StoragePoolStatus status, AuditLogType auditLogType, VdcBllErrors error)
StoragePoolStatusChange in interface IVdsEventListenerpublic void StoragePoolStatusChanged(Guid storagePoolId, StoragePoolStatus status)
StoragePoolStatusChanged in interface IVdsEventListenerpublic void RunFailedAutoStartVM(Guid vmId)
RunFailedAutoStartVM in interface IVdsEventListenerpublic boolean RestartVds(Guid vdsId)
RestartVds in interface IVdsEventListenerpublic void UpdateVdsDomainsData(Guid vdsId, String vdsName, Guid storagePoolId, ArrayList<VDSDomainsData> vdsDomainData)
Copyright © 2012. All Rights Reserved.