public class StorageDevice extends DomainWrapper<com.abiquo.server.core.infrastructure.storage.StorageDeviceDto>
StorageDeviceDto
. The Storage Device Resource offers the
functionality of managing the external storage.
http://community.abiquo.com/display/ABI20/StorageDeviceResource
Modifier and Type | Class and Description |
---|---|
static class |
StorageDevice.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
StorageDevice(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.storage.StorageDeviceDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static StorageDevice.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
Datacenter datacenter) |
void |
delete()
Delete the storage device.
|
StoragePool |
findRemoteStoragePool(com.google.common.base.Predicate<StoragePool> filter)
Retrieve the first storage pool matching the filter within the list of storage pools in this
device (synchronized with the device).
|
StoragePool |
findStoragePool(com.google.common.base.Predicate<StoragePool> filter)
Retrieve the first storage pool matching the filter within the list of storage pools in this
device (unsynchronized with the device).
|
Tier |
findTierInDatacenter(com.google.common.base.Predicate<Tier> filter)
Retrieve the first tier matching the filter within the list of tiers in the datacenter.
|
Datacenter |
getDatacenter()
Retrieve the datacenter where this storage device is.
|
Integer |
getId() |
String |
getIscsiIp() |
int |
getIscsiPort() |
String |
getManagementIp() |
int |
getManagementPort() |
String |
getName() |
String |
getPassword() |
StoragePool |
getStoragePool(String id)
Retrieve a single storage pool in this device from Abiquo database.
|
String |
getType() |
String |
getUsername() |
List<StoragePool> |
listRemoteStoragePools()
Retrieve the list of storage pools in this device (synchronized with the device).
|
List<StoragePool> |
listRemoteStoragePools(com.google.common.base.Predicate<StoragePool> filter)
Retrieve a filtered list of storage pools in this device (synchronized with the device).
|
List<StoragePool> |
listStoragePools()
Retrieve the list of storage pools in this device from Abiquo database (may not be
synchronized with the device).
|
List<StoragePool> |
listStoragePools(com.google.common.base.Predicate<StoragePool> filter)
Retrieve a filtered list of storage pools in this device from Abiquo database (may not be
synchronized with the device).
|
List<Tier> |
listTiersFromDatacenter()
Retrieve the list of tiers in the datacenter using this device.
|
List<Tier> |
listTiersFromDatacenter(com.google.common.base.Predicate<Tier> filter)
Retrieve a filtered list of tiers in the datacenter using this device.
|
void |
save()
Create a new storage device.
|
void |
setIscsiIp(String iscsiIp) |
void |
setIscsiPort(int iscsiPort) |
void |
setManagementIp(String managementIp) |
void |
setManagementPort(int managementPort) |
void |
setName(String name) |
void |
setPassword(String password) |
void |
setType(String type) |
void |
setUsername(String username) |
String |
toString() |
void |
update()
Update storage device information in the server with the data from this device.
|
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected StorageDevice(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.storage.StorageDeviceDto target)
public void delete()
public void save()
public void update()
public Datacenter getDatacenter()
public List<StoragePool> listRemoteStoragePools()
http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public List<StoragePool> listRemoteStoragePools(com.google.common.base.Predicate<StoragePool> filter)
filter
- Filter to be applied to the list. http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public StoragePool findRemoteStoragePool(com.google.common.base.Predicate<StoragePool> filter)
filter
- Filter to be applied to the list.null
if there
is none. http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public List<StoragePool> listStoragePools()
http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public List<StoragePool> listStoragePools(com.google.common.base.Predicate<StoragePool> filter)
filter
- Filter to be applied to the list. http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public StoragePool findStoragePool(com.google.common.base.Predicate<StoragePool> filter)
filter
- Filter to be applied to the list.null
if there
is none. http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievestoragepools
public StoragePool getStoragePool(String id)
id
- Unique ID of the storage device in this datacenter.null
if it does not exist. http://community.abiquo.com/display/ABI20/StoragePoolResource#StoragePoolResource-
Retrievearegisteredpool
public List<Tier> listTiersFromDatacenter()
http://community.abiquo.com/display/ABI20/TierResource#TierResource-Retrievethelistoftiers
public List<Tier> listTiersFromDatacenter(com.google.common.base.Predicate<Tier> filter)
filter
- Filter to be applied to the list.
http://community.abiquo.com/display/ABI20/TierResource#TierResource-Retrievethelistoftiers
public Tier findTierInDatacenter(com.google.common.base.Predicate<Tier> filter)
filter
- Filter to be applied to the list.null
if there is none. http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
Retrievethelistofstoragedevices
public static StorageDevice.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, Datacenter datacenter)
public Integer getId()
public String getIscsiIp()
public int getIscsiPort()
public String getManagementIp()
public int getManagementPort()
public String getName()
public String getPassword()
public String getType()
public String getUsername()
public void setIscsiIp(String iscsiIp)
public void setIscsiPort(int iscsiPort)
public void setManagementIp(String managementIp)
public void setManagementPort(int managementPort)
public void setName(String name)
public void setPassword(String password)
public void setType(String type)
public void setUsername(String username)
Copyright © 2009-2013 jclouds. All Rights Reserved.