org.openrdf.sesame.admin
Class StdOutAdminListener

java.lang.Object
  extended byorg.openrdf.sesame.admin.StdOutAdminListener
All Implemented Interfaces:
AdminListener

public class StdOutAdminListener
extends Object
implements AdminListener

A simple AdminListener implementation that reports all messages to System.out. Useful for debugging purposes.

Version:
$Revision: 1.4.4.2 $
Author:
Jeen Broekstra

Constructor Summary
StdOutAdminListener()
           
 
Method Summary
 void error(String msg, int lineNo, int colNo, Statement statement)
          An error message with optionally line and column number and the statement to indicate the source of the error.
 void notification(String msg, int lineNo, int colNo, Statement statement)
          A notification message (not an error) with optionally line and column number and the statement to indicate the source of the notification.
 void status(String msg, int lineNo, int colNo)
          A status message with optional line and column number to indicate progress.
 void transactionEnd()
          Indicates the end of a transaction.
 void transactionStart()
          Indicates the start of a transaction.
 void warning(String msg, int lineNo, int colNo, Statement statement)
          A warning message with optionally line and column number and the statement to indicate the source of the warning.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdOutAdminListener

public StdOutAdminListener()
Method Detail

transactionStart

public void transactionStart()
Description copied from interface: AdminListener
Indicates the start of a transaction.

Specified by:
transactionStart in interface AdminListener

transactionEnd

public void transactionEnd()
Description copied from interface: AdminListener
Indicates the end of a transaction.

Specified by:
transactionEnd in interface AdminListener

status

public void status(String msg,
                   int lineNo,
                   int colNo)
Description copied from interface: AdminListener
A status message with optional line and column number to indicate progress.

Specified by:
status in interface AdminListener
Parameters:
msg - The status message.
lineNo - A line number, or -1 if unavailable or irrelevant.
colNo - A column number, or -1 if unavailable or irrelevant.

notification

public void notification(String msg,
                         int lineNo,
                         int colNo,
                         Statement statement)
Description copied from interface: AdminListener
A notification message (not an error) with optionally line and column number and the statement to indicate the source of the notification.

Specified by:
notification in interface AdminListener
Parameters:
msg - The notification message.
lineNo - A line number, or -1 if unavailable or irrelevant.
colNo - A column number, or -1 if unavailable or irrelevant.
statement - The statement, or null if unavailable or irrelevant.

warning

public void warning(String msg,
                    int lineNo,
                    int colNo,
                    Statement statement)
Description copied from interface: AdminListener
A warning message with optionally line and column number and the statement to indicate the source of the warning.

Specified by:
warning in interface AdminListener
Parameters:
msg - The warning message.
lineNo - A line number, or -1 if unavailable or irrelevant.
colNo - A column number, or -1 if unavailable or irrelevant.
statement - The statement, or null if unavailable or irrelevant.

error

public void error(String msg,
                  int lineNo,
                  int colNo,
                  Statement statement)
Description copied from interface: AdminListener
An error message with optionally line and column number and the statement to indicate the source of the error.

Specified by:
error in interface AdminListener
Parameters:
msg - The error message.
lineNo - A line number, or -1 if unavailable or irrelevant.
colNo - A column number, or -1 if unavailable or irrelevant.
statement - The statement, or null if unavailable or irrelevant.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.