This commit is contained in:
crusader 2018-05-10 19:41:20 +09:00
parent 54053757a3
commit a9a1850a75
2 changed files with 4 additions and 4 deletions

View File

@ -226,7 +226,7 @@ public class CentralNoAuthProbeService implements NoAuthProbeService {
noAuthProbe.setConnectAddress(connectAddress); noAuthProbe.setConnectAddress(connectAddress);
noAuthProbe = this.noAuthProbeDAO.save(noAuthProbe); noAuthProbe = this.noAuthProbeDAO.save(noAuthProbe);
messagePublisher.publishToDomainMembers(noAuthProbe.getDomain().getId(), "NoAuthProbeService.onConnect", tempKey, connectAddress); messagePublisher.publishToDomainMembers(noAuthProbe.getDomain().getId(), "NoAuthProbeService.onConnect", noAuthProbe);
} }
public void onDisconnect(String tempKey) throws OverflowException { public void onDisconnect(String tempKey) throws OverflowException {
@ -235,7 +235,7 @@ public class CentralNoAuthProbeService implements NoAuthProbeService {
noAuthProbe.setConnectAddress(null); noAuthProbe.setConnectAddress(null);
noAuthProbe = this.noAuthProbeDAO.save(noAuthProbe); noAuthProbe = this.noAuthProbeDAO.save(noAuthProbe);
messagePublisher.publishToDomainMembers(noAuthProbe.getDomain().getId(), "NoAuthProbeService.onDisconnect", tempKey); messagePublisher.publishToDomainMembers(noAuthProbe.getDomain().getId(), "NoAuthProbeService.onDisconnect", noAuthProbe);
} }
} }

View File

@ -81,7 +81,7 @@ public class CentralProbeService implements ProbeService {
probe.setConnectAddress(connectAddress); probe.setConnectAddress(connectAddress);
probe = this.probeDAO.save(probe); probe = this.probeDAO.save(probe);
messagePublisher.publishToDomainMembers(probe.getDomain().getId(), "ProbeService.onConnect", probeKey, connectAddress); messagePublisher.publishToDomainMembers(probe.getDomain().getId(), "ProbeService.onConnect", probe);
} }
public void onDisconnect(String probeKey) throws OverflowException { public void onDisconnect(String probeKey) throws OverflowException {
@ -90,6 +90,6 @@ public class CentralProbeService implements ProbeService {
probe.setConnectAddress(null); probe.setConnectAddress(null);
probe = this.probeDAO.save(probe); probe = this.probeDAO.save(probe);
messagePublisher.publishToDomainMembers(probe.getDomain().getId(), "ProbeService.onDisconnect", probeKey); messagePublisher.publishToDomainMembers(probe.getDomain().getId(), "ProbeService.onDisconnect", probe);
} }
} }