@Service @Deprecated @ConditionalOnProperty(value="channels.enabled", havingValue="true") public class ChannelsService extends Object
Constructor and Description |
---|
ChannelsService(SubprocessService subprocessService)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.thales.punch.settings.api.ISettingsMap |
execute(String[] args,
boolean getOutput)
Deprecated.
Execute a punchctl command from a complete command line
|
org.thales.punch.settings.api.ISettingsMap |
execute(String tenant,
String cmd)
Deprecated.
execute a punchctl command from tenant name and a command
|
org.thales.punch.settings.api.ISettingsMap |
getChannelStatus(String channel,
List<String> out)
Deprecated.
/!\ Json result has 2 formats : when channel is active or inactive
When channel is active or is stopped, 'children' key has a 'tasks' json object
When channel is inactive and status is required, 'children' key has the json key 'status'
|
@Autowired public ChannelsService(SubprocessService subprocessService)
public org.thales.punch.settings.api.ISettingsMap execute(String tenant, String cmd)
tenant
- tenant namecmd
- command, either start|stop|statuspublic org.thales.punch.settings.api.ISettingsMap execute(String[] args, boolean getOutput)
args
- Array where each string is a part of the command
eg : {"./punchctl", "--tenant", tenant, "status", "--channel", channel, "--json"}getOutput
- true if the json output is requested to returned to the client, or false for no outputpublic org.thales.punch.settings.api.ISettingsMap getChannelStatus(String channel, List<String> out)
channel
- nameout
- outputs of the punchctl processCopyright © 2023. All rights reserved.