|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| 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.base.Startable |
|---|
isStarted |
| 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 Manageablepostmanaged in class DefaultConnector
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class DefaultExecutableConnectorException - if the adaptee refused to be unmanaged.public boolean keepConnection(Connection con)
Connector
keepConnection in interface ConnectorkeepConnection in class DefaultConnectorcon - the connection.
public boolean isClientAuthWanted()
LocalConnector
isClientAuthWanted in interface LocalConnectorpublic void setClientAuthWanted(boolean flag)
LocalConnector
setClientAuthWanted in interface LocalConnectorflag - true for client authentication, false otherwise.public boolean isClientAuthNeeded()
LocalConnector
isClientAuthNeeded in interface LocalConnectorpublic void setClientAuthNeeded(boolean flag)
LocalConnector
setClientAuthNeeded in interface LocalConnectorflag - true for client authentication, false otherwise.
public void start()
throws Exception
Startable
start in interface Startablestart in class DefaultExecutableConnectorException - if start fails.public void stop()
Startable
stop in interface Startablestop in class DefaultExecutableConnectorpublic void run()
run in interface Runnablerun in class DefaultExecutableConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||