Class COM.ibm.jaws.services.filepobc.FilepoBCImpl
All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.jaws.services.filepobc.FilepoBCImpl
java.lang.Object
|
+----COM.ibm.jaws.motk.BaseAO
|
+----COM.ibm.jaws.services.filepobc.FilepoBCImpl
- public class FilepoBCImpl
- extends BaseAO
- implements FilepoBC
FilepoBCImpl is an implementation of the FilepoBC interface.
-
delimiter
-
This is the delimiter that this BC puts between its
Identifier key and the rest of Identifier.
-
dependentContext
-
This FilepoBCImpl's dependent context for itself.
-
homogeneousInterfaceName
- When this FilepoBCImpl instance is homogeneous, this
is its interface name.
-
interfaceKeyPrefix
-
-
key
-
-
rootBase
-
This BC instance's root BC.
-
self
-
This BC gives out references to itself.
-
FilepoBCImpl()
-
Simple constructor.
-
FilepoBCImpl(String, long, String, String, long)
-
Parameterized constructor.
-
FilepoBCImpl(String, String)
-
Parameterized constructor for homogeneous case.
-
createFromCopy(String, Manageable, String)
-
Implementation of the BaseCollection.createFromCopy() method.
-
createFromCopyWithKey(String, Manageable, String)
-
The createFromCopy() implemetation has already generated a key.
-
createFromData(String, InputEDStream, String)
- Implementation of the
BaseCollection.createFromData(String,Stream,String) method.
-
createFromDataWithKey(String, InputEDStream, String)
- This is the real implementation of createFromXXX().
-
createFromDefault(String, Object, String)
-
This BC does not implement the following method.
-
dispatch(String, CommandOn)
-
-
dispatchAll(String, String, CommandOn)
-
-
evaluate(String, String)
-
Implementation of Collection evaluateQuery method.
-
exists(String)
-
Implementation of BaseCollectionDel.exists() method.
-
externalizeToStream(OutputEDStream)
-
Use this method to export the Manageable object's
essential data (ED) to a "sink" represented by an
OutputEDStream.
-
finalize()
- Code to perform when this object is garbage collected.
-
getCacheManager()
-
-
getCleanInterval()
-
-
getDependentContext()
-
-
getKey()
-
-
getManagedClassName()
-
-
getManagedSuffix()
-
Implementation of FilepoBC.getInterfaceName() method.
-
getTransientIdentifier()
-
-
internalizeFromStream(InputEDStream)
-
Implementation of the Streamable interface.
-
kill(String)
-
-
reattachManagedDel(ManagedDel, String)
-
-
release()
-
-
remove()
- This BC is not self-persistent, so it writes out none of its own state.
-
resolve(String)
-
-
setCacheManager(CacheManager)
-
Allows AA to set and get the CacheManager for this BC.
-
setCleanInterval(long)
- Allows AA to set and get the clean interval dynamically.
-
setDependentContext(KeyedCollection)
-
Implementation of the Dependent interface.
-
setManagedClassName(String)
-
Implementation of FilepoBC.set/getManagedClassName() methods.
-
setSelf(Object)
-
Implementation of the IdentityDelegator interface.
-
sync()
-
Implementation of the Syncable.sync() method.
-
syncManaged(String)
- Implementation of the BaseCollectionDel.syncManaged() method.
-
uncached(CacheEntry)
- This BC's CacheManager calls this to notify the BC
that one of its Cached objects has been uncached.
key
protected String key
homogeneousInterfaceName
protected String homogeneousInterfaceName
- When this FilepoBCImpl instance is homogeneous, this
is its interface name.
When this FilepoBCImol instance is heterogeneous, this is null.
self
protected FilepoBC self
- This BC gives out references to itself.
This is a Managed interface that allows an efficient
implementation of isIdentical(), getConstantRandomId()
and getIdentifier() that it supplies for its Managed objects.
FilepoBCImpl does not call these Managed methods on itself.
rootBase
protected BaseCollection rootBase
- This BC instance's root BC.
delimiter
protected String delimiter
- This is the delimiter that this BC puts between its
Identifier key and the rest of Identifier.
The default is "/".
interfaceKeyPrefix
protected String interfaceKeyPrefix
dependentContext
protected KeyedCollection dependentContext
- This FilepoBCImpl's dependent context for itself.
FilepoBCImpl
public FilepoBCImpl()
- Simple constructor.
FilepoBCImpl
public FilepoBCImpl(String initialDirectoryPath,
long initialCleanInterval,
String initialManagedSuffix,
String initialCachedSuffix,
long initialManagedKeyCount)
- Parameterized constructor.
FilepoBCImpl
public FilepoBCImpl(String directoryPath,
String managedClassName)
- Parameterized constructor for homogeneous case.
getKey
public String getKey()
setManagedClassName
public void setManagedClassName(String managedClassName)
- Implementation of FilepoBC.set/getManagedClassName() methods.
getManagedClassName
public String getManagedClassName()
setDependentContext
public void setDependentContext(KeyedCollection yourDependentContext)
- Implementation of the Dependent interface.
- Overrides:
- setDependentContext in class BaseAO
getDependentContext
public KeyedCollection getDependentContext()
setSelf
public void setSelf(Object yourSelf)
- Implementation of the IdentityDelegator interface.
This BC hands out references to itself.
- Overrides:
- setSelf in class BaseAO
setCacheManager
public void setCacheManager(CacheManager yourCacheManager)
- Allows AA to set and get the CacheManager for this BC.
Because it is part of the EssentialData, it can also be set
at creation time.
getCacheManager
public CacheManager getCacheManager()
setCleanInterval
public void setCleanInterval(long newCleanInterval)
- Allows AA to set and get the clean interval dynamically.
Because it is part of the EssentialData, it can also be set
at creation time.
getCleanInterval
public long getCleanInterval()
internalizeFromStream
public void internalizeFromStream(InputEDStream stream) throws EDStreamFormatError
- Implementation of the Streamable interface.
- Overrides:
- internalizeFromStream in class BaseAO
externalizeToStream
public void externalizeToStream(OutputEDStream stream) throws EDStreamFormatError
- Use this method to export the Manageable object's
essential data (ED) to a "sink" represented by an
OutputEDStream.
- Overrides:
- externalizeToStream in class BaseAO
release
public void release()
- Overrides:
- release in class BaseAO
finalize
public void finalize()
- Code to perform when this object is garbage collected.
- Overrides:
- finalize in class Object
remove
public void remove()
- This BC is not self-persistent, so it writes out none of its own state.
This BC does provide persistence to its Managed objects, so remove
all Managed objects.
- Overrides:
- remove in class BaseAO
createFromCopy
public Managed createFromCopy(String identifierKey,
Manageable manageable,
String interfaceKey) throws InvalidKeyError
- Implementation of the BaseCollection.createFromCopy() method.
The Manageable parameter provides the initial data for the
Managed object. If the key is null, one is generated by via the
managedKeyCount. The interface for the returned Managed object is
obtained from the dependentContext using the interfaceKey.
createFromData
public Managed createFromData(String identifierKey,
InputEDStream initialData,
String interfaceKey) throws InvalidKeyError, EDStreamFormatError
- Implementation of the
BaseCollection.createFromData(String,Stream,String) method.
The initialData parameter provides the initial data for the
Managed object. If the key is null, one is generated by via the
managedKeyCount. The interface for the returned Managed object is
obtained from the dependentContext using the interfaceKey.
createFromCopyWithKey
protected Managed createFromCopyWithKey(String key,
Manageable manageable,
String interfaceKey) throws InvalidKeyError
- The createFromCopy() implemetation has already generated a key.
This just converts the Manageable into a stream and calls
createFromData().
createFromDataWithKey
public Managed createFromDataWithKey(String key,
InputEDStream initialData,
String interfaceKey) throws InvalidKeyError, EDStreamFormatError
- This is the real implementation of createFromXXX().
The key parameter is the key for the new Managed object.
The initialData parameter includes the initial EssentialData
of the new Managed object.
The interface name for the created Managed object is obtained
from the dependentContext using the interfaceKey.
createFromDefault
public Managed createFromDefault(String identifierKey,
Object creator,
String interfaceKey)
- This BC does not implement the following method.
resolve
public Object resolve(String keyPath) throws InvalidKeyError
kill
public void kill(String key) throws InvalidReferenceException
exists
public boolean exists(String key)
- Implementation of BaseCollectionDel.exists() method.
getManagedSuffix
public String getManagedSuffix()
- Implementation of FilepoBC.getInterfaceName() method.
reattachManagedDel
public CacheEntry reattachManagedDel(ManagedDel managed,
String key)
uncached
public void uncached(CacheEntry uncachedEntry)
- This BC's CacheManager calls this to notify the BC
that one of its Cached objects has been uncached.
evaluate
public Iterator evaluate(String queryArguments,
String queryKey) throws InvalidQueryError
- Implementation of Collection evaluateQuery method.
This only handles two simple query strings:
- evaluate(null, "MOFW::objects") which returns all of the objects
in this FilepoBCImpl instance.
- evaluate(null, "MOFW::keys") which returns the keys of all of
the objects in this FilepoBCImpl instance.
A more advanced version would use query technology
developed by STL and Rochester.
dispatch
public CommandOn dispatch(String key,
CommandOn command)
dispatchAll
public Iterator dispatchAll(String queryArguments,
String queryKey,
CommandOn command)
sync
public void sync()
- Implementation of the Syncable.sync() method.
syncManaged
public void syncManaged(String key)
- Implementation of the BaseCollectionDel.syncManaged() method.
getTransientIdentifier
public Object getTransientIdentifier()
All Packages Class Hierarchy This Package Previous Next Index