DESY ACOP Beans Home

com.cosylab.application.state.impl
Class CDBStateStorage

java.lang.Object
  extended by com.cosylab.application.state.impl.DefaultStateStorage
      extended by com.cosylab.application.state.impl.XMLStateStorage
          extended by com.cosylab.application.state.impl.CDBStateStorage
All Implemented Interfaces:
StateStorage

public class CDBStateStorage
extends XMLStateStorage

This class is an implementation of the StateStorage that uses the CDB server to store the array of the State objects.

Author:
dvitas

Field Summary
 
Fields inherited from class com.cosylab.application.state.impl.DefaultStateStorage
delegate, states
 
Constructor Summary
CDBStateStorage()
           
CDBStateStorage(StateStorage other)
          DOCUMENT ME!
 
Method Summary
 void load(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources!
 void store(java.lang.String filePath, java.lang.String applicationName)
          DOCUMENT ME!
 
Methods inherited from class com.cosylab.application.state.impl.XMLStateStorage
add, addAll, contains, equals, getStates, hashCode, iterator, load, loadStates, remove, store, storeStates, toString
 
Methods inherited from class com.cosylab.application.state.impl.DefaultStateStorage
getInputStream, getOutputStream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CDBStateStorage

public CDBStateStorage()

CDBStateStorage

public CDBStateStorage(StateStorage other)
DOCUMENT ME!

Parameters:
other -
Method Detail

load

public void load(java.lang.String filePath,
                 java.lang.String applicationName)
          throws java.io.IOException
Description copied from interface: StateStorage
DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources!

Specified by:
load in interface StateStorage
Overrides:
load in class XMLStateStorage
Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

store

public void store(java.lang.String filePath,
                  java.lang.String applicationName)
           throws java.io.IOException
Description copied from class: DefaultStateStorage
DOCUMENT ME!

Specified by:
store in interface StateStorage
Overrides:
store in class XMLStateStorage
Parameters:
filePath - DOCUMENT ME!
applicationName - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!


Copyright © 2010. All Rights Reserved.