Package blobit.server
Class EmbeddedBookie
- java.lang.Object
-
- blobit.server.EmbeddedBookie
-
- All Implemented Interfaces:
AutoCloseable
public class EmbeddedBookie extends Object implements AutoCloseable
Utility for starting embedded Apache BookKeeper Server (Bookie)- Author:
- enrico.olivelli
-
-
Constructor Summary
Constructors Constructor Description EmbeddedBookie(Path baseDirectory, ServerConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidpersistLocalBookiePort(Path dataPath, int port)IntegerreadLocalBookiePort(Path dataPath)voidstart()
-
-
-
Constructor Detail
-
EmbeddedBookie
public EmbeddedBookie(Path baseDirectory, ServerConfiguration configuration)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
readLocalBookiePort
public Integer readLocalBookiePort(Path dataPath) throws IOException
- Throws:
IOException
-
persistLocalBookiePort
public void persistLocalBookiePort(Path dataPath, int port) throws IOException
- Throws:
IOException
-
-