コード例 #1
0
 public ObservedClusterMembers(LogProvider logProvider, Cluster cluster, Heartbeat heartbeat, ClusterMemberEvents events, InstanceId me)
 {
     this._me  = me;
     this._log = logProvider.getLog(this.GetType());
     cluster.AddClusterListener(new HAMClusterListener(this));
     heartbeat.AddHeartbeatListener(new HAMHeartbeatListener(this));
     events.AddClusterMemberListener(new HAMClusterMemberListener(this));
 }
コード例 #2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: private java.util.concurrent.atomic.AtomicReference<ClusterConfiguration> clusterStateListener(final java.net.URI uri, final Cluster cluster)
        private AtomicReference <ClusterConfiguration> ClusterStateListener(URI uri, Cluster cluster)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final java.util.concurrent.atomic.AtomicReference<ClusterConfiguration> config = new java.util.concurrent.atomic.AtomicReference<>();
            AtomicReference <ClusterConfiguration> config = new AtomicReference <ClusterConfiguration>();

            cluster.AddClusterListener(new ClusterListenerAnonymousInnerClass(this, uri, cluster, config));
            return(config);
        }
コード例 #3
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: private void clusterStateListener(final java.net.URI uri, final Cluster cluster)
        private void ClusterStateListener(URI uri, Cluster cluster)
        {
            cluster.AddClusterListener(new ClusterListenerAnonymousInnerClass(this, uri, cluster));
        }