Package com.structurizr.model
Class InfrastructureNode
java.lang.Object
com.structurizr.model.ModelItem
com.structurizr.model.Element
com.structurizr.model.DeploymentElement
com.structurizr.model.InfrastructureNode
public final class InfrastructureNode extends DeploymentElement
Represents an infrastructure node, which is something like:
- Load balancer
- Firewall
- DNS service
- etc
-
Field Summary
Fields inherited from class com.structurizr.model.DeploymentElement
DEFAULT_DEPLOYMENT_ENVIRONMENT, DEFAULT_DEPLOYMENT_GROUP
-
Constructor Summary
Constructors Constructor Description InfrastructureNode()
-
Method Summary
Modifier and Type Method Description java.lang.String
getCanonicalName()
protected java.util.Set<java.lang.String>
getRequiredTags()
java.lang.String
getTechnology()
void
setTechnology(java.lang.String technology)
Relationship
uses(DeploymentElement destination, java.lang.String description, java.lang.String technology)
Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).Relationship
uses(DeploymentElement destination, java.lang.String description, java.lang.String technology, InteractionStyle interactionStyle)
Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).Relationship
uses(DeploymentElement destination, java.lang.String description, java.lang.String technology, InteractionStyle interactionStyle, java.lang.String[] tags)
Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).Methods inherited from class com.structurizr.model.Element
getDescription, getEfferentRelationshipsWith, getEfferentRelationshipWith, getEfferentRelationshipWith, getModel, getName, getRelationships, hasAfferentRelationships, hasEfferentRelationshipWith, hasEfferentRelationshipWith, setDescription, setModel, toString, uses, uses, uses
Methods inherited from class com.structurizr.model.ModelItem
addPerspective, addProperty, addTags, getId, getOriginId, getPerspectives, getProperties, getTags, getTagsAsSet, getUrl, hasTag, removeTag, setUrl
-
Constructor Details
-
InfrastructureNode
public InfrastructureNode()
-
-
Method Details
-
uses
public Relationship uses(DeploymentElement destination, java.lang.String description, java.lang.String technology)Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).- Parameters:
destination
- the destination DeploymentElementdescription
- a short description of the relationshiptechnology
- the technology- Returns:
- a Relationship object
-
uses
public Relationship uses(DeploymentElement destination, java.lang.String description, java.lang.String technology, InteractionStyle interactionStyle)Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).- Parameters:
destination
- the destination DeploymentElementdescription
- a short description of the relationshiptechnology
- the technologyinteractionStyle
- the interaction style (Synchronous vs Asynchronous)- Returns:
- a Relationship object
-
uses
public Relationship uses(DeploymentElement destination, java.lang.String description, java.lang.String technology, InteractionStyle interactionStyle, java.lang.String[] tags)Adds a relationship between this and another deployment element (deployment node, infrastructure node, or container instance).- Parameters:
destination
- the destination DeploymentElementdescription
- a short description of the relationshiptechnology
- the technologyinteractionStyle
- the interaction style (Synchronous vs Asynchronous)tags
- an array of tags- Returns:
- a Relationship object
-
getTechnology
public java.lang.String getTechnology() -
setTechnology
public void setTechnology(java.lang.String technology) -
getRequiredTags
protected java.util.Set<java.lang.String> getRequiredTags()- Specified by:
getRequiredTags
in classModelItem
-
getCanonicalName
public java.lang.String getCanonicalName()- Specified by:
getCanonicalName
in classModelItem
-