public class DatumStreamReactor
extends net.solarnetwork.node.service.support.BaseIdentifiable
implements net.solarnetwork.settings.SettingSpecifierProvider, org.osgi.service.event.EventHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_INSTRUCTION_TOPIC
The
instructionTopic property default value. |
| Constructor and Description |
|---|
DatumStreamReactor() |
| Modifier and Type | Method and Description |
|---|---|
ControlPropertyConfig |
getConfig()
Get the control property configuration.
|
java.lang.String |
getDisplayName() |
java.lang.String |
getInstructionTopic()
Get the instruction topic.
|
net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.OperationalModesService> |
getOpModesService()
Get the operational modes service.
|
java.util.List<net.solarnetwork.settings.SettingSpecifier> |
getSettingSpecifiers() |
java.lang.String |
getSettingUid() |
java.util.regex.Pattern |
getSourceIdRegex()
Get the source ID regular expression.
|
java.lang.String |
getSourceIdRegexValue()
Get the source ID regular expression as a string.
|
void |
handleEvent(org.osgi.service.event.Event event) |
void |
setDatumService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.DatumService> datumService)
Set the datum service.
|
void |
setExecutor(java.util.concurrent.Executor executor)
Set an executor to use for internal tasks.
|
void |
setInstructionExecutionService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.reactor.InstructionExecutionService> instructionExecutionService)
Set the instruction service.
|
void |
setInstructionTopic(java.lang.String instructionTopic)
Set the instruction topic.
|
void |
setOpModesService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.OperationalModesService> opModesService)
Set the operational modes service.
|
void |
setSourceIdRegex(java.util.regex.Pattern sourceIdRegex)
Set the source ID regular expression.
|
void |
setSourceIdRegexValue(java.lang.String sourceIdRegex)
Set the source ID regular expression as a string.
|
baseIdentifiableSettings, baseIdentifiableSettings, getExpressionServices, getPlaceholderService, populateExpressionDatumProperties, resolvePlaceholders, resolvePlaceholders, setExpressionServices, setPlaceholderServicebasicIdentifiableMetadataSettings, basicIdentifiableSettings, basicIdentifiableSettings, basicIdentifiableSettings, doubleMetadataValue, getGroupUid, getGroupUID, getMessageSource, getMetadata, getMetadataCount, getUid, getUID, integerMetadataValue, metadataValue, numberMetadataValue, saveMetadataValue, saveMetadataValue, setDisplayName, setGroupUid, setGroupUID, setMessageSource, setMetadata, setMetadataCount, setUid, setUID, smartMetadataValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final java.lang.String DEFAULT_INSTRUCTION_TOPIC
instructionTopic property default value.public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerpublic java.lang.String getSettingUid()
getSettingUid in interface net.solarnetwork.settings.SettingSpecifierProviderpublic java.lang.String getDisplayName()
getDisplayName in interface net.solarnetwork.service.IdentifiablegetDisplayName in interface net.solarnetwork.settings.SettingSpecifierProvidergetDisplayName in class net.solarnetwork.service.support.BasicIdentifiablepublic java.util.List<net.solarnetwork.settings.SettingSpecifier> getSettingSpecifiers()
getSettingSpecifiers in interface net.solarnetwork.settings.SettingSpecifierProviderpublic void setExecutor(java.util.concurrent.Executor executor)
executor - the executorpublic java.util.regex.Pattern getSourceIdRegex()
public void setSourceIdRegex(java.util.regex.Pattern sourceIdRegex)
sourceIdRegex - a pattern to match against source IDs; if defined then this datum
will only be generated for controls with matching source ID
values; if null then generate datum for all controlspublic java.lang.String getSourceIdRegexValue()
public void setSourceIdRegexValue(java.lang.String sourceIdRegex)
Errors compiling sourceIdRegex into a Pattern will be
silently ignored, causing the regular expression to be set to
null.
sourceIdRegex - a pattern to match against source IDs; if defined then this datum
will only be generated for controls with matching source ID
values; if null then generate datum for all controlspublic ControlPropertyConfig getConfig()
public void setInstructionExecutionService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.reactor.InstructionExecutionService> instructionExecutionService)
instructionExecutionService - the service to setpublic void setDatumService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.DatumService> datumService)
datumService - the service to setpublic java.lang.String getInstructionTopic()
public void setInstructionTopic(java.lang.String instructionTopic)
instructionTopic - the instruction topic to set; if null then
DEFAULT_INSTRUCTION_TOPIC will be set insteadpublic net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.OperationalModesService> getOpModesService()
public void setOpModesService(net.solarnetwork.service.OptionalService<net.solarnetwork.node.service.OperationalModesService> opModesService)
opModesService - the service to set