Server for smart can
server.host = localhost
# 服务端口
server.port = 1080
# 日志表名称
sys.log.tablename = SmartCanServerLog
# sql数据库配置
db.sql.driver = com.mysql.jdbc.Driver
db.sql.url = jdbc:mysql://localhost:3306/sso_iv
db.sql.username = root
db.sql.pwd = baby..520587
# 数据库心跳间隔 毫秒
db.sql.tickInterval = 5000
# 采集频率
sys.can.collectFrequency = 1000
# 发送频率
sys.can.sendFrequency = 1000
# 插件地址
plugin.path = plugin
public class MessageReceivedListener implements OnMessageReceivedListener {
@Override
public void OnMessageReceived(Protocol protocol) {
System.out.println("this from plugin2 message received");
}
}
public class SmartFaultListener implements OnSmartFaultListener {
@Override
public void onFault(SmartFaultRequestMessage smartFaultRequestMessage) {
System.out.println("this from plugin2 smart fault");
}
}
public class MessageDecodeListener implements OnMessageDecodeListener {
@Override
public void onLogin(LoginRequestMessage loginRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onLogout(LogoutRequestMessage logoutRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onHeartBeat(HeartbeatMessage heartbeatMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartCan(SmartCanRequestBody smartCanRequestBody, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartRecogrize(SmartRecognizeRequestMessage smartRecognizeRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartStrategy(SmartStrategyRequestMessage smartStrategyRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartControl(SmartControlRequestMessage smartControlRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartControlFeed(SmartCtrlFeedBackRequestMessage smartCtrlFeedBackRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartFault(SmartFaultRequestMessage smartFaultRequestMessage, SocketChannel socketChannel) throws IOException, InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException {
}
@Override
public void onSmartFormATeam(SmartFromATeamRequestMessage smartFromATeamRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartFTeam(SmartFTeamSuccessRequestMessage smartFTeamSuccessRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartDissolveTeam(SmartDissolveRequestMessage smartDissolveRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartTeam(SmartTeamRequestMessage smartTeamRequestMessage, SocketChannel socketChannel) throws IOException {
}
@Override
public void onSmartPlatonning(SmartPlatonningRequestMessage smartPlatonningRequestMessage, SocketChannel socketChannel) throws IOException {
}
}