mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Refactored
This commit is contained in:
parent
f625900b8b
commit
62df1ce6a9
@ -79,6 +79,7 @@ import com.cloud.api.commands.GetCloudIdentifierCmd;
|
|||||||
import com.cloud.api.commands.PrepareForMaintenanceCmd;
|
import com.cloud.api.commands.PrepareForMaintenanceCmd;
|
||||||
import com.cloud.api.commands.PreparePrimaryStorageForMaintenanceCmd;
|
import com.cloud.api.commands.PreparePrimaryStorageForMaintenanceCmd;
|
||||||
import com.cloud.api.commands.ReconnectHostCmd;
|
import com.cloud.api.commands.ReconnectHostCmd;
|
||||||
|
import com.cloud.api.commands.RegisterCmd;
|
||||||
import com.cloud.api.commands.RemovePortForwardingServiceCmd;
|
import com.cloud.api.commands.RemovePortForwardingServiceCmd;
|
||||||
import com.cloud.api.commands.StartRouterCmd;
|
import com.cloud.api.commands.StartRouterCmd;
|
||||||
import com.cloud.api.commands.StartSystemVMCmd;
|
import com.cloud.api.commands.StartSystemVMCmd;
|
||||||
@ -1398,8 +1399,10 @@ public class ManagementServerImpl implements ManagementServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] createApiKeyAndSecretKey(Long userId)
|
public String[] createApiKeyAndSecretKey(RegisterCmd cmd)
|
||||||
{
|
{
|
||||||
|
Long userId = cmd.getId();
|
||||||
|
|
||||||
User user = _userDao.findById(userId);
|
User user = _userDao.findById(userId);
|
||||||
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
@ -2687,10 +2690,10 @@ public class ManagementServerImpl implements ManagementServer {
|
|||||||
return _asyncMgr.submitAsyncJob(job, true);
|
return _asyncMgr.submitAsyncJob(job, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
// @Override
|
||||||
public boolean recoverVirtualMachine(long vmId) throws ResourceAllocationException, InternalErrorException {
|
// public boolean recoverVirtualMachine(long vmId) throws ResourceAllocationException, InternalErrorException {
|
||||||
return _vmMgr.recoverVirtualMachine(vmId);
|
// return _vmMgr.recoverVirtualMachine(vmId);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user