public class SystemOutService extends StartableService
| Modifier and Type | Class and Description |
|---|---|
static class |
SystemOutService.Redirect |
static class |
SystemOutService.RedirectStream |
static class |
SystemOutService.RedirectThread |
| Modifier and Type | Field and Description |
|---|---|
protected List<Hook> |
errputHooks |
protected List<Hook> |
outputHooks |
protected boolean |
running |
startCallLevel, startStopSync, stopCallLevelserviceEventQueue| Constructor and Description |
|---|
SystemOutService() |
| Modifier and Type | Method and Description |
|---|---|
List<Hook> |
getErrputHooksList()
Возвращает список обработчиков System.err
|
List<Hook> |
getOutputHooksList()
Возвращает список обработчиков System.out
|
PrintStreamProxy |
getProxyErr()
Возвращает proxy для System.err
|
PrintStreamProxy |
getProxyOut()
Возвращает proxy для System.out
|
PrintStream |
getSystemErr()
Возвращает системный поток err (stdio)
|
PrintStream |
getSystemOut()
Возвращает системный поток out (stdio)
|
boolean |
isProxyInstalled() |
boolean |
isRunning()
Возвращает состояние сервиса
|
protected void |
onStart()
Реализация старта сервиса, вызывается когда все зависимости разрешены и isRunning() == false
|
protected void |
onStop()
Реализация остановки сервиса, вызывается напрямую из stop(), если isRunning() == true
|
SystemOutService.Redirect |
redirect() |
fireStarted, fireStarting, fireStopped, fireStopping, getServiceByStopper, getServiceDependencies, isDetectCycleStart, isDetectCycleStop, onResolvedDependencies, start, stop, stopByDependencyaddServiceEvent, addServiceListener, addServiceListener, findFirstService, findServices, findServices, findServices, fireServiceEvent, fireServiceEvents, getConsole, getFieldDependencies, getInitDependenciesCallCount, getServiceListeners, getUnresolvedDependencies, hasServiceListener, init, initDependencies, instances, isResolvedDependencies, listeners, onInitServicesEnd, removeServiceListener, resolveDependecyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitaddServiceEvent, addServiceListener, addServiceListener, fireServiceEvents, getServiceListeners, hasServiceListener, removeServiceListenerpublic PrintStream getSystemOut()
public PrintStream getSystemErr()
public PrintStreamProxy getProxyOut()
public PrintStreamProxy getProxyErr()
public boolean isProxyInstalled()
protected void onStart()
StartableServiceonStart in class StartableServiceprotected void onStop()
StartableServiceonStop in class StartableServicepublic boolean isRunning()
StartServicepublic List<Hook> getOutputHooksList()
public List<Hook> getErrputHooksList()
public SystemOutService.Redirect redirect()
Copyright © 2018. All rights reserved.