org.jclouds.elasticstack.domain.VNC类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.jclouds.elasticstack.domain.VNC类的一些代码示例,展示了VNC类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。VNC类的具体详情如下:
包路径:org.jclouds.elasticstack.domain.VNC
类名称:VNC

VNC介绍

暂无

代码示例

代码示例来源:origin: com.amysta.jclouds.api/elasticstack

String vncIp = from.getVnc().getIp();
if (apiVersion.equals("2.0")) {
  builder.put("vnc", "auto");
if (from.getVnc().getPassword() != null)
  builder.put("password", from.getVnc().getPassword());
if (from.getVnc().isTls())
  builder.put("vnc:tls", "on");
if (!from.getTags().isEmpty())

代码示例来源:origin: jclouds/legacy-jclouds

builder.vnc(new VNC(from.get("vnc:ip") == null ? "auto" : from.get("vnc:ip"), from.get("vnc:password"), from.containsKey("vnc:tls")
    && Boolean.valueOf(from.get("vnc:tls"))));

代码示例来源:origin: org.apache.jclouds.api/elasticstack

if (other.vnc != null)
   return false;
} else if (!vnc.equals(other.vnc))
  return false;
return true;

代码示例来源:origin: jclouds/legacy-jclouds

@Test(dependsOnMethods = "testCreateAndStartServer")
public void testConnectivity() throws Exception {
 HostAndPort vncsocket = HostAndPort.fromParts(server.getVnc().getIp(), 5900);
 Logger.getAnonymousLogger().info("awaiting vnc: " + vncsocket);
 assert socketTester.apply(vncsocket) : server;
 HostAndPort sshsocket = HostAndPort.fromParts(server.getNics().get(0).getDhcp(), 22);
 Logger.getAnonymousLogger().info("awaiting ssh: " + sshsocket);
 assert socketTester.apply(sshsocket) : server;
 doConnectViaSsh(server, getSshCredentials(server));
}

代码示例来源:origin: jclouds/legacy-jclouds

protected LoginCredentials getSshCredentials(Server server) {
 return LoginCredentials.builder().user("toor").password(server.getVnc().getPassword()).build();
}

代码示例来源:origin: org.jclouds.api/elasticstack

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((bootDeviceIds == null) ? 0 : bootDeviceIds.hashCode());
 result = prime * result + cpu;
 result = prime * result + ((devices == null) ? 0 : devices.hashCode());
 result = prime * result + mem;
 result = prime * result + ((nics == null) ? 0 : nics.hashCode());
 result = prime * result + (persistent ? 1231 : 1237);
 result = prime * result + ((smp == null) ? 0 : smp.hashCode());
 result = prime * result + ((vnc == null) ? 0 : vnc.hashCode());
 return result;
}

代码示例来源:origin: apache/jclouds

@Test(dependsOnMethods = "testCreateAndStartServer")
public void testConnectivity() throws Exception {
 HostAndPort vncsocket = HostAndPort.fromParts(server.getVnc().getIp(), 5900);
 Logger.getAnonymousLogger().info("awaiting vnc: " + vncsocket);
 assert socketTester.apply(vncsocket) : server;
 HostAndPort sshsocket = HostAndPort.fromParts(server.getNics().get(0).getDhcp(), 22);
 Logger.getAnonymousLogger().info("awaiting ssh: " + sshsocket);
 assert socketTester.apply(sshsocket) : server;
 doConnectViaSsh(server, getSshCredentials(server));
}

代码示例来源:origin: apache/jclouds

protected LoginCredentials getSshCredentials(Server server) {
 return LoginCredentials.builder().user("toor").password(server.getVnc().getPassword()).build();
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((bootDeviceIds == null) ? 0 : bootDeviceIds.hashCode());
 result = prime * result + cpu;
 result = prime * result + ((devices == null) ? 0 : devices.hashCode());
 result = prime * result + mem;
 result = prime * result + ((nics == null) ? 0 : nics.hashCode());
 result = prime * result + (persistent ? 1231 : 1237);
 result = prime * result + ((smp == null) ? 0 : smp.hashCode());
 result = prime * result + ((vnc == null) ? 0 : vnc.hashCode());
 return result;
}

代码示例来源:origin: jclouds/legacy-jclouds

