Interface ProcessSpec
-
- All Superinterfaces:
de.iip_ecosphere.platform.services.environment.ProcessSpec
- All Known Subinterfaces:
Server
- All Known Implementing Classes:
YamlProcess,YamlServer
public interface ProcessSpec extends de.iip_ecosphere.platform.services.environment.ProcessSpecIf the service is not completely implemented rather than delegates functionality to an additional process that must be started and managed along with the service. The process implementation (whatever it is) will be extracted fromProcessSpec.getHomePath(). For the execution in a shell, the home directory will be set to the folder where the files inProcessSpec.getHomePath()are located.ProcessSpec.getHomePath()must not be empty,ProcessSpec.getCmdArg()may be empty,getStreamEndpoint()andgetAasEndpoint()must be given.- Author:
- Holger Eichelberger, SSE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EndpointgetAasEndpoint()Returns AAS endpoint (port/host) the service shall communicate with for commands.java.util.List<java.lang.String>getCmdArg(int port, java.lang.String protocol)Returns additional/optional command line arguments required to start the service.EndpointgetServiceStreamEndpoint()Returns streaming endpoint (port/host) on the service side the process shall communicate with.EndpointgetStreamEndpoint()Returns streaming endpoint (port/host) on the process side the service shall communicate with.intgetWaitTime()Returns the time to wait for the process before going on with starting other services.
-
-
-
Method Detail
-
getCmdArg
java.util.List<java.lang.String> getCmdArg(int port, java.lang.String protocol)Returns additional/optional command line arguments required to start the service. The port placeholderEndpoint.PORT_PLACEHOLDERwill be replaced with the command port the platform is using to send administrative commands to the service (seeService).- Parameters:
port- the port used for the command communicationprotocol- the protocol used for the command communication- Returns:
- the resolved command line arguments (may be empty for none)
-
getServiceStreamEndpoint
Endpoint getServiceStreamEndpoint()
Returns streaming endpoint (port/host) on the service side the process shall communicate with. Counterpart ofgetStreamEndpoint().- Returns:
- the streaming endpoint
-
getStreamEndpoint
Endpoint getStreamEndpoint()
Returns streaming endpoint (port/host) on the process side the service shall communicate with. Counterpart ofgetServiceStreamEndpoint().- Returns:
- the streaming endpoint
-
getAasEndpoint
Endpoint getAasEndpoint()
Returns AAS endpoint (port/host) the service shall communicate with for commands.- Returns:
- the AAS endpoint
-
getWaitTime
int getWaitTime()
Returns the time to wait for the process before going on with starting other services.- Returns:
- the wait time in ms, ignored if not positive
-
-