コード例 #1
0
ファイル: Replication.java プロジェクト: narayana1208/TomP2P
 private void notifyMeResponsible(final Number160 locationKey, PeerAddress newPeer) {
   for (ResponsibilityListener responsibilityListener : listeners) {
     responsibilityListener.meResponsible(locationKey, newPeer);
   }
 }
コード例 #2
0
ファイル: Replication.java プロジェクト: narayana1208/TomP2P
 /**
  * Notify if I'm responsible and something needs to change, i.e., to make sure that there are
  * enough replicas.
  *
  * @param locationKey The location key.
  */
 private void notifyMeResponsible(final Number160 locationKey) {
   for (ResponsibilityListener responsibilityListener : listeners) {
     responsibilityListener.meResponsible(locationKey);
   }
 }