Package net.solarnetwork.ocpp.service
Interface ChargePointRouter
- All Known Implementing Classes:
ChargePointBrokerTracker
public interface ChargePointRouter
API for a service that can find a broker for a Charge Point based on Charge
Point IDs.
- Version:
- 1.0
- Author:
- matt
-
Method Summary
Modifier and TypeMethodDescriptionGet a complete set of Charge Point identifiers that are available, or otherwise know to all available brokers.brokerForChargePoint(ChargePointIdentity identity) Get aChargePointBrokerfor a specific Charge Point ID, if available.booleanisChargePointAvailable(ChargePointIdentity identity) Test if a Charge Point is available, or otherwise known to any available broker.
-
Method Details
-
availableChargePointsIds
Set<ChargePointIdentity> availableChargePointsIds()Get a complete set of Charge Point identifiers that are available, or otherwise know to all available brokers.- Returns:
- the set of available charge point identifiers, never null
-
isChargePointAvailable
Test if a Charge Point is available, or otherwise known to any available broker.- Parameters:
identity- the Charge Point identity to query- Returns:
- true if this manager is aware of the given
clientIdand should be able to send messages to it
-
brokerForChargePoint
Get aChargePointBrokerfor a specific Charge Point ID, if available.- Parameters:
identity- the ID of the Charge Point- Returns:
- the broker, or null if not available
-