org.norther.tammi.spray.connector
Class DefaultSocketConnector

java.lang.Object
  extended by org.norther.tammi.core.base.Adaptee
      extended by org.norther.tammi.spray.connector.DefaultConnector
          extended by org.norther.tammi.spray.connector.DefaultExecutableConnector
              extended by org.norther.tammi.spray.connector.DefaultTCPConnector
                  extended by org.norther.tammi.spray.connector.DefaultLocalConnector
                      extended by org.norther.tammi.spray.connector.DefaultSocketConnector
All Implemented Interfaces:
Serializable, Runnable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, Startable, Executable, Connector, ExecutableConnector, LocalConnector, SocketConnector, TCPConnector

public class DefaultSocketConnector
extends DefaultLocalConnector
implements SocketConnector

A default implementation of SocketConnector.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.spray.connector.DefaultConnector
LOCALHOST
 
Fields inherited from class org.norther.tammi.core.base.Adaptee
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS
 
Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE
 
Constructor Summary
DefaultSocketConnector()
          Constructs a new socket connector.
 
Method Summary
 void setAddress(String addr)
          Sets the address of the server of the connection.
 
Methods inherited from class org.norther.tammi.spray.connector.DefaultLocalConnector
isClientAuthNeeded, isClientAuthWanted, keepConnection, postmanaged, run, setClientAuthNeeded, setClientAuthWanted, start, stop, unmanaged
 
Methods inherited from class org.norther.tammi.spray.connector.DefaultTCPConnector
getReceiveBufferSize, getSendBufferSize, getServerBufferSize, getSoLinger, getSoTimeout, isTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setServerBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay
 
Methods inherited from class org.norther.tammi.spray.connector.DefaultExecutableConnector
execute, getConnectionCount, getExecutorMBean, getExecutorName, getRequestExecutorName, isStarted, premanaged, setExecutorName, setRequestExecutorName
 
Methods inherited from class org.norther.tammi.spray.connector.DefaultConnector
getAddress, getConnectionTimeout, getFilterMBean, getFilterName, getInetAddress, getKeyAlias, getLoggerMBean, getLoggerName, getMaxIdleConnections, getName, getPort, getProvider, getRedirectPort, getRequestTimeout, getTimeoutMBean, isKeepConnection, isLoggingDisabled, isSecure, setConnectionTimeout, setFilterName, setInetAddress, setKeyAlias, setKeyPassword, setLoggerName, setLoggingDisabled, setMaxIdleConnections, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from class org.norther.tammi.core.base.Adaptee
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.spray.connector.LocalConnector
isClientAuthNeeded, isClientAuthWanted, setClientAuthNeeded, setClientAuthWanted, setMaxIdleConnections
 
Methods inherited from interface org.norther.tammi.spray.connector.TCPConnector
getReceiveBufferSize, getSendBufferSize, getServerBufferSize, getSoLinger, getSoTimeout, isTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setServerBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay
 
Methods inherited from interface org.norther.tammi.spray.connector.ExecutableConnector
getConnectionCount, getRequestExecutorName, setRequestExecutorName
 
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, setPort, setProvider, setRedirectPort, setRequestTimeout, setSecure
 
Methods inherited from interface org.norther.tammi.core.base.Startable
isStarted, start, stop
 
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
 

Constructor Detail

DefaultSocketConnector

public DefaultSocketConnector()
Constructs a new socket connector.

Method Detail

setAddress

public void setAddress(String addr)
                throws UnknownHostException
Description copied from class: DefaultConnector
Sets the address of the server of the connection.

Specified by:
setAddress in interface SocketConnector
Overrides:
setAddress in class DefaultConnector
Parameters:
addr - the address of the server.
Throws:
UnknownHostException - if not found.


Copyright © 2004 The Norther Organization. All rights reserved.