Class BpCoreImpl
java.lang.Object
io.openems.edge.common.component.AbstractOpenemsComponent
io.openems.edge.kaco.blueplanet.hybrid10.core.BpCoreImpl
- All Implemented Interfaces:
OpenemsComponent
,BpCore
,org.osgi.service.event.EventHandler
public class BpCoreImpl
extends AbstractOpenemsComponent
implements BpCore, OpenemsComponent, org.osgi.service.event.EventHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.kaco.blueplanet.hybrid10.core.BpCore
BpCore.ChannelId
Nested classes/interfaces inherited from interface io.openems.edge.common.component.OpenemsComponent
OpenemsComponent.ChannelId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Handles @Deactivate of implementations.static InetAddress
getMatchingLocalInetAddress
(InetAddress inetAddress) Gets a local IP address which is able to access the given remote IP.Gets theStableVersion
.void
handleEvent
(org.osgi.service.event.Event event) boolean
Is the default user logged in?.Methods inherited from class io.openems.edge.common.component.AbstractOpenemsComponent
_channel, activate, activate, addChannel, addChannels, addChannels, alias, channels, getComponentContext, id, isEnabled, logDebug, logError, logInfo, logWarn, modified, removeChannel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.kaco.blueplanet.hybrid10.core.BpCore
_setSerialnumber, _setUserAccessDenied, _setVersionCom, getSerialnumberChannel, getUserAccessDenied, getUserAccessDeniedChannel, getVersionCom, getVersionComChannel
Methods inherited from interface io.openems.edge.common.component.OpenemsComponent
_channel, _getChannelAs, alias, channel, channel, channels, debugLog, getComponentContext, getState, getStateChannel, hasFaults, id, isEnabled, serviceFactoryPid, servicePid
-
Constructor Details
-
BpCoreImpl
public BpCoreImpl()
-
-
Method Details
-
deactivate
protected void deactivate()Description copied from class:AbstractOpenemsComponent
Handles @Deactivate of implementations. Prints log output.- Overrides:
deactivate
in classAbstractOpenemsComponent
-
getBpData
Description copied from interface:BpCore
-
getStableVersion
Description copied from interface:BpCore
Gets theStableVersion
.- Specified by:
getStableVersion
in interfaceBpCore
- Returns:
StableVersion
-
isDefaultUser
public boolean isDefaultUser()Description copied from interface:BpCore
Is the default user logged in?.- Specified by:
isDefaultUser
in interfaceBpCore
- Returns:
- true if the default password for user was not changed
-
getMatchingLocalInetAddress
Gets a local IP address which is able to access the given remote IP.- Parameters:
inetAddress
- the remote IP- Returns:
- a local IP address or null if no match was found
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event) - Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-