|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ws4d.java.configuration.DispatchingProperties
public class DispatchingProperties
Class holds dispatching properties.
Field Summary | |
---|---|
static java.lang.String |
PROP_APPLICATION_MAX_DELAY
Amount of time in millis dispatcher will wait to send probe matches and hello messages. |
static java.lang.String |
PROP_DEVICE_REFERENCE_AUTO_BUILD
Property to build up a device reference for each recognized remote device. |
static java.lang.String |
PROP_MATCH_WAIT_TIME
Time to wait until a time exception is thrown, after a request was sent and no answer was received. |
static java.lang.String |
PROP_MESSAGE_ID_BUFFER_SIZE
Size of message id buffer. |
static java.lang.String |
PROP_REFERENCE_CACHING_TIME
Caching time in milliseconds for references without reference holder. |
static java.lang.String |
PROP_RESPONSE_WAIT_TIME
Time to wait until a time exception is thrown, after a request was sent and no answer was received. |
static java.lang.String |
PROP_SERVICE_REFERENCE_CACHE_SIZE
Size of the cache for remote service references. |
Fields inherited from interface org.ws4d.java.configuration.PropertiesHandler |
---|
FALSE, TRUE |
Method Summary | |
---|---|
void |
finishedSection(int depth)
This method indicates the PropertiesHandler, that the last section with the given depth has been read completely. |
static DispatchingProperties |
getInstance()
Gets instance of dispatching properties. |
long |
getMatchWaitTime()
Gets time in millis for which the framework waits for a resolve matches or a probe matches message, before it throws a TimeoutException . |
int |
getMessageIdBufferSize()
Gets size of message id buffer. |
int |
getReferenceCachingTime()
Gets target reference caching time, i. e. the time a DeviceReference is cached in the DeviceServiceRegistry
without having a registered DeviceListener . |
int |
getResponseWaitTime()
Gets time until request will timeout, if no response is received. |
int |
getServiceReferenceCacheSize()
Gets cache size of ServiceReference s of remote services not
linked to a parent device. |
boolean |
isDeviceReferenceAutoBuild()
Is a device reference created for each recognized remote device. |
void |
setDeviceReferenceAutoBuild(boolean deviceReferenceAutoBuild)
Sets if a device reference should be created for each recognized remote device. |
void |
setMatchWaitTime(long matchWaitTime)
Sets time in millis for which the framework waits for a resolve matches or a probe matches message, before it throws a TimeoutException . |
void |
setMessageIdBufferSize(int msgIdBufferSize)
Sets size of message id buffer. |
void |
setProperties(PropertyHeader header,
Property property)
|
void |
setReferenceCachingTime(int targetReferenceCachingTime)
Sets target reference caching time, i. e. the time a DeviceReference is cached in the DeviceServiceRegistry
without having a registered DeviceListener . |
void |
setResponseWaitTime(int responseWaitTime)
Sets time until request will timeout, if no response is received. |
void |
setServiceReferenceCacheSize(int servRefCacheSize)
Sets cache size of ServiceReference s of remote services not
linked to a parent device. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_REFERENCE_CACHING_TIME
public static final java.lang.String PROP_RESPONSE_WAIT_TIME
public static final java.lang.String PROP_MATCH_WAIT_TIME
public static final java.lang.String PROP_APPLICATION_MAX_DELAY
public static final java.lang.String PROP_MESSAGE_ID_BUFFER_SIZE
public static final java.lang.String PROP_SERVICE_REFERENCE_CACHE_SIZE
public static final java.lang.String PROP_DEVICE_REFERENCE_AUTO_BUILD
Method Detail |
---|
public static DispatchingProperties getInstance()
public void setProperties(PropertyHeader header, Property property)
setProperties
in interface PropertiesHandler
header
- header of sectionproperty
- property within sectionpublic void finishedSection(int depth)
PropertiesHandler
finishedSection
in interface PropertiesHandler
depth
- depth of section.public int getReferenceCachingTime()
DeviceReference
is cached in the DeviceServiceRegistry
without having a registered DeviceListener
.
DeviceReference
is cached without having
a registered DeviceListener
. Afterwards the reference is
removed from the DeviceServiceRegistry
.public void setReferenceCachingTime(int targetReferenceCachingTime)
DeviceReference
is cached in the DeviceServiceRegistry
without having a registered DeviceListener
.
targetReferenceCachingTime
- Time in millis a
DeviceReference
is cached without having a registered
DeviceListener
. Afterwards the reference is removed
from DeviceServiceRegistry
.public int getResponseWaitTime()
public void setResponseWaitTime(int responseWaitTime)
responseWaitTime
- time for request until response must have been
received, or will timeoutpublic int getMessageIdBufferSize()
public void setMessageIdBufferSize(int msgIdBufferSize)
msgIdBufferSize
- public int getServiceReferenceCacheSize()
ServiceReference
s of remote services not
linked to a parent device. The longest not used service reference will be
disposed, if cache size is reached and an new service reference must be
inserted into the cache.
public void setServiceReferenceCacheSize(int servRefCacheSize)
ServiceReference
s of remote services not
linked to a parent device. The longest not used service reference will be
disposed, if cache size is reached and an new service reference must be
inserted into the cache.
servRefCacheSize
- size of cachepublic long getMatchWaitTime()
TimeoutException
.
public void setMatchWaitTime(long matchWaitTime)
TimeoutException
.
matchWaitTime
- time in millis.public boolean isDeviceReferenceAutoBuild()
true
, if a device reference is created for each
recognized remote device, else false
.public void setDeviceReferenceAutoBuild(boolean deviceReferenceAutoBuild)
deviceReferenceAutoBuild
- true
, if a device reference
should be created for each recognized remote device, else
false
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |