public class EntityBuilder extends Object
Constructor and Description |
---|
EntityBuilder(cz.cesnet.cloud.occi.Model model)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
cz.cesnet.cloud.occi.core.ActionInstance |
getActionInstance(String actionType)
Creates an action instance of given actionType (action's term).
|
cz.cesnet.cloud.occi.core.ActionInstance |
getActionInstance(URI actionIdentifier)
Creates an action instance identified by actionIdentifier (action's
scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.Compute |
getCompute()
Creates a default compute instance.
|
cz.cesnet.cloud.occi.infrastructure.Compute |
getCompute(URI resourceIdentifier)
Creates an compute instance identified by resourceIdentifier (compute's
scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.IPNetwork |
getIPNetwork()
Creates a default ip network instance.
|
cz.cesnet.cloud.occi.infrastructure.IPNetwork |
getIPNetwork(URI kindIdentifier,
URI mixinIdentifier)
Creates an ip network instance identified by kind and mixin identifier
(scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.IPNetworkInterface |
getIPNetworkInterface()
Creates a default ip network interface instance.
|
cz.cesnet.cloud.occi.infrastructure.IPNetworkInterface |
getIPNetworkInterface(URI kindIdentifier,
URI mixinIdentifier)
Creates an ip network interface instance identified by kind and mixin
identifier (scheme+term).
|
cz.cesnet.cloud.occi.core.Link |
getLink(String linkType)
Creates a link of given linkType (kind's term).
|
cz.cesnet.cloud.occi.core.Link |
getLink(URI linkIdentifier)
Creates a link identified by linkIdentifier (kind's scheme+term).
|
cz.cesnet.cloud.occi.Model |
getModel()
Returns model.
|
cz.cesnet.cloud.occi.infrastructure.Network |
getNetwork()
Creates a default network instance.
|
cz.cesnet.cloud.occi.infrastructure.Network |
getNetwork(URI resourceIdentifier)
Creates an network instance identified by resourceIdentifier (network's
scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.NetworkInterface |
getNetworkInterface()
Creates a default network interface instance.
|
cz.cesnet.cloud.occi.infrastructure.NetworkInterface |
getNetworkInterface(URI resourceIdentifier)
Creates an network interface instance identified by resourceIdentifier
(interface's scheme+term).
|
cz.cesnet.cloud.occi.core.Resource |
getResource(String resourceType)
Creates a resource of given resourceType (kind's term).
|
cz.cesnet.cloud.occi.core.Resource |
getResource(URI resourceIdentifier)
Creates a resource identified by resourceIdentifier (kind's scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.Storage |
getStorage()
Creates a default storage instance.
|
cz.cesnet.cloud.occi.infrastructure.Storage |
getStorage(URI resourceIdentifier)
Creates an storage instance identified by resourceIdentifier (storage's
scheme+term).
|
cz.cesnet.cloud.occi.infrastructure.StorageLink |
getStorageLink()
Creates a default storage link instance.
|
cz.cesnet.cloud.occi.infrastructure.StorageLink |
getStorageLink(URI resourceIdentifier)
Creates an storage link instance identified by resourceIdentifier (link's
scheme+term).
|
void |
setModel(cz.cesnet.cloud.occi.Model model)
Sets model.
|
public EntityBuilder(cz.cesnet.cloud.occi.Model model)
model
- cannot be nullpublic cz.cesnet.cloud.occi.core.Link getLink(String linkType) throws EntityBuildingException
linkType
- EntityBuildingException
- if link type is ambiguouspublic cz.cesnet.cloud.occi.core.Link getLink(URI linkIdentifier) throws EntityBuildingException
linkIdentifier
- EntityBuildingException
- if kind with specified identifier is not
found in the modelpublic cz.cesnet.cloud.occi.core.Resource getResource(String resourceType) throws EntityBuildingException
resourceType
- EntityBuildingException
- if resource type is ambiguouspublic cz.cesnet.cloud.occi.core.Resource getResource(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
- if kind with specified identifier is not
found in the modelpublic cz.cesnet.cloud.occi.core.ActionInstance getActionInstance(String actionType) throws EntityBuildingException
actionType
- EntityBuildingException
- if action type is ambiguouspublic cz.cesnet.cloud.occi.core.ActionInstance getActionInstance(URI actionIdentifier) throws EntityBuildingException
actionIdentifier
- EntityBuildingException
- if action with specified identifier is
not found in the modelpublic cz.cesnet.cloud.occi.infrastructure.Compute getCompute(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
- if compute with specified identifier is
not found in the modelpublic cz.cesnet.cloud.occi.infrastructure.Compute getCompute() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.Network getNetwork(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.Network getNetwork() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.Storage getStorage(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.Storage getStorage() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.StorageLink getStorageLink(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.StorageLink getStorageLink() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.NetworkInterface getNetworkInterface(URI resourceIdentifier) throws EntityBuildingException
resourceIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.NetworkInterface getNetworkInterface() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.IPNetwork getIPNetwork(URI kindIdentifier, URI mixinIdentifier) throws EntityBuildingException
kindIdentifier
- mixinIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.IPNetwork getIPNetwork() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.IPNetworkInterface getIPNetworkInterface(URI kindIdentifier, URI mixinIdentifier) throws EntityBuildingException
kindIdentifier
- mixinIdentifier
- EntityBuildingException
public cz.cesnet.cloud.occi.infrastructure.IPNetworkInterface getIPNetworkInterface() throws EntityBuildingException
EntityBuildingException
public cz.cesnet.cloud.occi.Model getModel()
public void setModel(cz.cesnet.cloud.occi.Model model)
model
- modelCopyright © 2016. All Rights Reserved.