Rename akka to pekko in configuration (#63)

Resolves https://github.com/apache/incubator-pekko/issues/54
This commit is contained in:
Greg Methvin 2022-12-02 04:53:48 -08:00 committed by GitHub
parent 708da8caec
commit 3d93dbcb81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1047 changed files with 4472 additions and 4464 deletions

View file

@ -139,8 +139,8 @@ public class LambdaPersistencePluginDocTest {
public MyJournalSpecTest() {
super(
ConfigFactory.parseString(
"akka.persistence.journal.plugin = "
+ "\"akka.persistence.journal.leveldb-shared\""));
"pekko.persistence.journal.plugin = "
+ "\"pekko.persistence.journal.leveldb-shared\""));
}
@Override
@ -160,8 +160,8 @@ public class LambdaPersistencePluginDocTest {
public MySnapshotStoreTest() {
super(
ConfigFactory.parseString(
"akka.persistence.snapshot-store.plugin = "
+ "\"akka.persistence.snapshot-store.local\""));
"pekko.persistence.snapshot-store.plugin = "
+ "\"pekko.persistence.snapshot-store.local\""));
}
}
// #snapshot-store-tck-java
@ -180,13 +180,13 @@ public class LambdaPersistencePluginDocTest {
super(
ConfigFactory.parseString(
"persistence.journal.plugin = "
+ "\"akka.persistence.journal.leveldb-shared\""));
+ "\"pekko.persistence.journal.leveldb-shared\""));
Config config = system().settings().config();
storageLocations.add(
new File(config.getString("akka.persistence.journal.leveldb.dir")));
new File(config.getString("pekko.persistence.journal.leveldb.dir")));
storageLocations.add(
new File(config.getString("akka.persistence.snapshot-store.local.dir")));
new File(config.getString("pekko.persistence.snapshot-store.local.dir")));
}
@Override

View file

@ -30,13 +30,13 @@ public class PersistenceMultiDocTest {
// Absolute path to the journal plugin configuration entry in the `reference.conf`
@Override
public String journalPluginId() {
return "akka.persistence.chronicle.journal";
return "pekko.persistence.chronicle.journal";
}
// Absolute path to the snapshot store plugin configuration entry in the `reference.conf`
@Override
public String snapshotPluginId() {
return "akka.persistence.chronicle.snapshot-store";
return "pekko.persistence.chronicle.snapshot-store";
}
}
// #override-plugins

View file

@ -100,8 +100,8 @@ public class PersistenceQueryDocTest {
* You can use `NoOffset` to retrieve all events with a given tag or retrieve a subset of all
* events by specifying a `Sequence` `offset`. The `offset` corresponds to an ordered sequence
* number for the specific tag. Note that the corresponding offset of each event is provided in
* the [[akka.persistence.query.EventEnvelope]], which makes it possible to resume the stream at
* a later point from a given offset.
* the [[pekko.persistence.query.EventEnvelope]], which makes it possible to resume the stream
* at a later point from a given offset.
*
* <p>The `offset` is exclusive, i.e. the event with the exact same sequence number will not be
* included in the returned stream. This means that you can use the offset that is returned in
@ -207,7 +207,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// issue query to journal
Source<EventEnvelope, NotUsed> source =
@ -222,7 +222,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #all-persistence-ids-live
readJournal.persistenceIds();
@ -235,7 +235,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #all-persistence-ids-snap
readJournal.currentPersistenceIds();
@ -248,7 +248,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #events-by-persistent-id
readJournal.eventsByPersistenceId("user-us-1337", 0L, Long.MAX_VALUE);
@ -261,7 +261,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #events-by-tag
// assuming journal is able to work with numeric offsets we can:
@ -294,7 +294,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #advanced-journal-query-usage
@ -339,7 +339,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #projection-into-different-store-rs
final ReactiveStreamsCompatibleDBDriver driver = new ReactiveStreamsCompatibleDBDriver();
@ -371,7 +371,7 @@ public class PersistenceQueryDocTest {
final MyJavadslReadJournal readJournal =
PersistenceQuery.get(system)
.getReadJournalFor(
MyJavadslReadJournal.class, "akka.persistence.query.my-read-journal");
MyJavadslReadJournal.class, "pekko.persistence.query.my-read-journal");
// #projection-into-different-store-simple
final ExampleStore store = new ExampleStore();

View file

@ -28,10 +28,10 @@ public class PersistenceInitTest extends AbstractJavaTest {
public static final TestKitJunitResource testKit =
new TestKitJunitResource(
ConfigFactory.parseString(
"akka.persistence.journal.plugin = \"akka.persistence.journal.inmem\" \n"
+ "akka.persistence.journal.inmem.test-serialization = on \n"
+ "akka.persistence.snapshot-store.plugin = \"akka.persistence.snapshot-store.local\" \n"
+ "akka.persistence.snapshot-store.local.dir = \"target/snapshot-"
"pekko.persistence.journal.plugin = \"pekko.persistence.journal.inmem\" \n"
+ "pekko.persistence.journal.inmem.test-serialization = on \n"
+ "pekko.persistence.snapshot-store.plugin = \"pekko.persistence.snapshot-store.local\" \n"
+ "pekko.persistence.snapshot-store.local.dir = \"target/snapshot-"
+ UUID.randomUUID().toString()
+ "\" \n")
.withFallback(ConfigFactory.defaultApplication()));