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() |
protected void |
onStop() |
SystemOutService.Redirect |
redirect() |
fireStarted, fireStarting, fireStopped, fireStopping, getServiceByStopper, getServiceDependencies, isDetectCycleStart, isDetectCycleStop, onResolvedDependencies, start, stop, stopByDependencyaddServiceEvent, addServiceListener, addServiceListener, findFirstService, 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()
onStart in class StartableServiceprotected void onStop()
onStop in class StartableServicepublic boolean isRunning()
public List<Hook> getOutputHooksList()
public List<Hook> getErrputHooksList()
public SystemOutService.Redirect redirect()
Copyright © 2019. All rights reserved.