public interface ElasticStackApi extends Closeable
Modifier and Type | Method and Description |
---|---|
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
|
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,
Payload content)
Write binary data to a drive
|
void |
writeDrive(String uuid,
Payload content,
long offset) |
Set<String> listServers()
Set<ServerInfo> listServerInfo()
ServerInfo getServerInfo(String uuid)
uuid
- what to getServerInfo createServer(Server createServer)
createServer
- ServerInfo setServerConfiguration(String uuid, Server setServer)
uuid
- what server to changesetServer
- what values to changevoid 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 getDriveInfo createDrive(Drive createDrive)
createDrive
- required parameters: name, sizeDriveInfo setDriveData(String uuid, DriveData setDrive)
uuid
- what drive to changesetDrive
- what values to changevoid 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 tovoid imageDrive(String source, String destination, ImageConversionType conversionType)
conversionType
- Supports 'gzip' or 'gunzip' conversions.imageDrive(String, String)
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 <=4096kvoid writeDrive(String uuid, Payload content)
uuid
- drive to writecontent
- what to write.
void writeDrive(String uuid, 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)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.