Skip to content

Commit

Permalink
copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Mar 3, 2024
1 parent 0c6a2b3 commit a073856
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce.apollo.context;

import com.salesforce.apollo.cryptography.Digest;
Expand All @@ -13,6 +19,16 @@
import java.util.function.Predicate;
import java.util.stream.Stream;

/**
* Provides a Context for Membership and is uniquely identified by a Digest. Members may be either active or offline.
* The Context maintains a number of Rings (can be zero) that the Context provides for Firefly type consistent hash ring
* ordering operators. Each ring has a unique hash of each member, and thus each ring has a different ring order of the
* same membership set. Hashes for DynamicContext level operators include the ID of the ring. Hashes computed and cached
* for each member per ring include the ID of the enclosing DynamicContext.
*
* @param <T>
* @author hal.hildebrand
*/
public interface Context<T extends Member> {

static List<Member> uniqueSuccessors(Context<Member> context, Digest digest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
import static com.salesforce.apollo.context.Context.minMajority;

/**
* Provides a DynamicContext for Membership and is uniquely identified by a Digest. Members may be either active or
* offline. The DynamicContext maintains a number of Rings (may be zero) that the DynamicContext provides for Firefly
* type consistent hash ring ordering operators. Each ring has a unique hash of each individual member, and thus each
* ring has a different ring order of the same membership set. Hashes for DynamicContext level operators include the ID
* of the ring. Hashes computed for each member, per ring include the ID of the enclosing DynamicContext.
* Provides a dynamic Context for Membership. Members can be active or inactive. Context membership is dynamic and
* members can be added or removed at any time.
*
* @author hal.hildebrand
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, salesforce.com, inc.
* Copyright (c) 2024, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
Expand All @@ -19,7 +19,7 @@
import static com.salesforce.apollo.context.Context.minMajority;

/**
* Static DynamicContext implementation
* Static Context implementation
*
* @author hal.hildebrand
*/
Expand Down

0 comments on commit a073856

Please sign in to comment.