PravegaStreamManager

zio.pravega.admin.PravegaStreamManager
See thePravegaStreamManager companion object

PravegaStreamManager is a wrapper around the StreamManager Java API.

Basically it's allow to create, drop, seal, truncate, etc. streams.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def createScope(scope: String): Task[Boolean]
def createStream(scope: String, streamName: String, config: StreamConfiguration): Task[Boolean]

Create a stream with the given name and config. Note: This method is idempotent, may block.

Create a stream with the given name and config. Note: This method is idempotent, may block.

Will return false if the stream already exists, hence true if it was effectively created.

Attributes

def deleteScope(scope: String): Task[Boolean]

Drop a scope with the given name. This method may block.

Drop a scope with the given name. This method may block.

Will return false if the scope does not exist, hence true if it was effectively dropped.

Attributes

def deleteStream(scope: String, streamName: String): Task[Boolean]

Drop a stream with the given name. This method may block.

Drop a stream with the given name. This method may block.

Attributes

def listScopes: ZStream[Scope, Throwable, String]

List all the scopes in the Pravega cluster. This method may block.

List all the scopes in the Pravega cluster. This method may block.

Attributes

def listStreams(scope: String): ZStream[Any, Throwable, Stream]
def sealStream(scope: String, streamName: String): Task[Boolean]

Seal a stream with the given name. This method may block.

Seal a stream with the given name. This method may block.

Will return false if the stream does not exist, hence true if it was

Attributes

def truncateStream(scope: String, streamName: String, streamCut: StreamCut): Task[Boolean]

Truncate a stream with the given name. This method may block.

Truncate a stream with the given name. This method may block.

Attributes