Package org.distributeme.core.listener
Class UDPReregistrationListener
java.lang.Object
org.distributeme.core.listener.UDPReregistrationListener
- All Implemented Interfaces:
ServerLifecycleListener
This listener activates a UDP socket and listens for the incoming packets. If the packet contains the register command,
it triggers a reregistration.
- Since:
- 22.02.15 17:51
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled immediately after start and registration.voidCalled immediately before service stops, in the shutdown hook.
-
Field Details
-
CMD_REGISTER
Cmd string for registration.- See Also:
-
-
Constructor Details
-
UDPReregistrationListener
public UDPReregistrationListener()
-
-
Method Details
-
afterStart
public void afterStart()Called immediately after start and registration.- Specified by:
afterStartin interfaceServerLifecycleListener
-
beforeShutdown
public void beforeShutdown()Called immediately before service stops, in the shutdown hook.- Specified by:
beforeShutdownin interfaceServerLifecycleListener
-