mirrormap
Interface IMirrorMapConnectionListener


public interface IMirrorMapConnectionListener

Receives notifications about the connection status of a local and remote MirrorMap instances.

Local connection events signal when local mirror maps are connected or disconnected from the server. The remote connection events signal when peer mirror maps connect or disconnect from the server.

Knowing about peer mirror map connect/disconnects is useful if one of the peers is actually sourcing the data for the map; in situations where it knows there are no further peers of the map it can stop feeding the map with data from external systems, say.

Author:
Ramon Servadei

Method Summary
 void localConnected(String mirrorMapName)
          Received when a local MirrorMap is connected to its server.
 void localDisconnected(String mirrorMapName)
          Received when a MirrorMap is disconnected from its server.
 void peerConnected(String mirrorMapName)
          Received when any MirrorMap connects to the server.
 void peerDisconnected(String mirrorMapName)
          Received when any MirrorMap disconnects from the server.
 

Method Detail

localConnected

void localConnected(String mirrorMapName)
Received when a local MirrorMap is connected to its server. The instance will receive remote changes.

Parameters:
mirrorMapName - the name of the mirror map that has connected

localDisconnected

void localDisconnected(String mirrorMapName)
Received when a MirrorMap is disconnected from its server. The instance will no longer be receiving remote changes.

Parameters:
mirrorMapName - the name of the mirror map that was disconnected

peerConnected

void peerConnected(String mirrorMapName)
Received when any MirrorMap connects to the server. This is triggered by remote peers as well as the local instance connecting.

Parameters:
mirrorMapName - the name of the mirror map that has connected

peerDisconnected

void peerDisconnected(String mirrorMapName)
Received when any MirrorMap disconnects from the server. This is only triggered by remote peer disconnects. Disconnecting the local instance will not trigger this.

Parameters:
mirrorMapName - the name of the mirror map that has disconnected


Copyright © 2010. All Rights Reserved.