public class NetworkGateway extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Host |
currentHost |
| Constructor and Description |
|---|
NetworkGateway() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrimaryEndpoint() |
Integer |
getPrimaryPort() |
String |
getSecondaryEndpoint() |
Integer |
getSecondaryPort() |
HashMap<Host,ArrayList<HostError>> |
getSimulatedHostErrors() |
int |
getTimeout() |
protected boolean |
isEnableLogging() |
byte[] |
send(IDeviceMessage message) |
void |
setEnableLogging(boolean enableLogging) |
void |
setGatewayEventHandler(IGatewayEventHandler eventHandler) |
void |
setPrimaryEndpoint(String primaryEndpoint) |
void |
setPrimaryPort(Integer primaryPort) |
void |
setSecondaryEndpoint(String secondaryEndpoint) |
void |
setSecondaryPort(Integer secondaryPort) |
void |
setSimulatedHostErrors(HashMap<Host,ArrayList<HostError>> simulatedHostErrors) |
void |
setTimeout(int timeout) |
void |
shutdownExecutorService() |
protected Host currentHost
public String getPrimaryEndpoint()
public void setPrimaryEndpoint(String primaryEndpoint)
public Integer getPrimaryPort()
public void setPrimaryPort(Integer primaryPort)
public String getSecondaryEndpoint()
public void setSecondaryEndpoint(String secondaryEndpoint)
public Integer getSecondaryPort()
public void setSecondaryPort(Integer secondaryPort)
public int getTimeout()
public void setTimeout(int timeout)
protected boolean isEnableLogging()
public void setEnableLogging(boolean enableLogging)
public void setGatewayEventHandler(IGatewayEventHandler eventHandler)
public void setSimulatedHostErrors(HashMap<Host,ArrayList<HostError>> simulatedHostErrors)
public byte[] send(IDeviceMessage message) throws GatewayTimeoutException, GatewayComsException
public void shutdownExecutorService()
Copyright © 2024. All rights reserved.