public class Rack extends DomainWrapper<com.abiquo.server.core.infrastructure.RackDto>
RackDto
. Represents unmanaged racks in the Abiquo
platform.
http://community.abiquo.com/display/ABI20/RackResource
Modifier and Type | Class and Description |
---|---|
static class |
Rack.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
Rack(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.RackDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static Rack.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
Datacenter datacenter) |
void |
delete()
Delete the unmanaged rack.
|
Machine |
findMachine(com.google.common.base.Predicate<Machine> filter)
Retrieve the first physical machine matching the filter within the list of machines in this
rack.
|
Datacenter |
getDatacenter()
Retrieve the datacenter where this rack is.
|
Integer |
getId() |
Machine |
getMachine(Integer id)
Retrieve a single physical machine.
|
String |
getName() |
Integer |
getNrsq() |
String |
getShortDescription() |
Integer |
getVlanIdMax() |
Integer |
getVlanIdMin() |
Integer |
getVlanPerVdcReserved() |
String |
getVlansIdAvoided() |
boolean |
isHaEnabled() |
List<Machine> |
listMachines()
Retrieve the list of physical machines in this rack.
|
List<Machine> |
listMachines(com.google.common.base.Predicate<Machine> filter)
Retrieve a filtered list of physical machines in this rack.
|
void |
save()
Create a new unmanaged rack in Abiquo.
|
void |
setHaEnabled(boolean haEnabled) |
void |
setName(String name) |
void |
setNrsq(Integer nrsq) |
void |
setShortDescription(String description) |
void |
setVlanIdMax(Integer vlanIdMax) |
void |
setVlanIdMin(Integer vlanIdMin) |
void |
setVlanPerVdcReserved(Integer vlanPerVdcReserved) |
void |
setVlansIdAvoided(String vlansIdAvoided) |
String |
toString() |
void |
update()
Update rack information in the server with the data from this rack.
|
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected Rack(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.RackDto target)
public void delete()
public void save()
public void update()
public Datacenter getDatacenter()
public List<Machine> listMachines()
public List<Machine> listMachines(com.google.common.base.Predicate<Machine> filter)
filter
- Filter to be applied to the list. http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-
RetrievealistofMachines
public Machine findMachine(com.google.common.base.Predicate<Machine> filter)
filter
- Filter to be applied to the list. http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-
RetrievealistofMachines
public Machine getMachine(Integer id)
id
- Unique ID of the physical machine in this rack.null
if it does not exist.
http://community.abiquo.com/display/ABI20/MachineResource#MachineResource-RetrieveaMachine
public static Rack.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, Datacenter datacenter)
public Integer getId()
public String getName()
public String getShortDescription()
public void setName(String name)
public void setShortDescription(String description)
public void setHaEnabled(boolean haEnabled)
public boolean isHaEnabled()
public Integer getNrsq()
public Integer getVlanIdMax()
public Integer getVlanIdMin()
public Integer getVlanPerVdcReserved()
public String getVlansIdAvoided()
public void setNrsq(Integer nrsq)
public void setVlanIdMax(Integer vlanIdMax)
public void setVlanIdMin(Integer vlanIdMin)
public void setVlanPerVdcReserved(Integer vlanPerVdcReserved)
public void setVlansIdAvoided(String vlansIdAvoided)
Copyright © 2009-2013 jclouds. All Rights Reserved.