Class DeveloperIdentityService

java.lang.Object
net.solarnetwork.node.setup.developer.DeveloperIdentityService
All Implemented Interfaces:
net.solarnetwork.node.service.IdentityService

public class DeveloperIdentityService extends Object implements net.solarnetwork.node.service.IdentityService
Implementation of IdentityService for development and testing purposes.

The configurable properties of this class are:

nodeId
The node ID to use. Defaults to -11.
hostName
The host name to use. Defaults to localhost.
port
The default port to use. Defaults to 8080.
solarInUrlPrefix
The SolarIn URL prefix to ues. Defaults to /solarin.
Version:
2.0
Author:
matt
  • Constructor Details

    • DeveloperIdentityService

      public DeveloperIdentityService()
  • Method Details

    • getNodeId

      public Long getNodeId()
      Specified by:
      getNodeId in interface net.solarnetwork.node.service.IdentityService
    • getNodePrincipal

      public Principal getNodePrincipal()
      Specified by:
      getNodePrincipal in interface net.solarnetwork.node.service.IdentityService
    • getSolarNetHostName

      public String getSolarNetHostName()
      Specified by:
      getSolarNetHostName in interface net.solarnetwork.node.service.IdentityService
    • getSolarNetHostPort

      public Integer getSolarNetHostPort()
      Specified by:
      getSolarNetHostPort in interface net.solarnetwork.node.service.IdentityService
    • getSolarNetSolarInUrlPrefix

      public String getSolarNetSolarInUrlPrefix()
      Specified by:
      getSolarNetSolarInUrlPrefix in interface net.solarnetwork.node.service.IdentityService
    • getSolarInBaseUrl

      public String getSolarInBaseUrl()
      Specified by:
      getSolarInBaseUrl in interface net.solarnetwork.node.service.IdentityService
    • getSolarInMqttUrl

      public String getSolarInMqttUrl()
      Specified by:
      getSolarInMqttUrl in interface net.solarnetwork.node.service.IdentityService
    • setNodeId

      public void setNodeId(Long nodeId)
    • setHostName

      public void setHostName(String hostName)
    • setPort

      public void setPort(int port)
    • setSolarInUrlPrefix

      public void setSolarInUrlPrefix(String solarInUrlPrefix)
    • setMqttPort

      public void setMqttPort(int mqttPort)
      Set the MQTT port to use.
      Parameters:
      mqttPort - the port to use