PravegaStreamManager

zio.pravega.admin.PravegaStreamManager
See thePravegaStreamManager companion trait

PravegaStreamManager is a wrapper around the StreamManager Java API.

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

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def createScope(scope: String): RIO[PravegaStreamManager, Boolean]

Create a scope with the given name.

Create a scope with the given name.

Returns true if the scope was created, false if it already exists.

Attributes

def createStream(scope: String, streamName: String, config: StreamConfiguration): RIO[PravegaStreamManager, Boolean]

Create a stream with the given name and config.

Create a stream with the given name and config.

Returns true if the stream was created, false if it already exists.

Attributes

def deleteScope(scope: String): RIO[PravegaStreamManager, Boolean]

Drop a scope with the given name.

Drop a scope with the given name.

Returns true if the scope was dropped, false if it does not exist.

Attributes

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

Drop a stream with the given name.

Drop a stream with the given name.

Returns true if the stream is deleted.

Attributes

def listScopes: ZStream[Scope & PravegaStreamManager, Throwable, String]

List all the scopes in the Pravega cluster.

List all the scopes in the Pravega cluster.

Attributes

def listStreams(scope: String): ZStream[PravegaStreamManager, Throwable, Stream]

List all the streams in the Pravega cluster given scope.

List all the streams in the Pravega cluster given scope.

Attributes

def live: ZLayer[Scope & ClientConfig, Throwable, PravegaStreamManager]

ZLayer to provide a PravegaStreamManager from a environment with a ClientConfig.

ZLayer to provide a PravegaStreamManager from a environment with a ClientConfig.

Attributes

def live(clientConfig: ClientConfig): ZLayer[Scope, Throwable, PravegaStreamManager]

ZLayer to provide a PravegaStreamManager from a ClientConfig.

ZLayer to provide a PravegaStreamManager from a ClientConfig.

Attributes

def sealStream(scope: String, streamName: String): RIO[PravegaStreamManager, Boolean]

Seal a stream with the given name.

Seal a stream with the given name.

Returns true if the stream is sealed.

Attributes

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

Truncate a stream with the given name.

Truncate a stream with the given name.

Returns true if the stream is truncated.

Attributes