String vncIp = from.getVnc().getIp();
if (apiVersion.equals("2.0")) {
  builder.put("vnc", "auto");
if (from.getVnc().getPassword() != null)
  builder.put("vnc:password", from.getVnc().getPassword());
if (from.getVnc().isTls())
  builder.put("vnc:tls", "on");
if (from.getTags().size() != 0)

代码示例来源:origin: com.amysta.jclouds.api/elasticstack

builder.vnc(new VNC(from.get("vnc:ip") == null ? "auto" : from.get("vnc:ip"), from.get("password"), from.containsKey("vnc:tls")
    && Boolean.valueOf(from.get("vnc:tls"))));

代码示例来源:origin: jclouds/legacy-jclouds

protected void checkStartedServer() {
 System.out.println(new Gson().toJson(server));
 assertNotNull(server.getUuid());
 assertNotNull(server.getUser());
 assertEquals(server.getName(), prefix);
 assertEquals(server.isPersistent(), true);
 assertEquals(server.getDevices(), ImmutableMap.of("ide:0:0", new IDEDevice.Builder(0, 0).uuid(drive.getUuid())
      .build()));
 assertEquals(server.getBootDeviceIds(), ImmutableSet.of("ide:0:0"));
 assertEquals(server.getNics().get(0).getDhcp(), server.getVnc().getIp());
 assertEquals(server.getNics().get(0).getModel(), Model.E1000);
 assertEquals(server.getStatus(), ServerStatus.ACTIVE);
}

代码示例来源:origin: apache/jclouds

@Override
protected LoginCredentials getSshCredentials(Server server) {
 return LoginCredentials.builder().user("root").password(server.getVnc().getPassword()).build();
}

代码示例来源:origin: io.cloudsoft.jclouds.api/elasticstack

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((bootDeviceIds == null) ? 0 : bootDeviceIds.hashCode());
 result = prime * result + cpu;
 result = prime * result + ((devices == null) ? 0 : devices.hashCode());
 result = prime * result + mem;
 result = prime * result + ((nics == null) ? 0 : nics.hashCode());
 result = prime * result + (persistent ? 1231 : 1237);
 result = prime * result + ((smp == null) ? 0 : smp.hashCode());
 result = prime * result + ((vnc == null) ? 0 : vnc.hashCode());
 return result;
}

代码示例来源:origin: jclouds/legacy-jclouds

if (other.vnc != null)
   return false;
} else if (!vnc.equals(other.vnc))
  return false;
return true;

代码示例来源:origin: org.jclouds.api/elasticstack

String vncIp = from.getVnc().getIp();
if (apiVersion.equals("2.0")) {
  builder.put("vnc", "auto");
if (from.getVnc().getPassword() != null)
  builder.put("vnc:password", from.getVnc().getPassword());
if (from.getVnc().isTls())
  builder.put("vnc:tls", "on");
if (from.getTags().size() != 0)

代码示例来源:origin: io.cloudsoft.jclouds.api/elasticstack

builder.vnc(new VNC(from.get("vnc:ip") == null ? "auto" : from.get("vnc:ip"), from.get("password"), from.containsKey("vnc:tls")
    && Boolean.valueOf(from.get("vnc:tls"))));

代码示例来源:origin: apache/jclouds

protected void checkStartedServer() {
 System.out.println(new Gson().toJson(server));
 assertNotNull(server.getUuid());
 assertNotNull(server.getUser());
 assertEquals(server.getName(), prefix);
 assertEquals(server.isPersistent(), true);
 assertEquals(server.getDevices(), ImmutableMap.of("ide:0:0", new IDEDevice.Builder(0, 0).uuid(drive.getUuid())
      .build()));
 assertEquals(server.getBootDeviceIds(), ImmutableSet.of("ide:0:0"));
 assertEquals(server.getNics().get(0).getDhcp(), server.getVnc().getIp());
 assertEquals(server.getNics().get(0).getModel(), Model.E1000);
 assertEquals(server.getStatus(), ServerStatus.ACTIVE);
}

代码示例来源:origin: org.apache.jclouds.api/elasticstack

@Override
public int hashCode() {
 final int prime = 31;
 int result = super.hashCode();
 result = prime * result + ((bootDeviceIds == null) ? 0 : bootDeviceIds.hashCode());
 result = prime * result + cpu;
 result = prime * result + ((devices == null) ? 0 : devices.hashCode());
 result = prime * result + mem;
 result = prime * result + ((nics == null) ? 0 : nics.hashCode());
 result = prime * result + (persistent ? 1231 : 1237);
 result = prime * result + ((smp == null) ? 0 : smp.hashCode());
 result = prime * result + ((vnc == null) ? 0 : vnc.hashCode());
 return result;
}

代码示例来源:origin: io.cloudsoft.jclouds.api/elasticstack

if (other.vnc != null)
   return false;
} else if (!vnc.equals(other.vnc))
  return false;
return true;

相关文章