public class LogStore extends Object implements Store
OutriggerServerImpl
Modifier and Type | Field and Description |
---|---|
private BackEnd |
be |
private LogOutputFile |
log |
private static Logger |
logger
Logger for logging persistent store related information
|
private int |
maxOps |
private String |
path |
Constructor and Description |
---|
LogStore(Configuration config)
Create a new
LogStore . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the store, release VM resources (stop independent
threads, close files, etc.) but do not destroy any persistent
state.
|
void |
destroy()
Destroy everything.
|
LogOps |
setupStore(Recover space)
Setup store, recover previous state if any.
|
private LogOutputFile log
private final String path
private BackEnd be
private int maxOps
private static final Logger logger
public LogStore(Configuration config) throws ConfigurationException
LogStore
.config
- the directory to use for persistence.ConfigurationException
public LogOps setupStore(Recover space)
setupStore
in interface Store
space
- object used for recovery of previous statepublic void destroy() throws IOException
destroy
in interface Store
IOException
public void close() throws IOException
Store
OutriggerServerImpl
constructor.close
in interface Store
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.