public abstract class AbstractService extends java.lang.Object implements Service, SLCallable
Title: Service Event Fabric Core
Description: Base class for all descendants of Service
.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the service.
|
java.lang.String |
getStartupDir()
Returns a directory where the Callable application is launched.
|
void |
init()
Initializes the service.
|
boolean |
isNativeContext(com.streamscape.slex.MFSession session)
Checks if the specified session represents a context that is native to this Callable object.
|
void |
resume()
Resumes the suspended service.
|
void |
start()
Starts the service.
|
void |
stop()
Stops the service.
|
void |
suspend()
Suspends the service.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMajorBuild, getMajorVersion, getMinorBuild, getMinorVersion, getVersion
public void destroy() throws ServiceFrameworkException
Service
destroy
in interface Service
ServiceFrameworkException
- if some error occurs.public final void init() throws ServiceFrameworkException
Service
init
in interface Service
ServiceFrameworkException
- if some error occurs.public void resume() throws ServiceFrameworkException
Service
resume
in interface Service
ServiceFrameworkException
- if some error occurs.public void start() throws ServiceFrameworkException
Service
start
in interface Service
ServiceFrameworkException
- if some error occurs.public void stop() throws ServiceFrameworkException
Service
stop
in interface Service
ServiceFrameworkException
- if some error occurs.public void suspend() throws ServiceFrameworkException
Service
suspend
in interface Service
ServiceFrameworkException
- if some error occurs.public boolean isNativeContext(com.streamscape.slex.MFSession session)
SLCallable
RuntimeMFSession
represents a context that is native to operations
that use the RuntimeContext
as a Callable object.isNativeContext
in interface SLCallable
session
- the session to be checked.true
if the specified context is native to this object, false
otherwise.public java.lang.String getStartupDir()
SLCallable
getStartupDir
in interface SLCallable
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.