org.jclouds.rimuhosting.miro
Interface RimuHostingClient


public interface RimuHostingClient

Provides synchronous access to RimuHosting.

Author:
Ivan Meredith
See Also:
RimuHostingAsyncClient,

Method Summary
 NewServerResponse createServer(String name, String imageId, String planId, CreateServerOptions... options)
          This operation creates a node based on its name, imageId and planId.
 List<String> destroyServer(Long id)
          Destroys a server.
 Set<? extends Image> getImageList()
          This operation returns a list of images that can be used for server creation.
 Set<? extends PricingPlan> getPricingPlanList()
          Returns a list of pricing plans that can be used for server creation.
 Server getServer(Long id)
          Gets a server based on its id.
 Set<? extends Server> getServerList()
          Returns a list of servers that belong to this identity.
 ServerInfo restartServer(Long id)
          Restarts a server.
 

Method Detail

getImageList

Set<? extends Image> getImageList()
This operation returns a list of images that can be used for server creation. c

See Also:
Image

getServerList

Set<? extends Server> getServerList()
Returns a list of servers that belong to this identity.

Returns:
An empty set if there are no servers.
See Also:
Server

getPricingPlanList

Set<? extends PricingPlan> getPricingPlanList()
Returns a list of pricing plans that can be used for server creation.

See Also:
PricingPlan

createServer

NewServerResponse createServer(String name,
                               String imageId,
                               String planId,
                               CreateServerOptions... options)
This operation creates a node based on its name, imageId and planId. A password can be specified with the option | withPassword() Key-Value @{link | metadata can be included with the option | withMetaData()

See Also:
TODO: add more CreateServerOptions

getServer

Server getServer(Long id)
Gets a server based on its id.

Returns:
null if server id is invalid.
See Also:
Server

restartServer

ServerInfo restartServer(Long id)
Restarts a server.

Returns:
State of the server.

destroyServer

List<String> destroyServer(Long id)
Destroys a server. This an async operation.

Returns:
A list of messages that have something to do with the shutdown. Can ignore safely.


Copyright © 2009-2011 jclouds. All Rights Reserved.