use of org.opendaylight.controller.cluster.access.concepts.MemberName in project controller by opendaylight.
the class DistributedShardedDOMDataTree method createPrefixConfigShard.
private static void createPrefixConfigShard(final AbstractDataStore dataStore) {
Configuration configuration = dataStore.getActorContext().getConfiguration();
Collection<MemberName> memberNames = configuration.getUniqueMemberNamesForAllShards();
CreateShard createShardMessage = new CreateShard(new ModuleShardConfiguration(PrefixShards.QNAME.getNamespace(), "prefix-shard-configuration", ClusterUtils.PREFIX_CONFIG_SHARD_ID, ModuleShardStrategy.NAME, memberNames), Shard.builder(), dataStore.getActorContext().getDatastoreContext());
dataStore.getActorContext().getShardManager().tell(createShardMessage, noSender());
}
use of org.opendaylight.controller.cluster.access.concepts.MemberName in project controller by opendaylight.
the class ShardedDataTreeActor method memberExited.
private void memberExited(final MemberExited message) {
final MemberName memberName = memberToName(message.member());
LOG.info("{}: Received MemberExited: memberName: {}, address: {}", persistenceId(), memberName, message.member().address());
resolver.removePeerAddress(memberName);
}
use of org.opendaylight.controller.cluster.access.concepts.MemberName in project controller by opendaylight.
the class ShardedDataTreeActor method memberUnreachable.
private void memberUnreachable(final UnreachableMember message) {
final MemberName memberName = memberToName(message.member());
LOG.debug("Received UnreachableMember: memberName {}, address: {}", memberName, message.member().address());
resolver.removePeerAddress(memberName);
}
use of org.opendaylight.controller.cluster.access.concepts.MemberName in project controller by opendaylight.
the class ShardedDataTreeActor method memberRemoved.
private void memberRemoved(final MemberRemoved message) {
final MemberName memberName = memberToName(message.member());
LOG.info("{}: Received MemberRemoved: memberName: {}, address: {}", persistenceId(), memberName, message.member().address());
resolver.removePeerAddress(memberName);
}
use of org.opendaylight.controller.cluster.access.concepts.MemberName in project controller by opendaylight.
the class ShardedDataTreeActor method memberWeaklyUp.
private void memberWeaklyUp(final MemberWeaklyUp message) {
final MemberName memberName = memberToName(message.member());
LOG.info("{}: Received MemberWeaklyUp: memberName: {}, address: {}", persistenceId(), memberName, message.member().address());
resolver.addPeerAddress(memberName, message.member().address());
}
Aggregations