|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.wrmf.logs.LogRecord
a record that is appended to the log.
This captures an event that a service
intends to report to the log.
The target object is the primary business object for this event.
additional name-value pairs for this event can be provided in the properties
field
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
eventName
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String |
message
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String |
principalName
|
private Hashtable |
properties
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private String |
serviceName
|
private String |
targetClass
|
private String |
targetName
|
private String |
targetURL
|
private String |
targetVersion
|
private Timestamp |
timestamp
|
Constructor Summary | |
LogRecord()
Supported API: false |
|
LogRecord(String principal,
String service,
String event,
String target)
Supported API: false |
|
LogRecord(String principal,
String service,
String event,
String target,
String targetURL,
String message)
creates a log record with current timestamp and specified parameters Supported API: false |
Method Summary | |
private void |
eventNameValidate(String a_EventName)
|
String |
getEventName()
Gets the value of the attribute: eventName. |
String |
getMessage()
Gets the value of the attribute: message. |
String |
getPrincipalName()
Gets the value of the attribute: principalName. |
Hashtable |
getProperties()
Gets the value of the attribute: properties. |
String |
getServiceName()
Gets the value of the attribute: serviceName. |
String |
getTargetClass()
Gets the value of the attribute: targetClass. |
String |
getTargetName()
Gets the value of the attribute: targetName. |
String |
getTargetURL()
Gets the value of the attribute: targetURL. |
String |
getTargetVersion()
Gets the value of the attribute: targetVersion. |
Timestamp |
getTimestamp()
Gets the value of the attribute: timestamp. |
private void |
messageValidate(String a_Message)
|
private void |
principalNameValidate(String a_PrincipalName)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(LogRecord thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
serviceNameValidate(String a_ServiceName)
|
void |
setEventName(String a_EventName)
Sets the value of the attribute: eventName. |
void |
setMessage(String a_Message)
Sets the value of the attribute: message. |
void |
setPrincipalName(String a_PrincipalName)
Sets the value of the attribute: principalName. |
void |
setProperties(Hashtable a_Properties)
Sets the value of the attribute: properties. |
void |
setProperty(String name,
String value)
adds the property name-value pair as an additional property for this log record Supported API: false |
void |
setServiceName(String a_ServiceName)
Sets the value of the attribute: serviceName. |
void |
setTargetClass(String a_TargetClass)
Sets the value of the attribute: targetClass. |
void |
setTargetName(String a_TargetName)
Sets the value of the attribute: targetName. |
void |
setTargetURL(String a_TargetURL)
Sets the value of the attribute: targetURL. |
void |
setTargetVersion(String a_TargetVersion)
Sets the value of the attribute: targetVersion. |
void |
setTimestamp(Timestamp a_Timestamp)
Sets the value of the attribute: timestamp. |
private void |
targetClassValidate(String a_TargetClass)
|
private void |
targetNameValidate(String a_TargetName)
|
private void |
targetURLValidate(String a_TargetURL)
|
private void |
targetVersionValidate(String a_TargetVersion)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Timestamp timestamp
private String principalName
private String serviceName
private String eventName
private String targetName
private String targetClass
private String targetVersion
private String targetURL
private String message
private Hashtable properties
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public LogRecord(String principal, String service, String event, String target, String targetURL, String message)
principal
- service
- event
- target
- targetURL
- message
- public LogRecord(String principal, String service, String event, String target)
principal
- service
- event
- target
- public LogRecord()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(LogRecord thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Timestamp getTimestamp()
public void setTimestamp(Timestamp a_Timestamp) throws WTPropertyVetoException
a_Timestamp
-
WTPropertyVetoException
public String getPrincipalName()
public void setPrincipalName(String a_PrincipalName) throws WTPropertyVetoException
a_PrincipalName
-
WTPropertyVetoException
private void principalNameValidate(String a_PrincipalName) throws WTPropertyVetoException
a_PrincipalName
-
WTPropertyVetoException
public String getServiceName()
public void setServiceName(String a_ServiceName) throws WTPropertyVetoException
a_ServiceName
-
WTPropertyVetoException
private void serviceNameValidate(String a_ServiceName) throws WTPropertyVetoException
a_ServiceName
-
WTPropertyVetoException
public String getEventName()
public void setEventName(String a_EventName) throws WTPropertyVetoException
a_EventName
-
WTPropertyVetoException
private void eventNameValidate(String a_EventName) throws WTPropertyVetoException
a_EventName
-
WTPropertyVetoException
public String getTargetName()
public void setTargetName(String a_TargetName) throws WTPropertyVetoException
a_TargetName
-
WTPropertyVetoException
private void targetNameValidate(String a_TargetName) throws WTPropertyVetoException
a_TargetName
-
WTPropertyVetoException
public String getTargetClass()
public void setTargetClass(String a_TargetClass) throws WTPropertyVetoException
a_TargetClass
-
WTPropertyVetoException
private void targetClassValidate(String a_TargetClass) throws WTPropertyVetoException
a_TargetClass
-
WTPropertyVetoException
public String getTargetVersion()
public void setTargetVersion(String a_TargetVersion) throws WTPropertyVetoException
a_TargetVersion
-
WTPropertyVetoException
private void targetVersionValidate(String a_TargetVersion) throws WTPropertyVetoException
a_TargetVersion
-
WTPropertyVetoException
public String getTargetURL()
public void setTargetURL(String a_TargetURL) throws WTPropertyVetoException
a_TargetURL
-
WTPropertyVetoException
private void targetURLValidate(String a_TargetURL) throws WTPropertyVetoException
a_TargetURL
-
WTPropertyVetoException
public String getMessage()
public void setMessage(String a_Message) throws WTPropertyVetoException
a_Message
-
WTPropertyVetoException
private void messageValidate(String a_Message) throws WTPropertyVetoException
a_Message
-
WTPropertyVetoException
public Hashtable getProperties()
public void setProperties(Hashtable a_Properties) throws WTPropertyVetoException
a_Properties
-
WTPropertyVetoException
public void setProperty(String name, String value)
name
- value
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |