de.bea.domingo.proxy
Class LogProxy

java.lang.Object
  extended by de.bea.domingo.monitor.AbstractMonitorEnabled
      extended by de.bea.domingo.proxy.BaseProxy
          extended by de.bea.domingo.proxy.LogProxy
All Implemented Interfaces:
DBase, DLog, MonitorEnabled, java.io.Serializable

public final class LogProxy
extends BaseProxy
implements DLog

A notes Log.

Author:
Kurt Riede
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.bea.domingo.proxy.BaseProxy
BaseProxy.DocumentCollectionIterator
 
Field Summary
 
Fields inherited from class de.bea.domingo.proxy.BaseProxy
DATETIME_STRING_LENGTH, EMPTY_STRING, MAX_DATETIME_LENGTH, NUM_DATETIME_VALUES, RESOURCES
 
Method Summary
(package private) static DLog getInstance(NotesProxyFactory theFactory, DSession session, lotus.domino.Log theLog, DNotesMonitor monitor)
          Creates an notes log.
 void logAction(java.lang.String text)
          Records an action in a log.
 void logError(int code, java.lang.String text)
          Records an error in a log.
 void openNotesLog(java.lang.String server, java.lang.String database)
          Opens a notes database as the log target.
 java.lang.String toString()
          Returns a short description of an instance.
 
Methods inherited from class de.bea.domingo.proxy.BaseProxy
checkSession, clearNotesObject, convertCalendarsToNotesDateTime, convertListToVector, convertNotesDateTimesToCalendar, convertVectorToList, createCalendar, createDateRange, createDateTime, decrementDateTimeCounter, finalize, getCountDateTime, getDSession, getFactory, getNotesObject, getParent, incrementDateTimeCounter, newException, newException, newException, newRuntimeException, newRuntimeException, newRuntimeException, recycleDateTimeList, refereceHashCode, toStringGeneric, toStringIntern
 
Methods inherited from class de.bea.domingo.monitor.AbstractMonitorEnabled
getMonitor, setMonitor
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.bea.domingo.DBase
equals, hashCode
 

Method Detail

getInstance

static DLog getInstance(NotesProxyFactory theFactory,
                        DSession session,
                        lotus.domino.Log theLog,
                        DNotesMonitor monitor)
Creates an notes log.

Parameters:
theFactory - the controlling factory
session - the Notes Session
theLog - the Notes Log
monitor - the monitor
Returns:
a log object

logAction

public void logAction(java.lang.String text)
Records an action in a log.

Specified by:
logAction in interface DLog
Parameters:
text - a description of the action, as you want it to appear in the log.
See Also:
DLog.logAction(java.lang.String)

logError

public void logError(int code,
                     java.lang.String text)
Records an error in a log.

Specified by:
logError in interface DLog
Parameters:
code - a number indicating which error occurred.
text - a description of the error that occurred, as you want it to appear in the log.
See Also:
DLog.logError(int, java.lang.String)

toString

public java.lang.String toString()
Description copied from interface: DBase
Returns a short description of an instance.

Specified by:
toString in interface DBase
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.
See Also:
Object.toString()

openNotesLog

public void openNotesLog(java.lang.String server,
                         java.lang.String database)
Opens a notes database as the log target.

Specified by:
openNotesLog in interface DLog
Parameters:
server - notes server name
database - notes database filename
See Also:
DLog.openNotesLog(java.lang.String, java.lang.String)


Domingo Java-API