public class LocalCorfuClient extends Object implements CorfuClient
Node.NodeParams<T>, Node.NodeType
Constructor and Description |
---|
LocalCorfuClient(ClientParams params,
com.google.common.collect.ImmutableSortedSet<String> serverEndpoints) |
Modifier and Type | Method and Description |
---|---|
void |
connect()
|
<K,V> CorfuTable<K,V> |
createDefaultCorfuTable(String streamName)
Create a default CorfuTable object for data-path
verification in scenario tests
|
LocalCorfuClient |
deploy()
Connect corfu runtime to the server
|
void |
destroy()
Shutdown corfu runtime
|
Layout |
getLayout()
|
ManagementView |
getManagementView()
See
CorfuRuntime#getManagementView() |
ObjectsView |
getObjectsView()
See
CorfuRuntime#getObjectsView() |
CorfuRuntime |
getRuntime()
See
CorfuRuntime() |
Stress |
getStress() |
void |
invalidateLayout()
|
void |
kill()
Shutdown corfu runtime
|
void |
shutdown() |
void |
stop(Duration timeout)
Shutdown corfu runtime
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParams, systemDownHandler
public LocalCorfuClient(ClientParams params, com.google.common.collect.ImmutableSortedSet<String> serverEndpoints)
public LocalCorfuClient deploy()
public void stop(Duration timeout)
public <K,V> CorfuTable<K,V> createDefaultCorfuTable(String streamName)
CorfuClient
createDefaultCorfuTable
in interface CorfuClient
streamName
- stream name of the tablepublic void connect()
CorfuClient
connect
in interface CorfuClient
public CorfuRuntime getRuntime()
CorfuClient
CorfuRuntime()
getRuntime
in interface CorfuClient
public Layout getLayout()
CorfuClient
getLayout
in interface CorfuClient
public ObjectsView getObjectsView()
CorfuClient
CorfuRuntime#getObjectsView()
getObjectsView
in interface CorfuClient
public ManagementView getManagementView()
CorfuClient
CorfuRuntime#getManagementView()
getManagementView
in interface CorfuClient
public void invalidateLayout()
CorfuClient
invalidateLayout
in interface CorfuClient
public void shutdown()
shutdown
in interface CorfuClient
Copyright © 2019 CorfuDB. All rights reserved.