Interface SwitchConnectionHandler
- 
- All Known Subinterfaces:
- ConnectionManager
 - All Known Implementing Classes:
- ConnectionManagerImpl
 
 public interface SwitchConnectionHandlerHandler for a swictch connection.- Author:
- mirehak, michal.polkorab
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(InetAddress switchAddress)Invoked to determine if a switch connection should be accepted.voidonSwitchConnected(ConnectionAdapter connection)Invoked when a switch connects.
 
- 
- 
- 
Method Detail- 
onSwitchConnectedvoid onSwitchConnected(ConnectionAdapter connection) Invoked when a switch connects.- Parameters:
- connection- to switch proving message sending/receiving, connection management
 
 - 
acceptboolean accept(InetAddress switchAddress) Invoked to determine if a switch connection should be accepted.- Parameters:
- switchAddress- address of incoming connection (address + port)
- Returns:
- true, if connection from switch having given address shell be accepted; false otherwise
 
 
- 
 
-