@Beta
public interface ServerAdminApi
Modifier and Type | Method and Description |
---|---|
String |
createBackup(String id,
String imageName,
BackupType backupType,
int rotation,
CreateBackupOfServerOptions... options)
Create backup of a server.
|
Boolean |
injectNetworkInfo(String id)
Inject network info into a server.
|
Boolean |
liveMigrate(String id,
String host,
boolean blockMigration,
boolean diskOverCommit)
Live migrate a server.
|
Boolean |
lock(String id)
Lock a server.
|
Boolean |
migrate(String id)
Migrate a server.
|
Boolean |
pause(String id)
Pause a server.
|
Boolean |
resetNetwork(String id)
Reset network of a server.
|
Boolean |
resume(String id)
Resume a server.
|
Boolean |
suspend(String id)
Suspend a server.
|
Boolean |
unlock(String id)
Unlock a server.
|
Boolean |
unpause(String id)
Unpause a server.
|
@Named(value="serverAdmin:suspend") Boolean suspend(String id)
id
- id of the server@Named(value="serverAdmin:resume") Boolean resume(String id)
id
- id of the server@Named(value="serverAdmin:migrate") Boolean migrate(String id)
id
- id of the server@Named(value="serverAdmin:lock") Boolean lock(String id)
id
- id of the server@Named(value="serverAdmin:unlock") Boolean unlock(String id)
id
- id of the server@Named(value="serverAdmin:resetNetwork") Boolean resetNetwork(String id)
id
- id of the server@Named(value="serverAdmin:createBackup") String createBackup(String id, String imageName, BackupType backupType, int rotation, CreateBackupOfServerOptions... options)
id
- id of the serverimageName
- the name of the image to createbackupType
- the type of backuprotation
- the number of images to retain (0 to simply overwrite)options
- optional rotation and/or metadata parameters@Named(value="serverAdmin:pause") Boolean pause(String id)
id
- id of the server@Named(value="serverAdmin:unpause") Boolean unpause(String id)
id
- id of the server@Named(value="serverAdmin:liveMigrate") Boolean liveMigrate(String id, String host, boolean blockMigration, boolean diskOverCommit)
id
- id of the serverCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.