Skip to content

Commit b2dccf6

Browse files
author
Prasanna Santhanam
committed
Removing unused simulator component library
And the components-simulator.xml configuration. Both are unused as we use Spring injection now. Remove unused rebootVM method Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 956a596 commit b2dccf6

4 files changed

Lines changed: 0 additions & 182 deletions

File tree

‎agent-simulator/tomcatconf/components-simulator.xml.in‎

Lines changed: 0 additions & 54 deletions
This file was deleted.

‎plugins/hypervisors/simulator/resources/components-simulator.xml‎

Lines changed: 0 additions & 66 deletions
This file was deleted.

‎plugins/hypervisors/simulator/src/com/cloud/agent/manager/MockVmManagerImpl.java‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -193,28 +193,6 @@ public String startVM(String vmName, NicTO[] nics,
193193
return null;
194194
}
195195

196-
public boolean rebootVM(String vmName) {
197-
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);
198-
try {
199-
txn.start();
200-
MockVm vm = _mockVmDao.findByVmName(vmName);
201-
if (vm != null) {
202-
vm.setState(State.Running);
203-
_mockVmDao.update(vm.getId(), (MockVMVO) vm);
204-
205-
}
206-
txn.commit();
207-
} catch (Exception ex) {
208-
txn.rollback();
209-
throw new CloudRuntimeException("unable to reboot vm " + vmName, ex);
210-
} finally {
211-
txn.close();
212-
txn = Transaction.open(Transaction.CLOUD_DB);
213-
txn.close();
214-
}
215-
return true;
216-
}
217-
218196
@Override
219197
public Map<String, MockVMVO> getVms(String hostGuid) {
220198
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);

‎plugins/hypervisors/simulator/src/com/cloud/configuration/SimulatorComponentLibrary.java‎

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)