use of com.cloud.legacymodel.communication.command.WatchConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class LibvirtComputingResourceTest method testWatchConsoleProxyLoadCommand.
@Test
public void testWatchConsoleProxyLoadCommand() {
final int interval = 0;
final long proxyVmId = 0l;
final String proxyVmName = "host";
final String proxyManagementIp = "127.0.0.1";
final int proxyCmdPort = 0;
final WatchConsoleProxyLoadCommand command = new WatchConsoleProxyLoadCommand(interval, 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.WatchConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class NotAValidCommand method testWatchConsoleProxyLoadCommand.
@Test
public void testWatchConsoleProxyLoadCommand() {
final WatchConsoleProxyLoadCommand watchConsoleProxyCommand = new WatchConsoleProxyLoadCommand(0, 0, "", "", 0);
final CitrixRequestWrapper wrapper = CitrixRequestWrapper.getInstance();
assertNotNull(wrapper);
final Answer answer = wrapper.execute(watchConsoleProxyCommand, this.citrixResourceBase);
assertFalse(answer.getResult());
}
use of com.cloud.legacymodel.communication.command.WatchConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class LibvirtWatchConsoleProxyLoadCommandWrapper method execute.
@Override
public Answer execute(final Command command, final AgentResource serverResource) {
final WatchConsoleProxyLoadCommand cmd = (WatchConsoleProxyLoadCommand) 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.WatchConsoleProxyLoadCommand in project cosmic by MissionCriticalCloud.
the class CitrixWatchConsoleProxyLoadCommandWrapper method execute.
@Override
public Answer execute(final Command command, final ServerResource serverResource) {
final WatchConsoleProxyLoadCommand cmd = (WatchConsoleProxyLoadCommand) 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