Interface Endpoint
-
- All Known Implementing Classes:
YamlEndpoint
public interface EndpointRepresents a communication endpoint. The port must be given, the host may be empty.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHOST_PLACEHOLDERstatic java.lang.StringPORT_PLACEHOLDER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHostArg()Returns the specified command line argument to set the host to communicate with for this relation upon service deployment/execution.java.lang.StringgetHostArg(java.lang.String hostname)Returns the ready-to.use command line argument to set the host to communicate with for this relation upon service deployment/execution.java.lang.StringgetPortArg()Returns the specified command line argument to set the communication port for this relation upon service deployment/execution.java.lang.StringgetPortArg(int port)Returns the ready-to-use command line argument to set the communication port for this relation upon service deployment/execution.booleanisHostArgGeneric()Returns the whethergetHostArg()is generic throughHOST_PLACEHOLDER.booleanisPortArgGeneric()Returns the whethergetPortArg()is generic throughPORT_PLACEHOLDER.
-
-
-
Field Detail
-
PORT_PLACEHOLDER
static final java.lang.String PORT_PLACEHOLDER
- See Also:
- Constant Field Values
-
HOST_PLACEHOLDER
static final java.lang.String HOST_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPortArg
java.lang.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
java.lang.String getPortArg(int port)
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
java.lang.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
java.lang.String getHostArg(java.lang.String hostname)
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
-
-