public class SM_Service extends FrameworkModule
FrameworkModule class in the same package as the Service
class, so that it can access the required Service fields. This is an interface class for a modular setup.| Modifier and Type | Field and Description |
|---|---|
protected ControlModule |
cm
This is the control module
|
protected java.lang.String |
commID
This stores the value of the last read communication id, so that
it can be identified by any method that is subsequently invoked.
|
passwordHandler, service, serviceTypejarFile, syncOn, uuid| Constructor and Description |
|---|
SM_Service(Service service,
PasswordHandler pHandler)
Creates a new instance of SM_Service.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommID()
Get the last read communication ID.
|
java.lang.String |
getServerPassword()
Get the local server password if it is stored.
|
void |
setCommID(java.lang.String thisCommID)
Set the last read communication ID.
|
protected void |
setControlModule()
Set the control module.
|
void |
setDataModule(DataModule theDm)
Set the data module in the behaviour to access the data
Resource. |
canAccess, canAccessTemp, getPasswordHandler, getPasswordHandler, getServicePassword, getServiceType, isAdminKey, setServiceDetails, setServiceTypegetJarFile, getUUID, loadObject, setJarFile, setUUID, threadAliveStateactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUUID, setJarFile, setUUIDprotected java.lang.String commID
protected ControlModule cm
public SM_Service(Service service, PasswordHandler pHandler) throws java.lang.Exception
service - the parent service.pHandler - the parent password handler.java.lang.Exception - any error.protected void setControlModule()
throws java.lang.Exception
java.lang.Exception - any error.public java.lang.String getServerPassword()
throws java.lang.Exception
getServerPassword in class FrameworkModulejava.lang.Exception - any error.public void setCommID(java.lang.String thisCommID)
thisCommID - the communication ID.public java.lang.String getCommID()
public void setDataModule(DataModule theDm)
Resource.theDm - the data module.