|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
com.latencybusters.lbm.LBMContextAttributes
public class LBMContextAttributes
Encapsulates the set of default LBM context attributes.
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
LBMContextAttributes()
Create and fill an LBMContextAttributes object with the current default values |
|
LBMContextAttributes(java.lang.String contextName)
Create and fill an LBMContextAttributes object with the current default values for the given context name. |
|
| Method Summary | |
|---|---|
void |
clearSourceNotification()
Clear the currently stored source notification callback and token |
void |
disableSourceNotification()
Disable new source notifications. |
void |
dispose()
Free memory associated with this set of attributes. |
LBMConfigOption[] |
dumpAttributeList()
Returns an array of LBMConfigOptions. |
void |
enableSourceNotification()
Enable new source notifications. |
protected void |
finalize()
|
java.lang.Object |
getRcvLivenessClientd()
|
UMEReceiverLivenessCreationCallback |
getRcvLivenessCreateCB()
|
UMEReceiverLivenessDeletionCallback |
getRcvLivenessDeleteCB()
|
java.lang.String |
getValue(java.lang.String attributeName)
Returns the current value of an attribute from this set of context attributes. |
void |
load(java.io.InputStream inStream)
Reads a property (attribute) list (key and element pairs) from the input stream. |
void |
setContextEventCallback(LBMContextEventCallback cb)
Set the context event callback for an LBMContext. |
void |
setContextEventCallback(LBMContextEventCallback cb,
LBMEventQueue evq)
Set the context event callback for an LBMContext and associated callback object. |
void |
setContextEventCallback(LBMContextEventCallback cb,
java.lang.Object cbArg)
Set the context event callback for an LBMContext and associated callback object. |
void |
setContextEventCallback(LBMContextEventCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
Set the context event callback for an LBMContext and associated callback object. |
void |
setContextSourceEventCallback(LBMContextSourceEventCallback cb)
Set the context-level source event callback for an LBMContext. |
void |
setContextSourceEventCallback(LBMContextSourceEventCallback cb,
LBMEventQueue evq)
Set the context-level source event callback for an LBMContext and associated callback object. |
void |
setContextSourceEventCallback(LBMContextSourceEventCallback cb,
java.lang.Object cbArg)
Set the context-level source event callback for an LBMContext and associated callback object. |
void |
setContextSourceEventCallback(LBMContextSourceEventCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
Set the context-level source event callback for an LBMContext and associated callback object. |
void |
setFromXml(java.lang.String contextName)
Fill an LBMContextAttributes object with the default values for the given context name specified by the XML configuration. |
void |
setImmediateMessageCallback(LBMImmediateMessageCallback cb)
Set (and enable) the context callback for topic-less immediate mode messages. |
void |
setImmediateMessageCallback(LBMImmediateMessageCallback cb,
LBMEventQueue evq)
Set (and enable) the context callback for topic-less immediate mode messages. |
void |
setImmediateMessageCallback(LBMImmediateMessageCallback cb,
java.lang.Object cbArg)
Set (and enable) the context callback for topic-less immediate mode messages. |
void |
setImmediateMessageCallback(LBMImmediateMessageCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
Set (and enable) the context callback for topic-less immediate mode messages. |
void |
setObjectRecycler(LBMObjectRecyclerBase objRec,
java.lang.Object objRecCbArg)
Set the LBM object recycler that can be used by the context to reuse LBMMessage objects as well as LBM Context/Receiver/Source Statistics objects. |
java.lang.Object |
setProperty(java.lang.String attributeName,
java.lang.String attributeValue)
Set the current value of an attribute in this set of context attributes. |
void |
setReceiverLivenessNotificationCallbacks(UMEReceiverLivenessCreationCallback creationCb,
UMEReceiverLivenessDeletionCallback deletionCb,
java.lang.Object cbArg)
Register callbacks for new receiver liveness notifications and receiver deletion notifications. |
void |
setSourceCostCallback(LBMSourceCostCallback cb)
Set the source cost callback function for an LBMContext, which is an application callback to evaluate the cost of a newly discovered source |
void |
setSourceCostCallback(LBMSourceCostCallback cb,
java.lang.Object cbArg)
Set the source cost callback function for an LBMContext, which is an application callback to evaluate the cost of a newly discovered source |
void |
setSourceNotification(LBMSourceNotification cb,
java.lang.Object cbarg)
Set the callback and token to be used for source notifications. |
void |
setValue(java.lang.String attributeName,
java.lang.String attributeValue)
Set the current value of an attribute in this set of context attributes. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LBMContextAttributes(java.lang.String contextName)
throws LBMException
contextName - Context name string. Is written into the attributes object.
LBMException - if the contextName is not permitted by the configuration or other operational failure.
public LBMContextAttributes()
throws LBMException
LBMException| Method Detail |
|---|
public void setFromXml(java.lang.String contextName)
throws LBMException
contextName - Context name string. Is written into the attributes object.
LBMException - if the contextName is not permitted by the configuration or other operational failure.protected void finalize()
finalize in class java.lang.Objectpublic void dispose()
public LBMConfigOption[] dumpAttributeList()
public java.lang.String getValue(java.lang.String attributeName)
throws LBMException
attributeName - Name of the attribute to retrieve
LBMException - if attributeName is not a valid attribute.
public void setValue(java.lang.String attributeName,
java.lang.String attributeValue)
throws LBMException
attributeName - Name of the attribute to setattributeValue - New attribute value
LBMException - if attributeName is not a valid attribute,
or attributeValue is not a valid value for attributeName.setProperty(java.lang.String, java.lang.String)
public java.lang.Object setProperty(java.lang.String attributeName,
java.lang.String attributeValue)
setProperty in class java.util.PropertiesattributeName - Name of the attribute to setattributeValue - New attribute value
LBMRuntimeException - if attributeName is not a valid attribute,
or attributeValue is not a valid value for attributeName.
public void load(java.io.InputStream inStream)
throws java.io.IOException
load in class java.util.PropertiesinStream - Input stream of bytes
java.io.IOException - if any I/O error occurs.
LBMRuntimeException - if any invalid attribute is detected in inStream.
public void setObjectRecycler(LBMObjectRecyclerBase objRec,
java.lang.Object objRecCbArg)
objRec - an LBM object recycler that will be called when objects need to be retrievedobjRecCbArg - a callback object token that will be passed in the retrieve method
public void setSourceNotification(LBMSourceNotification cb,
java.lang.Object cbarg)
public void clearSourceNotification()
public void enableSourceNotification()
LBMContext.addSourceNotifyCallback(com.latencybusters.lbm.LBMSourceNotification).
LBMContext.addSourceNotifyCallback(com.latencybusters.lbm.LBMSourceNotification),
disableSourceNotification()public void disableSourceNotification()
public void setContextSourceEventCallback(LBMContextSourceEventCallback cb)
cb - An object implementing the LBMContextSourceEventCallback interface.
public void setContextSourceEventCallback(LBMContextSourceEventCallback cb,
java.lang.Object cbArg)
cb - An object implementing the LBMContextSourceEventCallback interface.cbArg - A user-supplied callback object to be passed back in context source event callbacks.
public void setContextSourceEventCallback(LBMContextSourceEventCallback cb,
LBMEventQueue evq)
cb - An object implementing the LBMContextSourceEventCallback interface.evq - An LBMEventQueue on which to place context source events.
public void setContextSourceEventCallback(LBMContextSourceEventCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
cb - An object implementing the LBMContextSourceEventCallback interface.cbArg - A user-supplied callback object to be passed back in context source event callbacks.evq - An LBMEventQueue on which to place context source events.public void setContextEventCallback(LBMContextEventCallback cb)
cb - An object implementing the LBMContextEventCallback interface.
public void setContextEventCallback(LBMContextEventCallback cb,
java.lang.Object cbArg)
cb - An object implementing the LBMContextEventCallback interface.cbArg - A user-supplied callback object to be passed back in context event callbacks.
public void setContextEventCallback(LBMContextEventCallback cb,
LBMEventQueue evq)
cb - An object implementing the LBMContextEventCallback interface.evq - An LBMEventQueue on which to place context events.
public void setContextEventCallback(LBMContextEventCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
cb - An object implementing the LBMContextEventCallback interface.cbArg - A user-supplied callback object to be passed back in context event callbacks.evq - An LBMEventQueue on which to place context events.public void setImmediateMessageCallback(LBMImmediateMessageCallback cb)
cb - An object implementing the LBMImmediateMessageCallback interface.
public void setImmediateMessageCallback(LBMImmediateMessageCallback cb,
LBMEventQueue evq)
cb - An object implementing the LBMImmediateMessageCallback interface.evq - LBMEventQueue on which to place received topic-less immediate-mode messages (can be null).
public void setImmediateMessageCallback(LBMImmediateMessageCallback cb,
java.lang.Object cbArg)
cb - An object implementing the LBMImmediateMessageCallback interface.cbArg - A user-supplied callback object to be passed back in to the immediate message receiver callback.
public void setImmediateMessageCallback(LBMImmediateMessageCallback cb,
java.lang.Object cbArg,
LBMEventQueue evq)
cb - An object implementing the LBMImmediateMessageCallback interface.cbArg - A user-supplied callback object to be passed back in to the immediate message receiver callback.evq - LBMEventQueue on which to place received topic-less immediate-mode messages (can be null).public void setSourceCostCallback(LBMSourceCostCallback cb)
cb - LBMSourceCostCallback callback implementation
public void setSourceCostCallback(LBMSourceCostCallback cb,
java.lang.Object cbArg)
cb - LBMSourceCostCallback callback implementationcbArg - Callback object token
public void setReceiverLivenessNotificationCallbacks(UMEReceiverLivenessCreationCallback creationCb,
UMEReceiverLivenessDeletionCallback deletionCb,
java.lang.Object cbArg)
throws LBMException
LBMExceptionpublic UMEReceiverLivenessCreationCallback getRcvLivenessCreateCB()
public UMEReceiverLivenessDeletionCallback getRcvLivenessDeleteCB()
public java.lang.Object getRcvLivenessClientd()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||