net.sourceforge.esw.service.log
Class LogDatumNodeAdapter

java.lang.Object
  |
  +--net.sourceforge.esw.service.log.LogDatumNodeAdapter
All Implemented Interfaces:
ILogConstants, ILogDatum, java.io.Serializable

public class LogDatumNodeAdapter
extends java.lang.Object
implements ILogDatum, ILogConstants

Adapts an INode into the ILogDatum interface

Uses the ILogConstants to get the data elements from the INode

See Also:
ILog, Serialized Form

Field Summary
protected  INode internalNode
           
 
Fields inherited from interface net.sourceforge.esw.service.log.ILogConstants
APP_ID, APP_ID_FIELD, CLASS_CONSTANT, CLASSES_CONSTANT, DATA_ID, DATA_ID_FIELD, DEFAULT_FILE_DIR, DESC_ID, DESC_ID_FIELD, ENTRY_CONSTANT, ENTRYS_CONSTANT, EXPRESSION_CONSTANT, FILENAME_CONSTANT, FILTER_CONSTANT, FILTER_LIST_CONSTANT, ID_ID, ID_ID_FIELD, LAST_FILTER_NUM_CONSTANT, RANK_ID, RANK_ID_FIELD, REFERENCE_LOG_DRIVER, REFERENCE_LOG_PASSWORD, REFERENCE_LOG_URL, REFERENCE_LOG_USER, SERVICE_ID, SERVICE_ID_CONSTANT, SERVICE_ID_FIELD, TARGET_CONSTANT, TARGETS_CONSTANT, WHEN_ID, WHEN_ID_FIELD, WHERE_ID, WHERE_ID_FIELD
 
Constructor Summary
LogDatumNodeAdapter()
           
LogDatumNodeAdapter(INode nodeReference)
          Constructor
 
Method Summary
 java.lang.String getApplicationID()
          Gets the App id for this datum
 INode getData()
          Gets the data for this ILogDatum
 long getDatumID()
          Returns a unique id for this LogDatum Instance.
 java.lang.String getDescription()
          String description of this datum...
 int getRank()
          Gets the rank of this ILogDatum info to be used to consider priority amongst more than one ILogDatum
 java.lang.String getServiceID()
          The service id of the log datum
 java.util.Date getWhen()
          Get when this ILogDatum info was considered to have occured at for logging purposes
 java.lang.String getWhere()
          Get where this ILogDatum info was considered to have occured for logging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internalNode

protected INode internalNode
Constructor Detail

LogDatumNodeAdapter

public LogDatumNodeAdapter(INode nodeReference)
Constructor
Parameters:
net.sourceforge.esw.graph.INode - nodeReference

LogDatumNodeAdapter

public LogDatumNodeAdapter()
Method Detail

getWhen

public java.util.Date getWhen()
Get when this ILogDatum info was considered to have occured at for logging purposes
Specified by:
getWhen in interface ILogDatum
Returns:
java.util.Date when the datum occured

getWhere

public java.lang.String getWhere()
Get where this ILogDatum info was considered to have occured for logging purposes
Specified by:
getWhere in interface ILogDatum
Returns:
java.lang.String where the datum occured

getRank

public int getRank()
Gets the rank of this ILogDatum info to be used to consider priority amongst more than one ILogDatum
Specified by:
getRank in interface ILogDatum
Returns:
int the priority of this datum

getDescription

public java.lang.String getDescription()
String description of this datum... in some cases, might be the data...
Specified by:
getDescription in interface ILogDatum
Returns:
java.lang.String datum desc

getData

public INode getData()
Gets the data for this ILogDatum
Specified by:
getData in interface ILogDatum
Returns:
net.sourceforge.esw.graph.INode log data

getServiceID

public java.lang.String getServiceID()
The service id of the log datum
Returns:
java.lang.String ID of Service that logged event

getApplicationID

public java.lang.String getApplicationID()
Gets the App id for this datum
Specified by:
getApplicationID in interface ILogDatum
Returns:
java.lang.String

getDatumID

public long getDatumID()
Returns a unique id for this LogDatum Instance. Unique across all VMs
Specified by:
getDatumID in interface ILogDatum
Returns:
the id of this datum


Copyright 2002 Free Software Foundation. All Rights Reserved.