public abstract class JournalEntry extends Object
At this level, a JournalEntry is a method name, a method adapter, and a map of arguments.
NOTE: when finished with the JournalEntry, call close(). This will release any temporary files associated with the entry.
| Modifier | Constructor and Description |
|---|---|
protected |
JournalEntry(String methodName,
JournalEntryContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(String key,
boolean value) |
void |
addArgument(String key,
InputStream stream)
If handed an InputStream as an argument, copy it to a temp file and store
that File in the arguments map instead.
|
void |
addArgument(String key,
int value) |
void |
addArgument(String key,
Object value) |
void |
close()
This should be called when usage of the object is complete, to clean up
any temporary files that were created for the journal entry to use.
|
Map<String,Object> |
getArgumentsMap() |
boolean |
getBooleanArgument(String name) |
JournalEntryContext |
getContext() |
Date |
getDateArgument(String name) |
int |
getIntegerArgument(String name) |
ManagementMethod |
getMethod() |
String |
getMethodName() |
InputStream |
getStreamArgument(String name)
If they ask for an InputStream argument, get the File from the arguments
map and create an InputStream on that file.
|
String |
getStringArgument(String name) |
String[] |
getStringArrayArgument(String name) |
void |
setRecoveryValue(String attribute,
String value) |
void |
setRecoveryValues(String attribute,
String[] values) |
protected JournalEntry(String methodName, JournalEntryContext context)
public JournalEntryContext getContext()
public ManagementMethod getMethod()
public String getMethodName()
public void addArgument(String key, boolean value)
public void addArgument(String key, int value)
public void addArgument(String key, InputStream stream) throws JournalException
JournalExceptionpublic int getIntegerArgument(String name)
public boolean getBooleanArgument(String name)
public InputStream getStreamArgument(String name) throws JournalException
JournalExceptionpublic void close()
Copyright © 2013 DuraSpace. All Rights Reserved.