Configuration
Below is shown example configuration for technical microservice.
CONFIGURATION:
BASE:
name: exampleName
type: default
readStreamsWaitTimeInMillis: 5000
OPERATIONS:
start: 'bin\\start.sh'
stop: 'bin\\stop.sh'
#getPid: 'bin\\getPid.sh'
#yourCommand: 'bin\\yourCommand.sh'
PARAMETERS:
waitAfterStopOperationTime: 6000
version: '1.6.0.0'
PROPERTIES:
isStartOnMainServerInitialize: true
platformVersion: '1.6.0.0'
isCritical: false
startupOrder: 1
Section BASE
Parameter |
Description |
name |
Name of technical microservice. |
type |
For now custom technical microservices must have type set to 'default'. |
readStreamsWaitTimeInMillis |
Time (in milliseconds) to wait before reading stream from microservice. |
Section OPERATIONS
Map of operations defined for technical microservice. Required are start
and stop
. Optional one used for retrieving technical microservice PID is getPid
. You can also define custom commands you want.
Section PARAMETERS
Parameter |
Description |
waitAfterStopOperationTime |
Time (in milliseconds) to wait after stop command is executed. |
version |
Version of microservice. |
Section PROPERTIES
Parameter |
Description |
isStartOnMainServerInitialize |
Flag determining if start microservice when platform starts. |
platformVersion |
Version of platform. |
isCritical |
Flat determining if microservice is critical. If critical microservice won't start platform will be shutdowned. |
startupOrder |
Order of microservice to start. |