Interface NetworkingFacet
-
- All Superinterfaces:
org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,Serializable
- All Known Implementing Classes:
NetworkingFacetImpl
@TypeMetadata(name="NetworkingFacet", description="NetworkingFacet captures information on any (computer) network interface associated with the resource.It is mainly used to describe the network interface of a host. It should not be confused with the {@link AccessPointFacet} which instead describes the protocol and the endpoint of a web-based service.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface NetworkingFacet extends org.gcube.informationsystem.model.reference.entities.FacetNetworkingFacet captures information on any (computer) network interface associated with the resource. It is mainly used to describe the network interface of a host. It should not be confused with theAccessPointFacetwhich instead describes the protocol and the endpoint of a web-based service. https://wiki.gcube-system.org/gcube/GCube_Model#Networking_Facet- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringIP_ADDRESSThe name of 'IPAddress' propertystatic StringIP_ADDRESS_REGEXThe regular expression for validating an IP address (IPv4 or IPv6)static StringNAMEThe name associated with this facet-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBroadcastAddress()Broadcast Addressstatic NetworkingFacetgetDefaultInstance()Returns a default instance of NetworkingFacetStringgetDomainName()The Domain NameStringgetHostName()The Host NameStringgetIPAddress()Internet Protocol (IP) AddressStringgetMask()Network MaskvoidsetBroadcastAddress(String broadcastAddress)Sets the Broadcast AddressvoidsetDomainName(String domainName)Sets the Domain NamevoidsetHostName(String hostName)Sets the Host NamevoidsetIPAddress(String ipAddress)Sets the Internet Protocol (IP) AddressvoidsetMask(String mask)Sets the Network Mask-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
NAME
static final String NAME
The name associated with this facet- See Also:
- Constant Field Values
-
IP_ADDRESS
static final String IP_ADDRESS
The name of 'IPAddress' property- See Also:
- Constant Field Values
-
IP_ADDRESS_REGEX
static final String IP_ADDRESS_REGEX
The regular expression for validating an IP address (IPv4 or IPv6)- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultInstance
static NetworkingFacet getDefaultInstance()
Returns a default instance of NetworkingFacet- Returns:
- a default instance of NetworkingFacet
-
getHostName
@ISProperty(description="Host Name") String getHostName()
The Host Name- Returns:
- the host name
-
setHostName
void setHostName(String hostName)
Sets the Host Name- Parameters:
hostName- the host name
-
getDomainName
@ISProperty(description="Domain Name") String getDomainName()
The Domain Name- Returns:
- the domain name
-
setDomainName
void setDomainName(String domainName)
Sets the Domain Name- Parameters:
domainName- the domain name
-
getIPAddress
@ISProperty(name="IPAddress", description="Internet Protocol (IP) Address", mandatory=true, nullable=false, regexpr="^((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])|(([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|([0-9A-Fa-f]{1,4}:){1,7}:|:(:[0-9A-Fa-f]{1,4}){1,7}|([0-9A-Fa-f]{1,4}:){1,6}:[0-9A-Fa-f]{1,4}|([0-9A-Fa-f]{1,4}:){1,5}(:[0-9A-Fa-f]{1,4}){1,2}|([0-9A-Fa-f]{1,4}:){1,4}(:[0-9A-Fa-f]{1,4}){1,3}|([0-9A-Fa-f]{1,4}:){1,3}(:[0-9A-Fa-f]{1,4}){1,4}|([0-9A-Fa-f]{1,4}:){1,2}(:[0-9A-Fa-f]{1,4}){1,5}|[0-9A-Fa-f]{1,4}:(:[0-9A-Fa-f]{1,4}){1,6}|:(:[0-9A-Fa-f]{1,4}){1,6}))$") String getIPAddress()Internet Protocol (IP) Address- Returns:
- the IP address
-
setIPAddress
void setIPAddress(String ipAddress)
Sets the Internet Protocol (IP) Address- Parameters:
ipAddress- the IP address
-
getMask
@ISProperty(description="Network Mask") String getMask()
Network Mask- Returns:
- the network mask
-
setMask
void setMask(String mask)
Sets the Network Mask- Parameters:
mask- the network mask
-
getBroadcastAddress
@ISProperty(description="Broadcast Address") String getBroadcastAddress()
Broadcast Address- Returns:
- the broadcast address
-
setBroadcastAddress
void setBroadcastAddress(String broadcastAddress)
Sets the Broadcast Address- Parameters:
broadcastAddress- the broadcast address
-
-