Examples of ServerInfo


Examples of org.jclouds.cloudsigma2.domain.ServerInfo

      }
   }

   @Test(dependsOnMethods = {"testCreateServer"})
   public void testEditServer() throws Exception {
      ServerInfo serverInfo = new ServerInfo.Builder()
            .name("Edited Server")
            .memory(new BigInteger("5368709120"))
            .cpu(2000)
            .vncPassword("edited_password")
            .build();
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ServerInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/servers-single.json", MediaType.APPLICATION_JSON))
                  .build());

      ServerInfo result = api.createServer(new ServerInfo.Builder()
            .cpu(100)
            .memory(new BigInteger("536870912"))
            .name("testServerAcc")
            .vncPassword("testserver")
            .build());
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ServerInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/servers-single.json", MediaType.APPLICATION_JSON))
                  .build());

      ServerInfo result = api.editServer(uuid, new ServerInfo.Builder()
            .name("testServerAcc")
            .cpu(100)
            .memory(new BigInteger("536870912"))
            .vncPassword("testserver")
            .build());
View Full Code Here

Examples of org.jclouds.elasticstack.domain.ServerInfo

      Server toCreate = small(name, drive.getUuid(), defaultVncPassword).mem(template.getHardware().getRam())
               .cpu((int) (template.getHardware().getProcessors().get(0).getSpeed()))
               .tags(template.getOptions().getTags()).userMetadata(template.getOptions().getUserMetadata()).build();

      ServerInfo from = client.createServer(toCreate);
      client.startServer(from.getUuid());
      from = client.getServerInfo(from.getUuid());
      return new NodeAndInitialCredentials<ServerInfo>(from, from.getUuid(), LoginCredentials.builder()
            .password(defaultVncPassword).build());
   }
View Full Code Here

Examples of org.jitterbit.integration.client.server.ServerInfo

        askServerForWsdls();
    }

    private boolean checkCache() {
        IntegrationServer server = IntegrationServer.getInstance();
        ServerInfo serverInfo = server.getServerInfo();
        if (serverInfo != null) {
            List<WsdlFile> wsdls = WsdlListCache.restore(serverInfo.getGuid());
            if (!wsdls.isEmpty()) {
                fileDisplayer.displayFiles(serverInfo, wsdls);
                return true;
            }
        }
View Full Code Here

Examples of org.opentransactions.otapi.ServerInfo

                    }

                    for (int j = 0; j < serverID.length; j++) {
                        Storable storable1 = otapi.CreateObject(StoredObjectType.STORED_OBJ_SERVER_INFO);
                        if (storable1 != null) {
                            ServerInfo serverInfo = ServerInfo.ot_dynamic_cast(storable1);
                            if (serverInfo != null) {
                                serverInfo.setServer_id(serverID[j]);
                                System.out.println("serverType[j]:"+serverType[j]);
                                serverInfo.setServer_type(serverType[j]);
                                contactNYM.AddServerInfo(serverInfo);

                            }
                        }
                    }
View Full Code Here

Examples of org.projectforge.rest.objects.ServerInfo

    if (user == null) {
      log.error("No user given for rest call.");
      throw new IllegalArgumentException("No user given for the rest call: authenticate/getToken.");
    }
    final UserObject userObject = PFUserDOConverter.getUserObject(user);
    final ServerInfo info = new ServerInfo(AppVersion.VERSION.toString());
    info.setUser(userObject);
    Version clientVersion = null;
    if (clientVersionString != null) {
      clientVersion = new Version(clientVersionString);
    }
    if (clientVersion == null) {
      info.setStatus(ServerInfo.STATUS_UNKNOWN);
    } else if (clientVersion.compareTo(new Version("5.0")) < 0) {
      info.setStatus(ServerInfo.STATUS_CLIENT_TO_OLD);
    } else if (clientVersion.compareTo(AppVersion.VERSION) > 0) {
      info.setStatus(ServerInfo.STATUS_CLIENT_NEWER_THAN_SERVER);
    } else {
      info.setStatus(ServerInfo.STATUS_OK);
    }
    final String json = JsonUtils.toJson(info);
    return Response.ok(json).build();
  }
View Full Code Here

Examples of org.restlet.client.data.ServerInfo

     *
     * @return The server-specific information.
     */
    public ServerInfo getServerInfo() {
        // Lazy initialization with double-check.
        ServerInfo s = this.serverInfo;
        if (s == null) {
            synchronized (this) {
                s = this.serverInfo;
                if (s == null) {
                    this.serverInfo = s = new ServerInfo();
                }
            }
        }
        return s;
    }
View Full Code Here

Examples of org.restlet.data.ServerInfo

     *
     * @return The server-specific information.
     */
    @Override
    public ServerInfo getServerInfo() {
        final ServerInfo result = super.getServerInfo();

        if (!this.serverAdded) {
            result.setAddress(this.httpCall.getServerAddress());
            result.setAgent(Engine.VERSION_HEADER);
            result.setPort(this.httpCall.getServerPort());
            this.serverAdded = true;
        }

        return result;
    }
View Full Code Here

Examples of org.teamcascade.java.brjc.api.domain.ServerInfo

    final int buildNumber = json.getInt("buildNumber");
    final DateTime buildDate = JsonParseUtil.parseDateTime(json, "buildDate");
    final DateTime serverTime = JsonParseUtil.parseOptionalDateTime(json, "serverTime");
    final String scmInfo = json.getString("scmInfo");
    final String serverTitle = json.getString("serverTitle");
    return new ServerInfo(baseUri, version, buildNumber, buildDate, serverTime, scmInfo, serverTitle);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.