|
||||||||||
| 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.core.base.DefaultObjectFactory
org.norther.tammi.core.net.AbstractCommonFactory
public abstract class AbstractCommonFactory
An abstract implementation of network resource CommonFactory.
| Field Summary | |
|---|---|
protected int |
socketBacklog
The backlog for sockets. |
| 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 | |
|---|---|
protected |
AbstractCommonFactory()
Constructs a base socket factory. |
| Method Summary | |
|---|---|
protected ServerSocket |
createServerSocket(String className,
Object[] params,
String[] signature)
Creates a new server socket. |
protected Socket |
createSocket(String className,
Object[] params,
String[] signature)
Creates a new socket. |
int |
getBacklog()
Gets the backlog. |
protected abstract ServerSocketFactory |
getServerSocketFactory(String alias,
String pswd)
Gets the implementation of the server socket factory. |
protected abstract SocketFactory |
getSocketFactory(String alias,
String pswd)
Gets the implementation of the socket factory. |
int |
getSoTimeout()
Gets the accept timeout. |
boolean |
isLoaderSupported(String className)
Checks if specified class loaders are supported for a named class. |
boolean |
isReuseAddress()
Checks the reuse address. |
boolean |
isSecure()
Checks whether sockets produced are secure. |
void |
setBacklog(int backlog)
Sets the backLog. |
void |
setReuseAddress(boolean reuse)
Sets the reuse address. |
void |
setSoTimeout(int timeout)
Sets the accept timeout. |
| Methods inherited from class org.norther.tammi.core.base.DefaultObjectFactory |
|---|
getInstance, getInstance, getInstance, getInstance |
| 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, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, 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.core.base.ObjectFactory |
|---|
getInstance, getInstance, getInstance, getInstance |
| Field Detail |
|---|
protected int socketBacklog
| Constructor Detail |
|---|
protected AbstractCommonFactory()
| Method Detail |
|---|
public int getSoTimeout()
CommonFactory
getSoTimeout in interface CommonFactorypublic void setSoTimeout(int timeout)
CommonFactory
setSoTimeout in interface CommonFactorytimeout - a new accept timeout.public boolean isReuseAddress()
CommonFactory
isReuseAddress in interface CommonFactorypublic void setReuseAddress(boolean reuse)
CommonFactory
setReuseAddress in interface CommonFactoryreuse - the reuse address.public boolean isSecure()
CommonFactory
isSecure in interface CommonFactorypublic boolean isLoaderSupported(String className)
ObjectFactory
isLoaderSupported in interface ObjectFactoryisLoaderSupported in class DefaultObjectFactoryclassName - the name of the class.
public int getBacklog()
public void setBacklog(int backlog)
backlog - a new back log.
protected Socket createSocket(String className,
Object[] params,
String[] signature)
throws ConstructionException
className - the name of the class.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
ConstructionException - if construction fails.
protected ServerSocket createServerSocket(String className,
Object[] params,
String[] signature)
throws ConstructionException
className - the name of the class.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
ConstructionException - if construction fails.
protected abstract SocketFactory getSocketFactory(String alias,
String pswd)
throws ConstructionException
alias - an optional key alias.pswd - an optional key password.
ConstructionException - if a resource is not available.
protected abstract ServerSocketFactory getServerSocketFactory(String alias,
String pswd)
throws ConstructionException
alias - an optional key alias.pswd - an optional key password.
ConstructionException - if a resource is not available.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||