Interface Endpoint
- All Known Implementing Classes:
YamlEndpoint
public interface Endpoint
Represents a communication endpoint. The port must be given, the host may be empty.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the specified command line argument to set the host to communicate with for this relation upon service deployment/execution.getHostArg(String hostname) Returns the ready-to.use command line argument to set the host to communicate with for this relation upon service deployment/execution.Returns the specified command line argument to set the communication port for this relation upon service deployment/execution.getPortArg(int port) Returns the ready-to-use command line argument to set the communication port for this relation upon service deployment/execution.booleanReturns the whethergetHostArg()is generic throughHOST_PLACEHOLDER.booleanReturns the whethergetPortArg()is generic throughPORT_PLACEHOLDER.
-
Field Details
-
PORT_PLACEHOLDER
- See Also:
-
HOST_PLACEHOLDER
- See Also:
-
-
Method Details
-
getPortArg
String getPortArg()Returns the specified command line argument to set the communication port for this relation upon service deployment/execution.- Returns:
- the generic port argument
-
isPortArgGeneric
boolean isPortArgGeneric()Returns the whethergetPortArg()is generic throughPORT_PLACEHOLDER.- Returns:
truefor generic,falseelse
-
getPortArg
Returns the ready-to-use command line argument to set the communication port for this relation upon service deployment/execution.- Parameters:
port- the actual port number- Returns:
- the port argument, "${port}" is substituted by
port
-
getHostArg
String getHostArg()Returns the specified command line argument to set the host to communicate with for this relation upon service deployment/execution.- Returns:
- the generic host argument
-
isHostArgGeneric
boolean isHostArgGeneric()Returns the whethergetHostArg()is generic throughHOST_PLACEHOLDER.- Returns:
truefor generic,falseelse
-
getHostArg
Returns the ready-to.use command line argument to set the host to communicate with for this relation upon service deployment/execution.- Parameters:
hostname- the actual hostname, "${host}" is substituted byhostname, may be empty for localhost- Returns:
- the host argument
-