CoreService, ServiceController, ShellServicepublic abstract class AbstractShellService extends AspectranCoreService implements ShellService
ShellService implementations.
Created: 2017. 10. 30.
| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractShellService() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
afterContextLoaded() |
This method is executed immediately after the ActivityContext is loaded.
|
void |
beforeContextDestroy() |
This method executed just before the ActivityContext is destroyed.
|
CommandRegistry |
getCommandRegistry() |
|
java.lang.String[] |
getCommands() |
|
Console |
getConsole() |
|
java.lang.String |
getGreetings() |
|
boolean |
isBusy() |
Returns whether this service has any work in progress.
|
boolean |
isExposable(java.lang.String transletName) |
Checks whether the Translet can be exposed.
|
boolean |
isVerbose() |
Tests if the verbose mode is enabled.
|
SessionAdapter |
newSessionAdapter() |
|
void |
printGreetings() |
Prints welcome message.
|
void |
printHelp() |
Prints help information.
|
void |
restart() |
Restarts the service.
|
void |
restart(java.lang.String message) |
Restarts the service.
|
protected void |
setCommands(java.lang.String[] commands) |
|
protected void |
setConsole(Console console) |
|
void |
setGreetings(java.lang.String greetings) |
|
void |
setVerbose(boolean verbose) |
Enables or disables the verbose mode.
|
destroyActivityContext, getActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, isHardReload, loadActivityContext, pauseSchedulerService, pauseSchedulerService, prepare, resumeSchedulerService, setActivityContext, setBasePath, setExposals, startSchedulerService, stopSchedulerServicegetLock, getServiceName, isActive, pause, pause, resume, setServiceStateListener, start, stopdoPause, doPause, doRestart, doResume, doStart, doStop, isDerivedgetActivityContext, getApplicationAdapter, getAspectranClassLoader, getAspectranConfig, getBasePath, isHardReloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceName, isActive, isDerived, pause, pause, resume, setServiceStateListener, start, stopexecute, executeprotected AbstractShellService()
throws java.io.IOException
java.io.IOExceptionpublic void afterContextLoaded()
throws java.lang.Exception
AspectranCoreServiceafterContextLoaded in class AspectranCoreServicejava.lang.Exception - if an error occurspublic void beforeContextDestroy()
AspectranCoreServicebeforeContextDestroy in class AspectranCoreServicepublic SessionAdapter newSessionAdapter()
newSessionAdapter in interface ShellServicepublic Console getConsole()
getConsole in interface ShellServiceprotected void setConsole(Console console)
public java.lang.String[] getCommands()
getCommands in interface ShellServiceprotected void setCommands(java.lang.String[] commands)
public CommandRegistry getCommandRegistry()
getCommandRegistry in interface ShellServicepublic boolean isExposable(java.lang.String transletName)
ShellServiceisExposable in interface ShellServiceisExposable in class AbstractCoreServicetransletName - the name of the Translet to checkpublic boolean isVerbose()
isVerbose in interface ShellServicepublic void setVerbose(boolean verbose)
setVerbose in interface ShellServiceverbose - true to enable the verbose mode; false to disablepublic java.lang.String getGreetings()
getGreetings in interface ShellServicepublic void setGreetings(java.lang.String greetings)
setGreetings in interface ShellServicepublic void printGreetings()
ShellServiceprintGreetings in interface ShellServicepublic void printHelp()
ShellServiceprintHelp in interface ShellServicepublic void restart()
throws java.lang.Exception
ServiceControllerrestart in interface ServiceControllerrestart in class AbstractServiceControllerjava.lang.Exception - if the service control failspublic void restart(java.lang.String message)
throws java.lang.Exception
ServiceControllerrestart in interface ServiceControllerrestart in class AbstractServiceControllermessage - the message to be delivered to the system before restartjava.lang.Exception - if the service control failspublic boolean isBusy()
ServiceControllerisBusy in interface ServiceControllerisBusy in class AbstractServiceControllerCopyright © 2008–2018 The Aspectran Project. All rights reserved.