Class SimpleNodeControlsService

java.lang.Object
net.solarnetwork.service.support.BasicIdentifiable
net.solarnetwork.node.service.support.BaseIdentifiable
net.solarnetwork.node.runtime.SimpleNodeControlsService
All Implemented Interfaces:
InstructionHandler, net.solarnetwork.service.Identifiable

public class SimpleNodeControlsService extends BaseIdentifiable implements InstructionHandler
Service to support node control management.
Since:
3.3
Version:
1.0
Author:
matt
  • Field Details

    • CONTROLS_SERVICE_UID

      public static final String CONTROLS_SERVICE_UID
      The default UID for this service.
      See Also:
    • PARAM_FILTER

      public static final String PARAM_FILTER
      An optional instruction parameter containing an Ant-style path pattern to filter the returned control IDs by.
      See Also:
  • Constructor Details

  • Method Details

    • handlesTopic

      public boolean handlesTopic(String topic)
      Description copied from interface: InstructionHandler
      Test if a topic is handled by this handler.
      Specified by:
      handlesTopic in interface InstructionHandler
      Parameters:
      topic - the topic
      Returns:
      true only if this handler can execute the job for the given topic
    • processInstruction

      public InstructionStatus processInstruction(Instruction instruction)
      Description copied from interface: InstructionHandler
      Process an instruction.
      Specified by:
      processInstruction in interface InstructionHandler
      Parameters:
      instruction - the instruction to process
      Returns:
      the status for the instruction, or null if the instruction was not handled