public class MicroMemory extends BasicMemory
Modifier and Type | Field and Description |
---|---|
static java.io.File |
storageDir |
static java.lang.String |
storageFileName |
Constructor and Description |
---|
MicroMemory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkExists() |
java.io.DataOutputStream |
createFile(java.io.File fileName) |
static void |
reset() |
void |
restore()
This implementation does not support persistence.
|
void |
restore(java.lang.String database,
boolean isSchema)
This implementation does not support persistence.
|
java.util.List<Relationship> |
restoreRelationship(java.io.File file,
Network longTermMemory,
java.io.DataInputStream inputStream) |
java.util.List<Vertex> |
restoreVertex(java.io.File file,
java.io.DataInputStream inputStream) |
void |
saveRelationship(Relationship relationship,
java.io.DataOutputStream stream) |
void |
saveVertex(Vertex vertex,
java.io.DataOutputStream stream) |
void |
shutdown()
Shutdown the memory.
|
abort, addActiveMemory, addListener, awake, cacheSize, clearProperties, createMemory, createMemory, createMemoryFromTemplate, createMemoryFromTemplate, deleteMemory, destroyMemory, destroyMemory, fastRestore, find, findInstances, findInstances, findReferences, findReferencesBy, freeMemory, getActiveMemory, getBot, getListeners, getLongTermMemory, getMemoryName, getProperties, getProperty, getShortTermMemory, importMemory, initialize, initMemory, loadProperties, newMemory, pool, removeListener, removeProperty, save, setActiveMemory, setBot, setLongTermMemory, setProperties, setProperty, setShortTermMemory, switchMemory, switchMemory, toString
public static java.io.File storageDir
public static java.lang.String storageFileName
public static void reset()
public static boolean checkExists()
public void shutdown() throws MemoryStorageException
BasicMemory
shutdown
in interface Memory
shutdown
in class BasicMemory
MemoryStorageException
public void restore() throws MemoryStorageException
BasicMemory
restore
in interface Memory
restore
in class BasicMemory
MemoryStorageException
public void restore(java.lang.String database, boolean isSchema) throws MemoryStorageException
BasicMemory
restore
in interface Memory
restore
in class BasicMemory
MemoryStorageException
public java.util.List<Relationship> restoreRelationship(java.io.File file, Network longTermMemory, java.io.DataInputStream inputStream)
public java.util.List<Vertex> restoreVertex(java.io.File file, java.io.DataInputStream inputStream)
public void saveVertex(Vertex vertex, java.io.DataOutputStream stream)
public void saveRelationship(Relationship relationship, java.io.DataOutputStream stream)
public java.io.DataOutputStream createFile(java.io.File fileName)