public interface SystemAdmin
| Modifier and Type | Method and Description |
|---|---|
void |
createChangelogStream(java.lang.String streamName,
int numOfPartitions)
Deprecated.
since 0.12.1, use
createStream(StreamSpec) |
void |
createCoordinatorStream(java.lang.String streamName)
Deprecated.
since 0.12.1, use
createStream(StreamSpec) |
default boolean |
createStream(StreamSpec streamSpec)
Create a stream described by the spec.
|
java.util.Map<SystemStreamPartition,java.lang.String> |
getOffsetsAfter(java.util.Map<SystemStreamPartition,java.lang.String> offsets)
Fetches the offsets for the messages immediately after the supplied offsets
for a group of SystemStreamPartitions.
|
java.util.Map<java.lang.String,SystemStreamMetadata> |
getSystemStreamMetadata(java.util.Set<java.lang.String> streamNames)
Fetch metadata from a system for a set of streams.
|
java.lang.Integer |
offsetComparator(java.lang.String offset1,
java.lang.String offset2)
Compare the two offsets.
|
void |
validateChangelogStream(java.lang.String streamName,
int numOfPartitions)
Deprecated.
since 0.12.1, use
validateStream(StreamSpec) |
default void |
validateStream(StreamSpec streamSpec)
Validates the stream described by the streamSpec on the system.
|
java.util.Map<SystemStreamPartition,java.lang.String> getOffsetsAfter(java.util.Map<SystemStreamPartition,java.lang.String> offsets)
offsets - Map from SystemStreamPartition to current offsets.java.util.Map<java.lang.String,SystemStreamMetadata> getSystemStreamMetadata(java.util.Set<java.lang.String> streamNames)
streamNames - The streams to to fetch metadata for.void createChangelogStream(java.lang.String streamName,
int numOfPartitions)
createStream(StreamSpec)streamName - The name of the stream to be created in the underlying streamnumOfPartitions - The number of partitions in the changelog streamvoid validateChangelogStream(java.lang.String streamName,
int numOfPartitions)
validateStream(StreamSpec)streamName - The name of the stream to be created in the underlying streamnumOfPartitions - The number of partitions in the changelog streamvoid createCoordinatorStream(java.lang.String streamName)
createStream(StreamSpec)streamName - The name of the coordinator stream to create.java.lang.Integer offsetComparator(java.lang.String offset1,
java.lang.String offset2)
offset1 - First offset for comparison.offset2 - Second offset for comparison.default boolean createStream(StreamSpec streamSpec)
streamSpec - The spec, or blueprint from which the physical stream will be created on the system.true if the stream was actually created and not pre-existing.
false if the stream was pre-existing.
A RuntimeException will be thrown if creation fails.default void validateStream(StreamSpec streamSpec) throws StreamValidationException
StreamValidationException should be thrown for any validation error.streamSpec - The spec, or blueprint for the physical stream on the system.StreamValidationException - if validation fails.