public interface SystemAdmin
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | clearStream(StreamSpec streamSpec)Clear the entire stream described by the spec. | 
| default boolean | createStream(StreamSpec streamSpec)Create a stream described by the spec. | 
| default void | deleteMessages(java.util.Map<SystemStreamPartition,java.lang.String> offsets)Delete records up to (and including) the provided ssp offsets for all system stream partitions specified in the map | 
| default java.util.Set<SystemStream> | getAllSystemStreams()Fetch the set of all available streams | 
| 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. | 
| default java.util.Map<SystemStreamPartition,SystemStreamMetadata.SystemStreamPartitionMetadata> | getSSPMetadata(java.util.Set<SystemStreamPartition> ssps)Fetch metadata from a system for a set of SSPs. | 
| 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. | 
| default java.util.Map<java.lang.String,SystemStreamMetadata> | getSystemStreamPartitionCounts(java.util.Set<java.lang.String> streamNames,
                              long cacheTTL)Get partitions counts only. | 
| default boolean | isStopped()To give the status of current systemAdmin | 
| java.lang.Integer | offsetComparator(java.lang.String offset1,
                java.lang.String offset2)Compare the two offsets. | 
| default java.lang.String | resolveStartpointToOffset(SystemStreamPartition systemStreamPartition,
                         Startpoint startpoint)Resolves the startpoint to a system specific offset. | 
| default void | start() | 
| default void | stop() | 
| default void | validateStream(StreamSpec streamSpec)Validates the stream described by the streamSpec on the system. | 
default void start()
default void stop()
default boolean isStopped()
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.default java.util.Map<SystemStreamPartition,SystemStreamMetadata.SystemStreamPartitionMetadata> getSSPMetadata(java.util.Set<SystemStreamPartition> ssps)
getSystemStreamMetadata(java.util.Set<java.lang.String>).ssps - SSPs for which to get metadatassps for which metadata could be foundjava.lang.RuntimeException - if there was an error fetching metadatajava.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.default boolean clearStream(StreamSpec streamSpec)
streamSpec - The spec for the physical stream on the system.true if the stream was successfully cleared.
         false if clearing stream failed.default void deleteMessages(java.util.Map<SystemStreamPartition,java.lang.String> offsets)
offsets - a map from system stream partition to offsetdefault java.util.Map<java.lang.String,SystemStreamMetadata> getSystemStreamPartitionCounts(java.util.Set<java.lang.String> streamNames, long cacheTTL)
streamNames - set of streams to query.cacheTTL - cacheTTL to use if caching the values.default java.util.Set<SystemStream> getAllSystemStreams()
default java.lang.String resolveStartpointToOffset(SystemStreamPartition systemStreamPartition, Startpoint startpoint)
startpoint - represents the startpoint.systemStreamPartition - represents the system stream partition.