public abstract class Network<T extends Ip<?,?>> extends DomainWrapper<com.abiquo.server.core.infrastructure.network.VLANNetworkDto>
VLANNetworkDto
.Modifier and Type | Class and Description |
---|---|
static class |
Network.NetworkBuilder<T extends Network.NetworkBuilder<T>> |
context, target
Modifier | Constructor and Description |
---|---|
protected |
Network(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.network.VLANNetworkDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
delete() |
T |
findIp(com.google.common.base.Predicate<T> filter) |
T |
findUnusedIp(com.google.common.base.Predicate<T> filter) |
String |
getAddress() |
Boolean |
getDefaultNetwork() |
String |
getGateway() |
Integer |
getId() |
abstract T |
getIp(Integer id) |
Integer |
getMask() |
String |
getName() |
String |
getPrimaryDNS() |
String |
getSecondaryDNS() |
String |
getSufixDNS() |
Integer |
getTag() |
com.abiquo.model.enumerator.NetworkType |
getType() |
List<T> |
listIps() |
abstract List<T> |
listIps(IpOptions options) |
List<T> |
listIps(com.google.common.base.Predicate<T> filter) |
List<T> |
listUnusedIps() |
abstract void |
save() |
void |
setAddress(String address) |
void |
setDefaultNetwork(Boolean defaultNetwork) |
void |
setGateway(String gateway) |
void |
setMask(Integer mask) |
void |
setName(String name) |
void |
setPrimaryDNS(String primaryDNS) |
void |
setSecondaryDNS(String secondaryDNS) |
void |
setSufixDNS(String sufixDNS) |
void |
setTag(Integer tag) |
ExternalNetwork |
toExternalNetwork() |
PrivateNetwork |
toPrivateNetwork() |
PublicNetwork |
toPublicNetwork() |
String |
toString() |
UnmanagedNetwork |
toUnmanagedNetwork() |
abstract void |
update() |
static Network<?> |
wrapNetwork(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.infrastructure.network.VLANNetworkDto dto) |
static List<Network<?>> |
wrapNetworks(RestContext<AbiquoApi,AbiquoAsyncApi> context,
List<com.abiquo.server.core.infrastructure.network.VLANNetworkDto> dtos) |
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected Network(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.network.VLANNetworkDto target)
public abstract void save()
public abstract void update()
public abstract void delete()
public PrivateNetwork toPrivateNetwork()
public ExternalNetwork toExternalNetwork()
public PublicNetwork toPublicNetwork()
public UnmanagedNetwork toUnmanagedNetwork()
public String getAddress()
public Boolean getDefaultNetwork()
public String getGateway()
public Integer getId()
public Integer getMask()
public String getName()
public String getPrimaryDNS()
public String getSecondaryDNS()
public String getSufixDNS()
public Integer getTag()
public com.abiquo.model.enumerator.NetworkType getType()
public void setAddress(String address)
public void setDefaultNetwork(Boolean defaultNetwork)
public void setGateway(String gateway)
public void setMask(Integer mask)
public void setName(String name)
public void setPrimaryDNS(String primaryDNS)
public void setSecondaryDNS(String secondaryDNS)
public void setSufixDNS(String sufixDNS)
public void setTag(Integer tag)
public static Network<?> wrapNetwork(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.network.VLANNetworkDto dto)
public static List<Network<?>> wrapNetworks(RestContext<AbiquoApi,AbiquoAsyncApi> context, List<com.abiquo.server.core.infrastructure.network.VLANNetworkDto> dtos)
Copyright © 2009-2013 jclouds. All Rights Reserved.