java.lang.Object
me.ahoo.cosid.internal.RuntimePlan
A
RuntimeSpec checked as a whole before anything starts (07-runtime-and-spring.md §1): every problem is
reported at once, and the codecs are built. Only the stores the enabled generators and the started machines use are
opened, and only the machines an enabled time-based generator chooses are started (api-freeze.md §2.2).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA generator to create.static final recordA machine to start. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringderiveOwnerKey(Optional<String> configured, HostResolver host, OptionalInt port) Derives the owner key (07-runtime-and-spring.md §1.1): the configured key, elsehost:port, elsehost:pid.The generators in name order.machines()The machines to start, in start order: the default machine, then the named ones in name order.static RuntimePlanof(RuntimeSpec spec, RuntimeOptions options, StoreProviders providers) Checksspecand builds its codecs.storeOptions(String store) The options of a store to open, keyed as its provider declares them (StoreOptions).stores()The stores to open, in name order.
-
Method Details
-
generators
The generators in name order.- Returns:
- the generators
-
stores
The stores to open, in name order.- Returns:
- the store names
-
machines
The machines to start, in start order: the default machine, then the named ones in name order.- Returns:
- the machines
-
storeOptions
The options of a store to open, keyed as its provider declares them (StoreOptions).- Parameters:
store- the store name, one ofstores()- Returns:
- the options
-
of
Checksspecand builds its codecs.- Parameters:
spec- the specoptions- the optionsproviders- the store providers- Returns:
- the plan
- Throws:
CosIdException- listing every problem of the spec
-
deriveOwnerKey
public static String deriveOwnerKey(Optional<String> configured, HostResolver host, OptionalInt port) Derives the owner key (07-runtime-and-spring.md §1.1): the configured key, elsehost:port, elsehost:pid.- Parameters:
configured- the configured owner keyhost- the host resolverport- the port- Returns:
- the owner key
-