Interface SystemService

All Superinterfaces:
com.google.common.util.concurrent.Service
All Known Subinterfaces:
SparqlBasedSystemService
All Known Implementing Classes:
VirtuosoSystemService

public interface SystemService extends com.google.common.util.concurrent.Service
A system service is a service based on an underlying system process. It enables redirecting the process output, such as to System.out::println or logger::debug. API may be extended to cater for handling stderr and stdout separately
Author:
Claus Stadler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the target for both stderr and stdout

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • setOutputSink

      SystemService setOutputSink(Consumer<String> sink)
      Sets the target for both stderr and stdout
      Parameters:
      sink -
      Returns: