protected KVMHostInventory(KVMHostVO vo) { super(vo); this.setUsername(vo.getUsername()); this.setPassword(vo.getPassword()); this.setSshPort(vo.getPort()); }
@Override public void run(KVMDestroyVmExtensionPoint arg) { arg.destroyVmOnKvmFailed(host, vm, err); } });
public static APIAddKVMHostMsg __example__() { APIAddKVMHostMsg msg = new APIAddKVMHostMsg(); msg.setUsername("userName"); msg.setPassword("password"); msg.setSshPort(22); msg.setClusterUuid(uuid()); msg.setName("newHost"); msg.setManagementIp("127.0.0.1"); return msg; }
public static APIUpdateKVMHostMsg __example__() { APIUpdateKVMHostMsg msg = new APIUpdateKVMHostMsg(); msg.setUuid(uuid()); msg.setUsername("userName"); msg.setPassword("password"); msg.setSshPort(22); return msg; }
@Override public void run(KVMStopVmExtensionPoint arg) { arg.stopVmOnKvmSuccess(host, vm); } });
public void beforeRebootVmOnKvm(KVMHostInventory host, VmInstanceInventory vm) throws KVMException { for (KVMRebootVmExtensionPoint extp : rebootVmExts) { extp.beforeRebootVmOnKvm(host, vm); } }
public void afterMergeSnapshot(KVMHostInventory host, MergeVolumeSnapshotOnKvmMsg msg, KVMAgentCommands.MergeSnapshotCmd cmd) { for (KVMMergeSnapshotExtensionPoint ext : mergeSnapshotExts) { ext.afterMergeSnapshot(host, msg, cmd); } }
public void beforeAttachVolume(KVMHostInventory host, VmInstanceInventory vm, VolumeInventory vol, AttachDataVolumeCmd cmd, Map data) { for (KVMAttachVolumeExtensionPoint ext : attachVolumeExts) { ext.beforeAttachVolume(host, vm, vol, cmd, data); } }
public void attachVolumeFailed(KVMHostInventory host, VmInstanceInventory vm, VolumeInventory vol, AttachDataVolumeCmd cmd, ErrorCode err, Map data) { for (KVMAttachVolumeExtensionPoint ext : attachVolumeExts) { ext.attachVolumeFailed(host, vm, vol, cmd, err, data); } }
public void afterDetachVolume(KVMHostInventory host, VmInstanceInventory vm, VolumeInventory vol, DetachDataVolumeCmd cmd) { for (KVMDetachVolumeExtensionPoint ext : detachVolumeExts) { ext.afterDetachVolume(host, vm, vol, cmd); } }
@Override public String handleSyncHttpCall(ReportVmStateCmd cmd) { reportState(cmd); return null; } });
@Override public void fail(ErrorCode errorCode) { reply.setError(errorCode); extEmitter.afterMergeSnapshotFailed((KVMHostInventory) getSelfInventory(), msg, cmd, reply.getError()); bus.reply(msg, reply); completion.done(); } });
@Override public void run(KVMStartVmExtensionPoint arg) { arg.startVmOnKvmSuccess(host, spec); } });
@Override public void run(KVMRebootVmExtensionPoint arg) { arg.rebootVmOnKvmSuccess(host, vm); } });
public void afterMergeSnapshotFailed(KVMHostInventory host, MergeVolumeSnapshotOnKvmMsg msg, KVMAgentCommands.MergeSnapshotCmd cmd, ErrorCode err) { for (KVMMergeSnapshotExtensionPoint ext : mergeSnapshotExts) { ext.afterMergeSnapshotFailed(host, msg, cmd, err); } }
@Override public void run(KVMStartVmExtensionPoint arg) { arg.startVmOnKvmFailed(host, spec, err); } });
public void afterAttachVolume(KVMHostInventory host, VmInstanceInventory vm, VolumeInventory vol, AttachDataVolumeCmd cmd) { for (KVMAttachVolumeExtensionPoint ext : attachVolumeExts) { ext.afterAttachVolume(host, vm, vol, cmd); } }
public void detachVolumeFailed(KVMHostInventory host, VmInstanceInventory vm, VolumeInventory vol, DetachDataVolumeCmd cmd, ErrorCode err) { for (KVMDetachVolumeExtensionPoint ext : detachVolumeExts) { ext.detachVolumeFailed(host, vm, vol, cmd, err); } }
public void beforeDestroyVmOnKvm(KVMHostInventory host, VmInstanceInventory vm) throws KVMException { for (KVMDestroyVmExtensionPoint extp : destroyVmExts) { extp.beforeDestroyVmOnKvm(host, vm); } }