org.norther.tammi.core.base
Interface Startable

All Known Subinterfaces:
CacheMonitor, ChannelConnector, Connector, Executable, ExecutableConnector, Executor, Finalizer, HibernatePersisterFactory, JSPEngine, LocalConnector, MailSender, OJBPersisterFactory, PooledExecutor, RMIConnector, Schedulable, Scheduler, ServletConnector, ServletEngine, SocketConnector, Startup, TCPConnector, TemplateEngine, ThreadedExecutor, ThreadedLogger, Timeout, VariableRootMBean, XMLPersisterFactory
All Known Implementing Classes:
AbstractExecutor, AbstractTemplateEngine, AbstractThreadedLogger, DefaultCacheMonitor, DefaultChannelConnector, DefaultConnector, DefaultDirectExecutor, DefaultExecutable, DefaultExecutableConnector, DefaultFinalizer, DefaultHibernatePersisterFactory, DefaultJSPEngine, DefaultLocalConnector, DefaultMailSender, DefaultOJBPersisterFactory, DefaultPooledExecutor, DefaultRMIConnector, DefaultSchedulable, DefaultScheduler, DefaultServletConnector, DefaultServletEngine, DefaultSocketConnector, DefaultStartup, DefaultTCPConnector, DefaultThreadedExecutor, DefaultTimeout, DefaultXMLPersisterFactory, FreemarkerEngine, JDK4Logger, Log4JLogger, VariableRoot, VelocityEngine

public interface Startable

An interface to startable objects, which can be started and stopped with the defined methods.

Author:
Ilkka Priha

Method Summary
 boolean isStarted()
          Checks whether the startable has been started.
 void start()
          Starts the MBean.
 void stop()
          Stops the MBean.
 

Method Detail

isStarted

boolean isStarted()
Checks whether the startable has been started.

Returns:
true if started, otherwise false.

start

void start()
           throws Exception
Starts the MBean.

Throws:
Exception - if start fails.

stop

void stop()
Stops the MBean.



Copyright © 2004 The Norther Organization. All rights reserved.