org.norther.tammi.spray.connector
Interface ExecutableConnector

All Superinterfaces:
Connector, Executable, Runnable, Startable
All Known Subinterfaces:
ChannelConnector, LocalConnector, RMIConnector, SocketConnector, TCPConnector
All Known Implementing Classes:
DefaultChannelConnector, DefaultExecutableConnector, DefaultLocalConnector, DefaultRMIConnector, DefaultSocketConnector, DefaultTCPConnector

public interface ExecutableConnector
extends Connector, Executable

An interface to executable connectors.

Version:
$Id: ExecutableConnector.java,v 1.12 2009/09/28 15:08:30 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 int getConnectionCount()
          Gets a snapshot of the number of active and idle connections.
 ObjectName getRequestExecutorName()
          Gets the executor for requests.
 void setRequestExecutorName(ObjectName executor)
          Sets the executor for requests.
 
Methods inherited from interface org.norther.tammi.spray.connector.Connector
getAddress, getConnectionTimeout, getFilterName, getKeyAlias, getLoggerName, getMaxIdleConnections, getName, getPort, getProvider, getRedirectPort, getRequestTimeout, isKeepConnection, isLoggingDisabled, isSecure, keepConnection, setConnectionTimeout, setFilterName, setKeyAlias, setKeyPassword, setLoggerName, setLoggingDisabled, setMaxIdleConnections, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from interface org.norther.tammi.core.thread.Executable
getExecutorName, setExecutorName
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getConnectionCount

int getConnectionCount()
Gets a snapshot of the number of active and idle connections.

The count is the number of active threads in the current request executor. If the same executor is shared by several connectors, the count is the sum of connections of these connectors.

Specified by:
getConnectionCount in interface Connector
Returns:
the number of connections.

getRequestExecutorName

ObjectName getRequestExecutorName()
Gets the executor for requests.

Returns:
the name of the executor or a query.

setRequestExecutorName

void setRequestExecutorName(ObjectName executor)
Sets the executor for requests.

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


Copyright © 2004 The Norther Organization. All rights reserved.