|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsophware.home.io.MemoryHomeStorage
public class MemoryHomeStorage
The MemoryHomeStorage is a non-persistent implementation
of the HomeStorage interface.
| Constructor Summary | |
|---|---|
MemoryHomeStorage()
|
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object dev)
Add a Object to this container |
void |
close()
stops this data store |
boolean |
contains(java.lang.Object obj)
Checks to see if Object is in home storage. |
void |
flush()
flush this data store |
java.lang.Object |
get(java.lang.Class c,
java.lang.String name)
Get a named instance of the class |
HomeDevice |
get(DeviceAddress addr)
Get a HomeDevice associated with an address |
java.util.Enumeration<java.lang.Object> |
getAll()
Get all Objects. |
java.util.Enumeration<java.lang.Object> |
getAll(java.lang.Class c)
Get all HomeDevices. |
void |
open()
Initializes this data store |
void |
remove(java.lang.Object dev)
Remove a BinaryObject from this container |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryHomeStorage()
| Method Detail |
|---|
public void open()
throws java.io.IOException,
java.lang.ClassNotFoundException
open in interface HomeStoragejava.io.IOException
java.lang.ClassNotFoundExceptionpublic java.util.Enumeration<java.lang.Object> getAll(java.lang.Class c)
HomeDevices.
getAll in interface HomeStoragec - the class of the objects to be retrieved
HomeDevices in the containerpublic boolean contains(java.lang.Object obj)
Object is in home storage.
contains in interface HomeStorageobj - the object.
public java.util.Enumeration<java.lang.Object> getAll()
Objects.
getAll in interface HomeStorageBinaryObjects in the containerpublic HomeDevice get(DeviceAddress addr)
HomeDevice associated with an address
get in interface HomeStorageaddr - the DeviceAddress
HomeDevice or null if no device found
public java.lang.Object get(java.lang.Class c,
java.lang.String name)
get in interface HomeStoragec - the classname - the name
Object or null if no object foundpublic void add(java.lang.Object dev)
Object to this container
add in interface HomeStoragedev - the device to be addedpublic void remove(java.lang.Object dev)
BinaryObject from this container
remove in interface HomeStoragedev - the device to be removed
public void flush()
throws java.io.IOException
flush in interface HomeStoragejava.io.IOException
public void close()
throws java.io.IOException
close in interface HomeStoragejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||