java.lang.Object
com.hedera.hashgraph.sdk.BaseNodeAddress
Internal utility class.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final int -
Constructor Summary
ConstructorsConstructorDescriptionBaseNodeAddress(String name, String address, int port) Constructor.BaseNodeAddress(String name, String address, int port, boolean secure) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BaseNodeAddressfromString(String string) Create a managed node address fom a string.Extract the address.getName()Extract the name.intgetPort()Extract the port.inthashCode()booleanAre we in process?booleanAre we secure?Create a new insecure managed node.toSecure()Create a new managed node.toString()
-
Field Details
-
PORT_MIRROR_TLS
static final int PORT_MIRROR_TLS- See Also:
-
PORT_NODE_PLAIN
static final int PORT_NODE_PLAIN- See Also:
-
PORT_NODE_TLS
static final int PORT_NODE_TLS- See Also:
-
-
Constructor Details
-
BaseNodeAddress
Constructor.- Parameters:
name- the name partaddress- the address partport- the port part
-
BaseNodeAddress
Constructor.- Parameters:
name- the name partaddress- the address partport- the port partsecure- secure transport
-
-
Method Details
-
fromString
Create a managed node address fom a string.- Parameters:
string- the string representation- Returns:
- the new managed node address
-
getName
Extract the name.- Returns:
- the name
-
getAddress
Extract the address.- Returns:
- the address
-
getPort
public int getPort()Extract the port.- Returns:
- the port
-
isInProcess
public boolean isInProcess()Are we in process?- Returns:
- are we in process
-
isTransportSecurity
public boolean isTransportSecurity()Are we secure?- Returns:
- are we secure
-
toInsecure
Create a new insecure managed node.- Returns:
- the insecure managed node address
-
toSecure
Create a new managed node.- Returns:
- the secure managed node address
-
toString
-
equals
-
hashCode
public int hashCode()
-