Interface RemoteConnectorContext
-
- All Known Implementing Classes:
Rs232RemoteConnector,SocketBasedConnector,StreamRemoteConnector
public interface RemoteConnectorContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeState(AuthStatus desiredState)voidchangeState(RemoteConnectorState newState)voidclose()java.time.ClockgetClock()java.lang.StringgetConnectionName()java.util.concurrent.ScheduledExecutorServicegetScheduledExecutor()booleanisDeviceConnected()voidnotifyListeners(MenuCommand mc)voidperformConnection()MenuCommandreadCommandFromStream()voidsendAcknowledgement(AckStatus ackStatus)voidsendHeartbeat(int frequency, MenuHeartbeatCommand.HeartbeatMode mode)voidsendJoin()voidsendPairing()voidsetRemoteParty(RemoteInformation remote)
-
-
-
Method Detail
-
sendHeartbeat
void sendHeartbeat(int frequency, MenuHeartbeatCommand.HeartbeatMode mode)
-
sendJoin
void sendJoin() throws java.io.IOException- Throws:
java.io.IOException
-
sendAcknowledgement
void sendAcknowledgement(AckStatus ackStatus) throws java.io.IOException
- Throws:
java.io.IOException
-
sendPairing
void sendPairing() throws java.io.IOException- Throws:
java.io.IOException
-
readCommandFromStream
MenuCommand readCommandFromStream() throws java.io.IOException
- Throws:
java.io.IOException
-
isDeviceConnected
boolean isDeviceConnected()
-
performConnection
void performConnection() throws java.io.IOException- Throws:
java.io.IOException
-
changeState
void changeState(AuthStatus desiredState)
-
changeState
void changeState(RemoteConnectorState newState)
-
getScheduledExecutor
java.util.concurrent.ScheduledExecutorService getScheduledExecutor()
-
getClock
java.time.Clock getClock()
-
getConnectionName
java.lang.String getConnectionName()
-
setRemoteParty
void setRemoteParty(RemoteInformation remote)
-
notifyListeners
void notifyListeners(MenuCommand mc)
-
close
void close()
-
-