public static final class DOF.Config extends java.lang.Object implements DOFImmutable, java.io.Serializable
DOF.Config.Builder
to set configuration parameters, and call DOF.Config.Builder.build()
when you have finished setting the desired parameters. You then pass the instantiated Config to DOF.DOF(Config)
to instantiate a DOF.
The fields in this class represent default values for a DOF's configuration.
The methods of this class are getters for the parameters set using DOF.Config.Builder. Use these getters to
get information about a DOF.Config that may or may not have been used to instantiate a DOF.
To instead get current information about a DOF instance, use the methods of DOF.State
.Modifier and Type | Class and Description |
---|---|
static class |
DOF.Config.Builder
This class enables you to customize the configuration of a DOF.
|
Modifier and Type | Field and Description |
---|---|
static short |
DEFAULT_RANK
A mid-range value (128), so that the default desire to manage a secure multicast group
is neither strong nor weak.
|
static short |
DEFAULT_THREADPOOL_SIZE
Zero, which means the default is to allow the underlying operating system to manage the thread pool.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getConnectionLimit()
Gets the maximum number of connections that DOFs created from this DOF.Config will support.
|
java.lang.String |
getName()
Gets the name that will be given to DOFs created from this DOF.Config.
|
DOFProtocolFactory |
getProtocolFactory()
Gets the protocol factory that DOFs created from this DOF.Config will use.
|
short |
getRank()
Get the node rank that DOFs created from this DOF.Config will have.
|
DOFObjectID.Source |
getSourceID()
Gets the identifier that DOFs created from this DOF.Config will use for operations in the unsecured domain.
|
short |
getThreadPoolSize()
Gets the maximum number of threads that DOFs created from this DOF.Config will have in their thread pool.
|
int |
hashCode() |
boolean |
isParameterValidation()
|
boolean |
isRouter()
Discovers whether DOFs created from this DOF.Config will have routing set to true.
|
public static final short DEFAULT_RANK
DOF.Config.Builder.setRank(short)
to set a different value.public static final short DEFAULT_THREADPOOL_SIZE
DOF.Config.Builder.setThreadPoolSize(short)
to set a different value.public DOFObjectID.Source getSourceID()
DOF.State.getSourceID()
,
DOF.Config.Builder.setSourceID(org.opendof.core.oal.DOFObjectID.Source)
public boolean isRouter()
DOF.State.isRouter()
,
DOF.Config.Builder.setRouter(boolean)
public java.lang.String getName()
DOF.State.getName()
,
DOF.Config.Builder.setName(java.lang.String)
public int getConnectionLimit()
DOF.State.getConnectionLimit()
,
DOF.Config.Builder.setConnectionLimit(int)
public short getThreadPoolSize()
DOF.State.getThreadPoolSize()
,
DOF.Config.Builder.setThreadPoolSize(short)
public short getRank()
DOF.State.getRank()
,
DOF.Config.Builder.setRank(short)
public DOFProtocolFactory getProtocolFactory()
DOF.State.getProtocolFactory()
,
DOF.Config.Builder.setProtocolFactory(org.opendof.core.oal.DOFProtocolFactory)
public boolean isParameterValidation()
DOFValue
objects to verify
that the associated DOFType
matches a required type.DOF.State.isParameterValidation()
,
DOF.Config.Builder.setParameterValidation(boolean)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object