Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor DistributedGroup to separate all related interfaces and impl…
…ementations into subpackages.
- Loading branch information
Showing
94 changed files
with
2,335 additions
and
5,752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
524 changes: 57 additions & 467 deletions
524
group/src/main/java/io/atomix/group/DistributedGroup.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Copyright 2015 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.atomix.group; | ||
|
||
import io.atomix.catalyst.transport.Address; | ||
import io.atomix.group.messaging.MessageClient; | ||
import io.atomix.group.task.TaskClient; | ||
|
||
/** | ||
* A {@link DistributedGroup} member representing a member of the group controlled by a local | ||
* or remote process. | ||
* | ||
* @author <a href="http://github.com/kuujo>Jordan Halterman</a> | ||
*/ | ||
public interface Member { | ||
|
||
/** | ||
* Returns the member ID. | ||
* <p> | ||
* The member ID is guaranteed to be unique across the cluster. Depending on how the member was | ||
* constructed, it may be a user-provided identifier or an automatically generated {@link java.util.UUID}. | ||
* | ||
* @return The member ID. | ||
*/ | ||
String id(); | ||
|
||
/** | ||
* Returns the member address. | ||
* | ||
* @return The member address. | ||
*/ | ||
Address address(); | ||
|
||
/** | ||
* Returns the member properties. | ||
* | ||
* @return The member properties. | ||
*/ | ||
PropertiesClient properties(); | ||
|
||
/** | ||
* Returns the member message service. | ||
* | ||
* @return The member message service. | ||
*/ | ||
MessageClient messages(); | ||
|
||
/** | ||
* Returns the member task service. | ||
* | ||
* @return The member task service. | ||
*/ | ||
TaskClient tasks(); | ||
|
||
} |
Oops, something went wrong.