Interface SwitchConnectionHandler

All Known Subinterfaces:
ConnectionManager
All Known Implementing Classes:
ConnectionManagerImpl

public interface SwitchConnectionHandler
Handler for a swictch connection.
Author:
mirehak, michal.polkorab
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(InetAddress switchAddress)
    Invoked to determine if a switch connection should be accepted.
    void
    Invoked when a switch connects.
  • Method Details

    • onSwitchConnected

      void onSwitchConnected(ConnectionAdapter connection)
      Invoked when a switch connects.
      Parameters:
      connection - to switch proving message sending/receiving, connection management
    • accept

      boolean 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