org.norther.tammi.core.thread
Interface Executable

All Superinterfaces:
Runnable, Startable
All Known Subinterfaces:
CacheMonitor, ChannelConnector, ExecutableConnector, Finalizer, LocalConnector, MailSender, RMIConnector, SocketConnector, TCPConnector, ThreadedLogger
All Known Implementing Classes:
AbstractThreadedLogger, DefaultCacheMonitor, DefaultChannelConnector, DefaultExecutable, DefaultExecutableConnector, DefaultFinalizer, DefaultLocalConnector, DefaultMailSender, DefaultRMIConnector, DefaultSocketConnector, DefaultTCPConnector, JDK4Logger, Log4JLogger

public interface Executable
extends Startable, Runnable

An interface to executable objects, which can be executed in their own thread provided by a speficied executor.

Author:
Ilkka Priha

Method Summary
 ObjectName getExecutorName()
          Gets the the executor of this executable.
 void setExecutorName(ObjectName executor)
          Sets the executor of this executable.
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getExecutorName

ObjectName getExecutorName()
Gets the the executor of this executable.

Returns:
the object name of the executor or a query.

setExecutorName

void setExecutorName(ObjectName executor)
Sets the executor of this executable. If it is not set, the default one will be used.

Note that it will be taken into use after next start.

Parameters:
executor - the object name of the executor or a query.


Copyright © 2004 The Norther Organization. All rights reserved.