Package com.pnfsoftware.jeb.core
Class ControllerInfo
java.lang.Object
com.pnfsoftware.jeb.core.ControllerInfo
Floating controller information.
-
Constructor Summary
ConstructorsConstructorDescriptionControllerInfo(InetSocketAddress address, int protocol, String clientMessage) Create a floating-controller descriptor. -
Method Summary
Modifier and TypeMethodDescriptionGet the controller socket address.Get the optional client message associated with the controller configuration.Get the configured controller hostname or bind interface.intgetPort()Get the controller port.intGet the controller protocol identifier.booleanisSecure()Determine whether the controller connection is secure.
-
Constructor Details
-
ControllerInfo
Create a floating-controller descriptor.- Parameters:
address- controller addressprotocol- controller protocol identifierclientMessage- optional message sent by the client
-
-
Method Details
-
getAddress
Get the controller socket address.- Returns:
- controller address
-
getInterface
Get the configured controller hostname or bind interface.- Returns:
- hostname or interface
-
getPort
public int getPort()Get the controller port.- Returns:
- port number
-
getProtocol
public int getProtocol()Get the controller protocol identifier.- Returns:
- protocol identifier
-
isSecure
public boolean isSecure()Determine whether the controller connection is secure.- Returns:
- true if the protocol denotes a secure connection
-
getClientMessage
Get the optional client message associated with the controller configuration.- Returns:
- client message, or null if none was provided
-