use of com.cloud.legacymodel.communication.command.CheckConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class NotAValidCommand method testCheckConsoleProxyLoadCommand.
@Test
public void testCheckConsoleProxyLoadCommand() {
final CheckConsoleProxyLoadCommand consoleProxyCommand = new CheckConsoleProxyLoadCommand();
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(consoleProxyCommand, this.citrixResourceBase);
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.CheckConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class LibvirtComputingResourceTest method testCheckConsoleProxyLoadCommand.
@Test
public void testCheckConsoleProxyLoadCommand() {
final long proxyVmId = 0l;
final String proxyVmName = "host";
final String proxyManagementIp = "127.0.0.1";
final int proxyCmdPort = 0;
final CheckConsoleProxyLoadCommand command = new CheckConsoleProxyLoadCommand(proxyVmId, proxyVmName, proxyManagementIp, proxyCmdPort);
final LibvirtRequestWrapper wrapper = LibvirtRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(command, this.libvirtComputingResource);
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.CheckConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class LibvirtCheckConsoleProxyLoadCommandWrapper method execute.
@Override
public Answer execute(final Command command, final AgentResource agentResource) {
final CheckConsoleProxyLoadCommand cmd = (CheckConsoleProxyLoadCommand) command;
final long proxyVmId = cmd.getProxyVmId();
final String proxyVmName = cmd.getProxyVmName();
final String proxyManagementIp = cmd.getProxyManagementIp();
final int proxyCmdPort = cmd.getProxyCmdPort();
return executeProxyLoadScan(cmd, proxyVmId, proxyVmName, proxyManagementIp, proxyCmdPort);
}
use of com.cloud.legacymodel.communication.command.CheckConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class CitrixCheckConsoleProxyLoadCommandWrapper method execute.
@Override
public Answer execute(final Command command, final ServerResource serverResource) {
final CheckConsoleProxyLoadCommand cmd = (CheckConsoleProxyLoadCommand) command;
final long proxyVmId = cmd.getProxyVmId();
final String proxyVmName = cmd.getProxyVmName();
final String proxyManagementIp = cmd.getProxyManagementIp();
final int cmdPort = cmd.getProxyCmdPort();
return executeProxyLoadScan(command, proxyVmId, proxyVmName, proxyManagementIp, cmdPort);
}
Aggregations