Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.jclouds.cloudsigma;
 
 import java.util.Set;
 
Provides synchronous access to CloudSigma.

Author(s):
Adrian Cole
See also:
CloudSigmaAsyncClient
 
 @Timeout(duration = 60, timeUnit = .)
 public interface CloudSigmaClient {

   
Get profile info

Returns:
info or null, if not found
 
    ProfileInfo getProfileInfo();

   
list of server uuids in your account

Returns:
or empty set if no servers are found
 
    Set<StringlistServers();

   
Get all servers info

Returns:
or empty set if no servers are found
 
    Set<? extends ServerInfolistServerInfo();

   

Parameters:
uuid what to get
Returns:
null, if not found
 
    ServerInfo getServerInfo(String uuid);

   
create a new server

Parameters:
server
Returns:
newly created server
 
    ServerInfo createServer(Server server);

   
set server configuration

Parameters:
uuid what server to change
serverData what values to change
Returns:
new data
 
    ServerInfo setServerConfiguration(String uuidServer server);

   
Destroy a server

Parameters:
uuid what to destroy
 
    void destroyServer(String uuid);

   
Start a server

Parameters:
uuid what to start
   void startServer(String uuid);

   
Stop a server

Kills the server immediately, equivalent to a power failure. Server reverts to a stopped status if it is persistent and is automatically destroyed otherwise.

Parameters:
uuid what to stop
   void stopServer(String uuid);

   
Shutdown a server

Sends the server an ACPI power-down event. Server reverts to a stopped status if it is persistent and is automatically destroyed otherwise.

note

behaviour on shutdown depends on how your server OS is set up to respond to an ACPI power button signal.

Parameters:
uuid what to shutdown
   void shutdownServer(String uuid);

   
Reset a server

Parameters:
uuid what to reset
   void resetServer(String uuid);

   
list of drive uuids in your account

Returns:
or empty set if no drives are found
   Set<StringlistDrives();

   
Get all drives info

Returns:
or empty set if no drives are found
   Set<? extends DriveInfolistDriveInfo();

   

Parameters:
uuid what to get
Returns:
null, if not found
   DriveInfo getDriveInfo(String uuid);

   
create a new drive

Parameters:
createDrive required parameters: name, size
Returns:
newly created drive
   DriveInfo createDrive(Drive createDrive);

   
set extra drive data

Parameters:
uuid what drive to change
driveData what values to change
Returns:
new data
   DriveInfo setDriveData(String uuidDriveData driveData);

   
Destroy a drive

Parameters:
uuid what to delete
   void destroyDrive(String uuid);

   
list of drive uuids that are in the library

Returns:
or empty set if no drives are found
list of cd uuids that are in the library

Returns:
or empty set if no cds are found
   Set<StringlistStandardCds();

   
list of image uuids that are in the library

Returns:
or empty set if no images are found
Clone an existing drive. By default, the size is the same as the source

Parameters:
sourceUuid source to clone
newName name of the resulting drive
options options to control size
Returns:
new drive
   DriveInfo cloneDrive(String sourceUuidString newNameCloneDriveOptions... options);

   
list of vlan uuids in your account

Returns:
or empty set if no vlans are found
   Set<StringlistVLANs();

   
Get all vlans info

Returns:
or empty set if no vlans are found
   Set<? extends VLANInfolistVLANInfo();

   

Parameters:
uuid what to get
Returns:
null, if not found
   VLANInfo getVLANInfo(String uuid);

   
create a new vlan

Parameters:
vlan
Returns:
newly created vlan
   VLANInfo createVLAN(String name);

   
set vlan configuration

Parameters:
uuid what vlan to change
newName what the new name is
Returns:
new data
   VLANInfo renameVLAN(String uuidString newName);

   
Destroy a vlan

Parameters:
uuid what to destroy
   void destroyVLAN(String uuid);

   
list of ip uuids in your account

Returns:
or empty set if no ips are found
   Set<StringlistStaticIPs();

   
Get all ips info

Returns:
or empty set if no ips are found
   Set<? extends StaticIPInfolistStaticIPInfo();

   

Parameters:
uuid what to get
Returns:
null, if not found
create a new ip

Returns:
newly created ip
Destroy a ip

Parameters:
uuid what to destroy
   void destroyStaticIP(String uuid);
New to GrepCode? Check out our FAQ X