|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap com.endeca.logging.LogEntry
public class LogEntry
This class contains the logging information sent from the application to the Log Server. Each LogEntry stores data about the current query in key/value pairs. Examples of the kind of data that can be recorded in a LogEntry include the session ID, the number of records in the current navigation state, and the active sort key.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
LogEntry()
Construct an empty LogEntry. |
|
LogEntry(int sz)
Construct an empty LogEntry with an initial capacity of 'sz'. |
|
LogEntry(LogEntry cp)
Create a copy of a LogEntry. |
|
LogEntry(Map keyValuePairs)
Construct a LogEntry with the given key-value pairs. |
Method Summary | |
---|---|
Set |
entrySet()
Implemented for the Map interface. |
boolean |
equals(Object other)
|
static LogEntry |
fromString(String str)
Parse a LogEntry from a String. |
double |
getDouble(String key)
Get the integer value associated with the given key. |
int |
getInt(String key)
Get the integer value associated with the given key. |
List |
getList(String key)
Get the given list value associated with a given key. |
String |
getString(String key)
Get the value associated with the given key. |
int |
hashCode()
|
Object |
put(Object key,
Object value)
Implemented for the Map interface. |
void |
putDouble(String key,
double value)
Set the given key to the given double value. |
void |
putInt(String key,
int value)
Set the given key to the given integer value. |
void |
putList(String key,
List value)
Set the given key to the list value. |
void |
putString(String key,
String value)
Set the given key to the given value. |
void |
readExternal(ObjectInput in)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, containsKey, containsValue, get, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LogEntry()
public LogEntry(int sz)
public LogEntry(Map keyValuePairs)
public LogEntry(LogEntry cp)
Method Detail |
---|
public void putString(String key, String value)
public String getString(String key)
public void putInt(String key, int value)
public int getInt(String key) throws NumberFormatException, NullPointerException
NumberFormatException
- if the value is not numeric.
NullPointerException
- if no value is associated with the
given key.public void putDouble(String key, double value)
public double getDouble(String key) throws NumberFormatException, NullPointerException
NumberFormatException
- if the value is not numeric.
NullPointerException
- if no value is associated with the
given key.public void putList(String key, List value)
public List getList(String key)
java.util.List
object after
calling getList will not be reflected in the LogEntry's value.
In order to change the value of the list contents, setList() must
be used.
public Set entrySet()
entrySet
in interface Map
entrySet
in class AbstractMap
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
public String toString()
toString
in class AbstractMap
public static LogEntry fromString(String str) throws LogException, IOException
LogException
IOException
public boolean equals(Object other)
equals
in interface Map
equals
in class AbstractMap
public int hashCode()
hashCode
in interface Map
hashCode
in class AbstractMap
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |