|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NovaClient
Provides access to OpenStack Nova via their REST API.
All commands return a Future of the result from OpenStack Nova. Any exceptions incurred during processing will be wrapped in anExecutionException
as documented in
Future.get()
.
NovaAsyncClient
,
Method Summary | |
---|---|
void |
changeAdminPass(int id,
String adminPass)
This operation allows you to change the administrative password. |
void |
confirmResizeServer(int id)
The resize function converts an existing server to a different flavor, in essence, scaling the server up or down. |
Image |
createImageFromServer(String imageName,
int serverId)
This operation creates a new image for the given server ID. |
Server |
createServer(String name,
String imageRef,
String flavorRef,
CreateServerOptions... options)
This operation asynchronously provisions a new server. |
boolean |
deleteImage(int id)
This operation deletes an image from the system. |
boolean |
deleteServer(int id)
This operation deletes a cloud server instance from the system. |
Addresses |
getAddresses(int serverId)
List all server addresses returns empty set if the server doesn't exist |
Flavor |
getFlavor(int id)
This operation returns details of the specified flavor. |
Image |
getImage(int id)
This operation returns details of the specified image. |
Server |
getServer(int id)
This operation returns details of the specified server. |
Set<Flavor> |
listFlavors(ListOptions... options)
List available flavors (IDs and names only) in order to retrieve all details, pass the option withDetails() |
Set<Image> |
listImages(ListOptions... options)
List available images (IDs and names only) in order to retrieve all details, pass the option withDetails() |
Set<String> |
listPrivateAddresses(int serverId)
List all private server addresses returns empty set if the server doesn't exist |
Set<String> |
listPublicAddresses(int serverId)
List all public server addresses returns empty set if the server doesn't exist |
Set<Server> |
listServers(ListOptions... options)
List all servers (IDs and names only) This operation provides a list of servers associated with your identity. |
void |
rebootServer(int id,
RebootType rebootType)
The reboot function allows for either a soft or hard reboot of a server. |
void |
rebuildServer(int id,
RebuildServerOptions... options)
The rebuild function removes all data on the server and replaces it with the specified image. |
void |
renameServer(int id,
String newName)
This operation allows you to update the name of the server. |
void |
resizeServer(int id,
int flavorId)
The resize function converts an existing server to a different flavor, in essence, scaling the server up or down. |
void |
revertResizeServer(int id)
The resize function converts an existing server to a different flavor, in essence, scaling the server up or down. |
Method Detail |
---|
Set<Server> listServers(ListOptions... options)
withDetails()
Server getServer(int id)
Server
boolean deleteServer(int id)
Server
void rebootServer(int id, RebootType rebootType)
rebootType
- With a soft reboot, the operating system is signaled to restart, which allows for a
graceful shutdown of all processes. A hard reboot is the equivalent of power cycling
the server.void resizeServer(int id, int flavorId)
void confirmResizeServer(int id)
void revertResizeServer(int id)
Server createServer(String name, String imageRef, String flavorRef, CreateServerOptions... options)
options
- - used to specify extra files, metadata, or ip parameters during server creation.void rebuildServer(int id, RebuildServerOptions... options)
options
- - imageId is an optional argument. If it is not specified, the server is rebuilt
with the original imageId.void changeAdminPass(int id, String adminPass)
void renameServer(int id, String newName)
Set<Flavor> listFlavors(ListOptions... options)
withDetails()
Flavor getFlavor(int id)
Flavor
Set<Image> listImages(ListOptions... options)
withDetails()
Image getImage(int id)
Image
boolean deleteImage(int id)
Image
Image createImageFromServer(String imageName, int serverId)
ResourceNotFoundException
- if the server is not foundImage
Addresses getAddresses(int serverId)
Set<String> listPublicAddresses(int serverId)
Set<String> listPrivateAddresses(int serverId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |