Package dev.galasa.ipnetwork.spi
Class AbstractGenericIpHost
java.lang.Object
dev.galasa.ipnetwork.spi.AbstractGenericIpHost
- All Implemented Interfaces:
IIpHost
,IIpHostSpi
-
Constructor Summary
ConstructorDescriptionAbstractGenericIpHost
(IConfigurationPropertyStoreService cps, IDynamicStatusStoreService dss, ICredentialsService creds, String prefix, String hostid) -
Method Summary
Modifier and TypeMethodDescription@NotNull ICredentials
int
Get the FTP port, defaults to 21Get the default Hostname of the HostGet the IPV4 Hostname of the HostGet the IPV6 Hostname of the Hostint
Get the SSH port, defaults to 22int
Get the Telnet port, defaults to 23boolean
Is the FTP port secured by TLS, default falseboolean
Is the Telnet port secured by TLS, default falseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.galasa.ipnetwork.spi.IIpHostSpi
provisionPort
-
Constructor Details
-
AbstractGenericIpHost
public AbstractGenericIpHost(IConfigurationPropertyStoreService cps, IDynamicStatusStoreService dss, ICredentialsService creds, String prefix, String hostid) throws IpNetworkManagerException - Throws:
IpNetworkManagerException
-
-
Method Details
-
getPrefixHost
- Specified by:
getPrefixHost
in interfaceIIpHostSpi
-
getHostname
Description copied from interface:IIpHost
Get the default Hostname of the Host- Specified by:
getHostname
in interfaceIIpHost
-
getIpv4Hostname
Description copied from interface:IIpHost
Get the IPV4 Hostname of the Host- Specified by:
getIpv4Hostname
in interfaceIIpHost
-
getIpv6Hostname
Description copied from interface:IIpHost
Get the IPV6 Hostname of the Host- Specified by:
getIpv6Hostname
in interfaceIIpHost
-
getTelnetPort
Description copied from interface:IIpHost
Get the Telnet port, defaults to 23- Specified by:
getTelnetPort
in interfaceIIpHost
- Returns:
- Telnet port
- Throws:
IpNetworkManagerException
- if there is a problem accessing the CPS
-
isTelnetPortTls
Description copied from interface:IIpHost
Is the Telnet port secured by TLS, default false- Specified by:
isTelnetPortTls
in interfaceIIpHost
- Returns:
- secured?
- Throws:
IpNetworkManagerException
- if there is a problem accessing the CPS
-
getFtpPort
Description copied from interface:IIpHost
Get the FTP port, defaults to 21- Specified by:
getFtpPort
in interfaceIIpHost
- Returns:
- FTP port
- Throws:
IpNetworkManagerException
- if there is a problem accessing the CPS
-
isFtpPortTls
Description copied from interface:IIpHost
Is the FTP port secured by TLS, default false- Specified by:
isFtpPortTls
in interfaceIIpHost
- Returns:
- secured?
- Throws:
IpNetworkManagerException
- if there is a problem accessing the CPS
-
getSshPort
Description copied from interface:IIpHost
Get the SSH port, defaults to 22- Specified by:
getSshPort
in interfaceIIpHost
- Returns:
- SSH Port
- Throws:
IpNetworkManagerException
- if there is a problem accessing the CPS
-
getDefaultCredentials
- Specified by:
getDefaultCredentials
in interfaceIIpHost
- Returns:
- Throws:
IpNetworkManagerException
-