|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.base.Adaptee org.norther.tammi.spray.connector.DefaultConnector org.norther.tammi.spray.connector.DefaultExecutableConnector org.norther.tammi.spray.connector.DefaultTCPConnector org.norther.tammi.spray.connector.DefaultLocalConnector
public class DefaultLocalConnector
A default implementation of LocalConnector.
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 |
Constructor Summary | |
---|---|
|
DefaultLocalConnector()
Constructs a new connector. |
protected |
DefaultLocalConnector(InetAddress addr)
Constructs a connector with a host address. |
Method Summary | |
---|---|
boolean |
isClientAuthNeeded()
Checks whether client authentication is needed. |
boolean |
isClientAuthWanted()
Checks whether client authentication is wanted. |
boolean |
keepConnection(Connection con)
Keeps the specified connection alive on idle after processing the corresponding request if applicable. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
run()
|
void |
setClientAuthNeeded(boolean flag)
Sets whether client authentication is needed. |
void |
setClientAuthWanted(boolean flag)
Sets whether client authentication is wanted. |
void |
start()
Starts the MBean. |
void |
stop()
Stops the MBean. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
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, setAddress, 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 |
---|
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, setConnectionTimeout, setFilterName, setKeyAlias, setKeyPassword, setLoggerName, setLoggingDisabled, 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 |
Constructor Detail |
---|
public DefaultLocalConnector()
protected DefaultLocalConnector(InetAddress addr)
addr
- the host address.Method Detail |
---|
public void postmanaged()
Manageable
postmanaged
in interface Manageable
postmanaged
in class DefaultConnector
public void unmanaged() throws Exception
Manageable
unmanaged
in interface Manageable
unmanaged
in class DefaultExecutableConnector
Exception
- if the adaptee refused to be unmanaged.public boolean keepConnection(Connection con)
Connector
keepConnection
in interface Connector
keepConnection
in class DefaultConnector
con
- the connection.
public boolean isClientAuthWanted()
LocalConnector
isClientAuthWanted
in interface LocalConnector
public void setClientAuthWanted(boolean flag)
LocalConnector
setClientAuthWanted
in interface LocalConnector
flag
- true for client authentication, false otherwise.public boolean isClientAuthNeeded()
LocalConnector
isClientAuthNeeded
in interface LocalConnector
public void setClientAuthNeeded(boolean flag)
LocalConnector
setClientAuthNeeded
in interface LocalConnector
flag
- true for client authentication, false otherwise.public void start() throws Exception
Startable
start
in interface Startable
start
in class DefaultExecutableConnector
Exception
- if start fails.public void stop()
Startable
stop
in interface Startable
stop
in class DefaultExecutableConnector
public void run()
run
in interface Runnable
run
in class DefaultExecutableConnector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |