|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElasticStackClient
Provides synchronous access to elasticstack.
ElasticStackAsyncClient
,
Method Summary | |
---|---|
ServerInfo |
createAndStartServer(Server server)
create and start a new server |
DriveInfo |
createDrive(Drive createDrive)
create a new drive |
ServerInfo |
createServer(Server server)
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<? extends DriveInfo> |
listDriveInfo()
Get all drives info |
Set<String> |
listDrives()
list of drive uuids in your account |
Set<? extends ServerInfo> |
listServerInfo()
Get all servers info |
Set<String> |
listServers()
list of server 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 driveData)
set extra drive data |
ServerInfo |
setServerConfiguration(String uuid,
Server server)
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)
|
Method Detail |
---|
Set<String> listServers()
Set<? extends ServerInfo> listServerInfo()
ServerInfo getServerInfo(String uuid)
uuid
- what to get
ServerInfo createServer(Server server)
server
-
ServerInfo setServerConfiguration(String uuid, Server server)
uuid
- what server to changeserverData
- 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<? extends DriveInfo> listDriveInfo()
DriveInfo getDriveInfo(String uuid)
uuid
- what to get
DriveInfo createDrive(Drive createDrive)
createDrive
- required parameters: name, size
DriveInfo setDriveData(String uuid, DriveData driveData)
uuid
- what drive to changedriveData
- what values to change
void destroyDrive(String uuid)
uuid
- what to deleteServerInfo createAndStartServer(Server server)
server
-
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 <=4096k
void 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |