org.jboss.shotoku.service
Class AdministratedServiceImpl

java.lang.Object
  extended by org.jboss.shotoku.service.AdministratedServiceImpl
All Implemented Interfaces:
AdministratedService
Direct Known Subclasses:
ShotokuServiceImpl

public abstract class AdministratedServiceImpl
extends java.lang.Object
implements AdministratedService

Author:
Adam Warski (adamw@aster.pl)

Constructor Summary
AdministratedServiceImpl()
           
 
Method Summary
 void afterCreate()
           
 void afterDestroy()
           
 void afterStart()
           
 void create()
           
 void destroy()
           
 long getLastUpdate()
           
 java.util.Date getLastUpdateDate()
           
 boolean getServiceRunnable()
           
 long getTimerInterval()
           
 void setLastUpdate(long lastUpdate)
           
 void setServiceRunnable(boolean runnable)
           
 void setTimerInterval(long timerInterval)
           
 void start()
           
 void startUpdateThread()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.shotoku.service.AdministratedService
getServiceDescription, getServiceId, getServiceInstance, getServiceName, update
 

Constructor Detail

AdministratedServiceImpl

public AdministratedServiceImpl()
Method Detail

getLastUpdate

public long getLastUpdate()
Specified by:
getLastUpdate in interface AdministratedService

getLastUpdateDate

public java.util.Date getLastUpdateDate()
Specified by:
getLastUpdateDate in interface AdministratedService

setLastUpdate

public void setLastUpdate(long lastUpdate)
Specified by:
setLastUpdate in interface AdministratedService

getServiceRunnable

public boolean getServiceRunnable()
Specified by:
getServiceRunnable in interface AdministratedService

setServiceRunnable

public void setServiceRunnable(boolean runnable)
Specified by:
setServiceRunnable in interface AdministratedService

setTimerInterval

public void setTimerInterval(long timerInterval)

getTimerInterval

public long getTimerInterval()

create

public void create()
            throws java.lang.Exception
Specified by:
create in interface AdministratedService
Throws:
java.lang.Exception

afterCreate

public void afterCreate()
                 throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface AdministratedService
Throws:
java.lang.Exception

afterStart

public void afterStart()
                throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface AdministratedService

destroy

public void destroy()
Specified by:
destroy in interface AdministratedService

afterDestroy

public void afterDestroy()

startUpdateThread

public void startUpdateThread()


Copyright © -2006 . All Rights Reserved.