|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ElasticStackApi
Provides synchronous access to elasticstack via their REST API.
| Method Summary | |
|---|---|
ServerInfo |
createAndStartServer(Server createServer)
create and start a new server |
DriveInfo |
createDrive(Drive createDrive)
create a new drive |
ServerInfo |
createServer(Server createServer)
create a new server |
void |
destroyDrive(String uuid)
Destroy a drive |
void |
destroyServer(String uuid)
Destroy a server |
DriveInfo |
getDriveInfo(String uuid)
|
ServerInfo |
getServerInfo(String uuid)
|
void |
imageDrive(String source,
String destination)
Image a drive from another drive. |
void |
imageDrive(String source,
String destination,
ImageConversionType conversionType)
|
Set<DriveInfo> |
listDriveInfo()
Get all drives info |
Set<String> |
listDrives()
list of drive uuids in your account |
Set<ServerInfo> |
listServerInfo()
Get all servers info |
Set<String> |
listServers()
list of server uuids in your account |
Set<StandardDrive> |
listStandardDriveInfo()
Gets information about all standard drives |
Set<String> |
listStandardDrives()
Lists standard drive UUIDs in your account |
org.jclouds.io.Payload |
readDrive(String uuid,
long offset,
long size)
Read binary data from a drive |
void |
resetServer(String uuid)
Reset a server |
DriveInfo |
setDriveData(String uuid,
DriveData setDrive)
set extra drive data |
ServerInfo |
setServerConfiguration(String uuid,
Server setServer)
set server configuration |
void |
shutdownServer(String uuid)
Shutdown a server Sends the server an ACPI power-down event. |
void |
startServer(String uuid)
Start a server |
void |
stopServer(String uuid)
Stop a server Kills the server immediately, equivalent to a power failure. |
void |
writeDrive(String uuid,
org.jclouds.io.Payload content)
Write binary data to a drive |
void |
writeDrive(String uuid,
org.jclouds.io.Payload content,
long offset)
|
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
Set<String> listServers()
Set<ServerInfo> listServerInfo()
ServerInfo getServerInfo(String uuid)
uuid - what to get
ServerInfo createServer(Server createServer)
createServer -
ServerInfo setServerConfiguration(String uuid,
Server setServer)
uuid - what server to changesetServer - what values to change
void destroyServer(String uuid)
uuid - what to destroyvoid startServer(String uuid)
uuid - what to startvoid stopServer(String uuid)
uuid - what to stopvoid shutdownServer(String uuid)
uuid - what to shutdownvoid resetServer(String uuid)
uuid - what to resetSet<String> listDrives()
Set<DriveInfo> listDriveInfo()
Set<String> listStandardDrives()
Set<StandardDrive> listStandardDriveInfo()
DriveInfo getDriveInfo(String uuid)
uuid - what to get
DriveInfo createDrive(Drive createDrive)
createDrive - required parameters: name, size
DriveInfo setDriveData(String uuid,
DriveData setDrive)
uuid - what drive to changesetDrive - what values to change
void destroyDrive(String uuid)
uuid - what to deleteServerInfo createAndStartServer(Server createServer)
createServer -
void imageDrive(String source,
String destination)
source - drive to copy fromdestination - drive to copy to
void imageDrive(String source,
String destination,
ImageConversionType conversionType)
conversionType - Supports 'gzip' or 'gunzip' conversions.imageDrive(String, String)
org.jclouds.io.Payload readDrive(String uuid,
long offset,
long size)
uuid - drive to readoffset - start at the specified offset in bytessize - the specified size in bytes; must be <=4096k
void writeDrive(String uuid,
org.jclouds.io.Payload content)
uuid - drive to writecontent - what to write.
void writeDrive(String uuid,
org.jclouds.io.Payload content,
long offset)
offset - the byte offset in the target drive at which to start writing, not an offset in the
input stream.writeDrive(String, Payload)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||