public class Enterprise extends DomainWithLimitsWrapper<com.abiquo.server.core.enterprise.EnterpriseDto>
EnterpriseDto.
http://community.abiquo.com/display/ABI20/EnterpriseResource| Modifier and Type | Class and Description |
|---|---|
static class |
Enterprise.Builder |
context, target| Modifier | Constructor and Description |
|---|---|
protected |
Enterprise(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.enterprise.EnterpriseDto target)
Constructor to be used only by the builder.
|
| Modifier and Type | Method and Description |
|---|---|
Limits |
allowDatacenter(Datacenter datacenter)
Allows the given datacenter to be used by this enterprise.
|
static Enterprise.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context) |
void |
delete()
Delete the enterprise.
|
void |
disableChef()
Disables chef in the enterprise.
|
Datacenter |
findAllowedDatacenter(com.google.common.base.Predicate<Datacenter> filter) |
ExternalNetwork |
findExternalNetwork(Datacenter datacenter,
com.google.common.base.Predicate<Network<ExternalIp>> filter) |
Limits |
findLimits(com.google.common.base.Predicate<Limits> filter)
Retrieve the first datacenter limits matching the filter within the list of datacenter limits
by enterprise.
|
VirtualMachine |
findReservedMachine(com.google.common.base.Predicate<VirtualMachine> filter) |
Role |
findRole(com.google.common.base.Predicate<Role> filter)
Retrieve the first role matching the filter within the list of roles defined by this
enterprise.
|
VirtualMachineTemplate |
findTemplate(com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
TemplateDefinitionList |
findTemplateDefinitionList(com.google.common.base.Predicate<TemplateDefinitionList> filter)
Retrieve the first template definition list matching the filter within the list.
|
VirtualMachineTemplate |
findTemplateInRepository(Datacenter datacenter,
com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
UnmanagedNetwork |
findUnmanagedNetwork(Datacenter datacenter,
com.google.common.base.Predicate<Network<UnmanagedIp>> filter) |
User |
findUser(com.google.common.base.Predicate<User> filter)
Retrieve the first user matching the filter within the list of users of this enterprise.
|
VirtualAppliance |
findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
Retrieve the first virtual appliance matching the filter within the list of virtual
appliances in this enterprise.
|
VirtualDatacenter |
findVirtualDatacenter(com.google.common.base.Predicate<VirtualDatacenter> filter)
Retrieve a the first virtual datacenter matching the filter within the list of virtual
datacenters by this enterprise.
|
VirtualMachine |
findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
Retrieve the first virtual machine matching the filter within the list of virtual machines in
this enterprise.
|
String |
getChefApiCertificate() |
String |
getChefClient() |
String |
getChefURL() |
String |
getChefValidator() |
String |
getChefValidatorCertificate() |
EnterpriseProperties |
getEnterpriseProperties()
Retrieve the defined properties of the given enterprise.
|
Integer |
getId() |
boolean |
getIsReservationRestricted() |
String |
getName() |
long |
getRepositoryHard() |
long |
getRepositorySoft() |
TemplateDefinitionList |
getTemplateDefinitionList(Integer id)
Retrieve a single template definition list.
|
VirtualMachineTemplate |
getTemplateInRepository(Datacenter datacenter,
Integer id) |
User |
getUser(Integer id)
Retrieve a single user.
|
List<Datacenter> |
listAllowedDatacenters() |
List<Datacenter> |
listAllowedDatacenters(com.google.common.base.Predicate<Datacenter> filter) |
List<ExternalNetwork> |
listExternalNetworks(Datacenter datacenter) |
List<ExternalNetwork> |
listExternalNetworks(Datacenter datacenter,
com.google.common.base.Predicate<Network<ExternalIp>> filter) |
List<Limits> |
listLimits()
Retrieve the list of datacenter limits by enterprise.
|
List<Limits> |
listLimits(com.google.common.base.Predicate<Limits> filter)
Retrieve a filtered list of datacenter limits by enterprise.
|
List<Machine> |
listReservedMachines() |
List<VirtualMachine> |
listReservedMachines(com.google.common.base.Predicate<VirtualMachine> filter) |
List<Role> |
listRoles()
Retrieve the list of roles defined by this enterprise.
|
List<Role> |
listRoles(com.google.common.base.Predicate<Role> filter)
Retrieve a filtered list of roles defined by this enterprise.
|
List<TemplateDefinitionList> |
listTemplateDefinitionLists()
Retrieve the list of template definition lists of the enterprise.
|
List<TemplateDefinitionList> |
listTemplateDefinitionLists(com.google.common.base.Predicate<TemplateDefinitionList> filter)
Retrieve a filtered list of template definition lists from this enterprise.
|
List<VirtualMachineTemplate> |
listTemplates() |
List<VirtualMachineTemplate> |
listTemplates(com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
List<VirtualMachineTemplate> |
listTemplatesInRepository(Datacenter datacenter) |
List<VirtualMachineTemplate> |
listTemplatesInRepository(Datacenter datacenter,
com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
List<UnmanagedNetwork> |
listUnmanagedNetworks(Datacenter datacenter) |
List<UnmanagedNetwork> |
listUnmanagedNetworks(Datacenter datacenter,
com.google.common.base.Predicate<Network<UnmanagedIp>> filter) |
List<User> |
listUsers()
Retrieve the list of users of this enterprise.
|
List<User> |
listUsers(com.google.common.base.Predicate<User> filter)
Retrieve a filtered list of users of this enterprise.
|
List<VirtualAppliance> |
listVirtualAppliances()
Retrieve the list of virtual appliances by this enterprise.
|
List<VirtualAppliance> |
listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
Retrieve a filtered list of virtual appliances by this enterprise.
|
List<VirtualDatacenter> |
listVirtualDatacenters()
Retrieve the list of virtual datacenters by this enterprise.
|
List<VirtualDatacenter> |
listVirtualDatacenters(com.google.common.base.Predicate<VirtualDatacenter> filter)
Retrieve a filtered list of virtual datacenters by this enterprise.
|
List<VirtualMachine> |
listVirtualMachines()
Retrieve the list of virtual machines by this enterprise.
|
List<VirtualMachine> |
listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
Retrieve a filtered list of virtual machines by this enterprise.
|
void |
prohibitDatacenter(Datacenter datacenter)
Prohibe the given datacenter to be used by this enterprise.
|
void |
refreshTemplateRepository(Datacenter datacenter) |
void |
save()
Create a new enterprise in Abiquo.
|
void |
setChefClient(String chefClient) |
void |
setChefClientCertificate(String chefClientCertificate) |
void |
setChefURL(String chefURL) |
void |
setChefValidator(String chefValidator) |
void |
setChefValidatorCertificate(String chefValidatorCertificate) |
void |
setIsReservationRestricted(boolean isReservationRestricted) |
void |
setName(String name) |
void |
setRepositoryHard(long repositoryHard) |
void |
setRepositoryLimits(long soft,
long hard) |
void |
setRepositorySoft(long repositorySoft) |
String |
toString() |
void |
update()
Update emterprise information in the server with the data from this enterprise.
|
getCpuCountHardLimit, getCpuCountSoftLimit, getHdHardLimitInMb, getHdSoftLimitInMb, getPublicIpsHard, getPublicIpsSoft, getRamHardLimitInMb, getRamSoftLimitInMb, getStorageHard, getStorageSoft, getVlansHard, getVlansSoft, setCpuCountHardLimit, setCpuCountLimits, setCpuCountSoftLimit, setHdHardLimitInMb, setHdLimitsInMb, setHdSoftLimitInMb, setPublicIPLimits, setPublicIpsHard, setPublicIpsSoft, setRamHardLimitInMb, setRamLimitsInMb, setRamSoftLimitInMb, setStorageHard, setStorageLimits, setStorageSoft, setVlansHard, setVlansLimits, setVlansSoftgetParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrapprotected Enterprise(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.enterprise.EnterpriseDto target)
public void delete()
public void save()
public void update()
public List<VirtualDatacenter> listVirtualDatacenters()
http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvitualdatacentersbyanEnterprisepublic List<VirtualDatacenter> listVirtualDatacenters(com.google.common.base.Predicate<VirtualDatacenter> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvitualdatacentersbyanEnterprisepublic VirtualDatacenter findVirtualDatacenter(com.google.common.base.Predicate<VirtualDatacenter> filter)
filter - Filter to be applied to the list.null if the is none. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvitualdatacentersbyanEnterprisepublic List<TemplateDefinitionList> listTemplateDefinitionLists()
http://community.abiquo.com/display/ABI20/TemplateDefinitionListResource#
TemplateDefinitionListResource-Retrievealltemplatedefinitionlistspublic List<TemplateDefinitionList> listTemplateDefinitionLists(com.google.common.base.Predicate<TemplateDefinitionList> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/TemplateDefinitionListResource#
TemplateDefinitionListResource-Retrievealltemplatedefinitionlistspublic TemplateDefinitionList findTemplateDefinitionList(com.google.common.base.Predicate<TemplateDefinitionList> filter)
filter - Filter to be applied to the list.null if the is
none. http://community.abiquo.com/display/ABI20/TemplateDefinitionListResource#
TemplateDefinitionListResource-Retrievealltemplatedefinitionlistspublic TemplateDefinitionList getTemplateDefinitionList(Integer id)
id - Unique ID of the template definition list for this enterprise.null if it does not exist. http://community.abiquo.com/display/ABI20/TemplateDefinitionListResource#
TemplateDefinitionListResource-Retrieveatemplatedefinitionlistpublic List<Limits> listLimits()
http://community.abiquo.com/display/ABI20/DatacenterLimitsResource#
DatacenterLimitsResource-Retrievelimitsbyenterprisepublic List<Limits> listLimits(com.google.common.base.Predicate<Limits> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/DatacenterLimitsResource#
DatacenterLimitsResource-Retrievelimitsbyenterprisepublic Limits findLimits(com.google.common.base.Predicate<Limits> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/DatacenterLimitsResource#
DatacenterLimitsResource-Retrievelimitsbyenterprisepublic EnterpriseProperties getEnterpriseProperties()
http://community.abiquo.com/display/ABI20/EnterprisePropertiesResource#
EnterprisePropertiesResource-Retrievethepropertiesforanenterprisepublic List<User> listUsers()
http://community.abiquo.com/display/ABI20/UserResource#UserResource-Retrievealistofusers
public List<User> listUsers(com.google.common.base.Predicate<User> filter)
filter - Filter to be applied to the list.
http://community.abiquo.com/display/ABI20/UserResource#UserResource-Retrievealistofusers
public User findUser(com.google.common.base.Predicate<User> filter)
filter - Filter to be applied to the list.null if there is none.
http://community.abiquo.com/display/ABI20/UserResource#UserResource-Retrievealistofusers
public User getUser(Integer id)
id - Unique ID of the user in this enterprise.null if it does not exist.
http://community.abiquo.com/display/ABI20/UserResource#UserResource-Retrieveauserpublic List<Role> listRoles()
public List<Role> listRoles(com.google.common.base.Predicate<Role> filter)
filter - Filter to be applied to the list.public Role findRole(com.google.common.base.Predicate<Role> filter)
filter - Filter to be applied to the list.null if there is none.public List<VirtualMachineTemplate> listTemplatesInRepository(Datacenter datacenter)
public List<VirtualMachineTemplate> listTemplatesInRepository(Datacenter datacenter, com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public VirtualMachineTemplate findTemplateInRepository(Datacenter datacenter, com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public VirtualMachineTemplate getTemplateInRepository(Datacenter datacenter, Integer id)
public List<VirtualMachineTemplate> listTemplates()
public List<VirtualMachineTemplate> listTemplates(com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public VirtualMachineTemplate findTemplate(com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public List<Datacenter> listAllowedDatacenters()
public List<Datacenter> listAllowedDatacenters(com.google.common.base.Predicate<Datacenter> filter)
public Datacenter findAllowedDatacenter(com.google.common.base.Predicate<Datacenter> filter)
public List<ExternalNetwork> listExternalNetworks(Datacenter datacenter)
public List<ExternalNetwork> listExternalNetworks(Datacenter datacenter, com.google.common.base.Predicate<Network<ExternalIp>> filter)
public ExternalNetwork findExternalNetwork(Datacenter datacenter, com.google.common.base.Predicate<Network<ExternalIp>> filter)
public List<UnmanagedNetwork> listUnmanagedNetworks(Datacenter datacenter)
public List<UnmanagedNetwork> listUnmanagedNetworks(Datacenter datacenter, com.google.common.base.Predicate<Network<UnmanagedIp>> filter)
public UnmanagedNetwork findUnmanagedNetwork(Datacenter datacenter, com.google.common.base.Predicate<Network<UnmanagedIp>> filter)
public List<VirtualAppliance> listVirtualAppliances()
http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievethelistofvirtualappliancesbyanEnterprisepublic List<VirtualAppliance> listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievethelistofvirtualappliancesbyanEnterprisepublic VirtualAppliance findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
filter - Filter to be applied to the list.null if the is none. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievethelistofvirtualappliancesbyanEnterprisepublic List<VirtualMachine> listVirtualMachines()
http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvirtualmachinesbyanEnterprisepublic List<VirtualMachine> listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvirtualmachinesbyanEnterprisepublic VirtualMachine findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
filter - Filter to be applied to the list.null if the is none. http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrievealistofvirtualmachinesbyanEnterprisepublic List<VirtualMachine> listReservedMachines(com.google.common.base.Predicate<VirtualMachine> filter)
public VirtualMachine findReservedMachine(com.google.common.base.Predicate<VirtualMachine> filter)
public void refreshTemplateRepository(Datacenter datacenter)
public Limits allowDatacenter(Datacenter datacenter)
Limits object if
not exists.datacenter - The datacenter. http://community.abiquo.com/display/ABI20/Datacenter+Limits+Resource#
DatacenterLimitsResource-CreateanewLimitforanenterpriseinadatacenterpublic void prohibitDatacenter(Datacenter datacenter)
Limits object.datacenter - The datacenter. http://community.abiquo.com/display/ABI20/Datacenter+Limits+Resource#
DatacenterLimitsResource-Deleteanexistinglimitforanenterpriseinadatacenterpublic void disableChef()
public static Enterprise.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context)
public Integer getId()
public boolean getIsReservationRestricted()
public String getName()
public long getRepositoryHard()
public long getRepositorySoft()
public void setIsReservationRestricted(boolean isReservationRestricted)
public void setName(String name)
public void setRepositoryHard(long repositoryHard)
public void setRepositoryLimits(long soft,
long hard)
public void setRepositorySoft(long repositorySoft)
public String getChefClient()
public String getChefApiCertificate()
public String getChefURL()
public String getChefValidator()
public String getChefValidatorCertificate()
public void setChefClient(String chefClient)
public void setChefClientCertificate(String chefClientCertificate)
public void setChefURL(String chefURL)
public void setChefValidator(String chefValidator)
public void setChefValidatorCertificate(String chefValidatorCertificate)
Copyright © 2009-2013 jclouds. All Rights Reserved.