anvil.server.file
Class PersistentFileNamespace

java.lang.Object
  |
  +--anvil.server.file.PersistentFileNamespace
All Implemented Interfaces:
Namespace, PersistentNamespace
Direct Known Subclasses:
FileCitizen, FileTribe

public class PersistentFileNamespace
extends java.lang.Object
implements PersistentNamespace

class PersistentFileNamespace


Field Summary
protected  boolean _copyonget
           
protected  boolean _copyonset
           
protected  java.io.File _file
           
protected  long _lastmodified
           
protected  boolean _loaded
           
protected  int _maxmodcount
           
protected  int _modcount
           
protected  java.lang.String _name
           
protected  Array _namespace
           
protected  Zone _zone
           
 
Constructor Summary
PersistentFileNamespace()
           
PersistentFileNamespace(Zone zone, java.lang.String name, java.io.File file, boolean copyonget, boolean copyonset, int maxmodcount)
           
 
Method Summary
 Any checkVariable(java.lang.String name)
           
 void commit()
           
 boolean deleteVariable(java.lang.String name)
           
 java.lang.String getName()
           
 Any getVariable(java.lang.String name)
           
 BindingIterator getVariables()
           
 void initialize(Zone zone, NamespacePreferences prefs)
           
 void remove()
           
 Any setVariable(java.lang.String name, Any value)
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_zone

protected Zone _zone

_file

protected java.io.File _file

_copyonget

protected boolean _copyonget

_copyonset

protected boolean _copyonset

_loaded

protected boolean _loaded

_modcount

protected int _modcount

_maxmodcount

protected int _maxmodcount

_lastmodified

protected long _lastmodified

_name

protected java.lang.String _name

_namespace

protected Array _namespace
Constructor Detail

PersistentFileNamespace

public PersistentFileNamespace()

PersistentFileNamespace

public PersistentFileNamespace(Zone zone,
                               java.lang.String name,
                               java.io.File file,
                               boolean copyonget,
                               boolean copyonset,
                               int maxmodcount)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface Namespace

initialize

public void initialize(Zone zone,
                       NamespacePreferences prefs)
Specified by:
initialize in interface PersistentNamespace

remove

public void remove()

commit

public void commit()
Specified by:
commit in interface PersistentNamespace

stop

public void stop()
Specified by:
stop in interface PersistentNamespace

getVariables

public BindingIterator getVariables()
Specified by:
getVariables in interface Namespace

getVariable

public Any getVariable(java.lang.String name)
Specified by:
getVariable in interface Namespace

setVariable

public Any setVariable(java.lang.String name,
                       Any value)
Specified by:
setVariable in interface Namespace

checkVariable

public Any checkVariable(java.lang.String name)
Specified by:
checkVariable in interface Namespace

deleteVariable

public boolean deleteVariable(java.lang.String name)
Specified by:
deleteVariable in interface Namespace