com.sun.jini.outrigger.snaplogstore
Class LogStore

java.lang.Object
  extended by com.sun.jini.outrigger.snaplogstore.LogStore
All Implemented Interfaces:
Store

public class LogStore
extends Object
implements Store

Author:
Sun Microsystems, Inc.
See Also:
OutriggerServerImpl

Field Summary
private  BackEnd be
           
private  LogOutputFile log
           
private static Logger logger
          Logger for logging persistent store related information
private  int maxOps
           
private  String path
           
 
Constructor Summary
LogStore(Configuration config)
          Create a new LogStore.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private LogOutputFile log

path

private final String path

be

private BackEnd be

maxOps

private int maxOps

logger

private static final Logger logger
Logger for logging persistent store related information

Constructor Detail

LogStore

public LogStore(Configuration config)
         throws ConfigurationException
Create a new LogStore.

Parameters:
config - the directory to use for persistence.
Throws:
ConfigurationException
Method Detail

setupStore

public LogOps setupStore(Recover space)
Setup store, recover previous state if any.

Specified by:
setupStore in interface Store
Parameters:
space - object used for recovery of previous state
Returns:
object used to persist state

destroy

public void destroy()
             throws IOException
Destroy everything.

Specified by:
destroy in interface Store
Throws:
IOException

close

public void close()
           throws IOException
Description copied from interface: Store
Close the store, release VM resources (stop independent threads, close files, etc.) but do not destroy any persistent state. This method is used when there is a failure in OutriggerServerImpl constructor.

Specified by:
close in interface Store
Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.