ch.ethz.iks.slp.impl
Class StandalonePlatformAbstraction

java.lang.Object
  extended by ch.ethz.iks.slp.impl.StandalonePlatformAbstraction
All Implemented Interfaces:
PlatformAbstraction

public class StandalonePlatformAbstraction
extends Object
implements PlatformAbstraction

Platform abstraction for the standalone implementation.

Author:
Jan S. Rellermeyer, ETH Zurich

Constructor Summary
StandalonePlatformAbstraction()
           
 
Method Summary
 Filter createFilter(String filterString)
          Create an LDAP filter.
 boolean isDebugEnabled()
          Is debug enabled?
 boolean isErrorEnabled()
          Is error enabled?
 boolean isTraceEnabled()
          Is trace enabled?
 boolean isWarningEnabled()
          Is warning enabled?
 void logDebug(String message)
          Write a debug message to the log.
 void logDebug(String message, Throwable exception)
          Write a debug message to the log.
 void logError(String message)
          Write an error message to the log.
 void logError(String message, Throwable exception)
          Write an error message to the log.
 void logTrace(String message)
          Write a trace message to the log.
 void logTrace(String message, Throwable exception)
          Write a trace message to the log.
 void logWarning(String message)
          Write a warning message to the log.
 void logWarning(String message, Throwable exception)
          Write a warning message to the log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandalonePlatformAbstraction

public StandalonePlatformAbstraction()
Method Detail

createFilter

public Filter createFilter(String filterString)
                    throws IllegalArgumentException
Description copied from interface: PlatformAbstraction
Create an LDAP filter.

Specified by:
createFilter in interface PlatformAbstraction
Parameters:
filterString - the filter string.
Returns:
an LDAP filter object.
Throws:
IllegalArgumentException
See Also:
PlatformAbstraction.createFilter(java.lang.String)

isDebugEnabled

public boolean isDebugEnabled()
Description copied from interface: PlatformAbstraction
Is debug enabled?

Specified by:
isDebugEnabled in interface PlatformAbstraction
Returns:
true, if debug is enabled and a log implementation is available.
See Also:
PlatformAbstraction.isDebugEnabled()

isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: PlatformAbstraction
Is error enabled?

Specified by:
isErrorEnabled in interface PlatformAbstraction
Returns:
true if error is enabled and a log implementation is available.
See Also:
PlatformAbstraction.isErrorEnabled()

isTraceEnabled

public boolean isTraceEnabled()
Description copied from interface: PlatformAbstraction
Is trace enabled?

Specified by:
isTraceEnabled in interface PlatformAbstraction
Returns:
true if trace is enabled and a log implementation is available.
See Also:
PlatformAbstraction.isTraceEnabled()

isWarningEnabled

public boolean isWarningEnabled()
Description copied from interface: PlatformAbstraction
Is warning enabled?

Specified by:
isWarningEnabled in interface PlatformAbstraction
Returns:
true if warning is enabled and a log implementation is available.
See Also:
PlatformAbstraction.isWarningEnabled()

logDebug

public void logDebug(String message)
Description copied from interface: PlatformAbstraction
Write a debug message to the log.

Specified by:
logDebug in interface PlatformAbstraction
Parameters:
message - the message.
See Also:
PlatformAbstraction.logDebug(java.lang.String)

logDebug

public void logDebug(String message,
                     Throwable exception)
Description copied from interface: PlatformAbstraction
Write a debug message to the log.

Specified by:
logDebug in interface PlatformAbstraction
Parameters:
message - the message.
exception - an exception.
See Also:
PlatformAbstraction.logDebug(java.lang.String, java.lang.Throwable)

logError

public void logError(String message)
Description copied from interface: PlatformAbstraction
Write an error message to the log.

Specified by:
logError in interface PlatformAbstraction
Parameters:
message - the message.
See Also:
PlatformAbstraction.logError(java.lang.String)

logError

public void logError(String message,
                     Throwable exception)
Description copied from interface: PlatformAbstraction
Write an error message to the log.

Specified by:
logError in interface PlatformAbstraction
Parameters:
message - the message.
exception - an exception.
See Also:
PlatformAbstraction.logError(java.lang.String, java.lang.Throwable)

logTrace

public void logTrace(String message)
Description copied from interface: PlatformAbstraction
Write a trace message to the log.

Specified by:
logTrace in interface PlatformAbstraction
Parameters:
message - the message.
See Also:
PlatformAbstraction.logTrace(java.lang.String)

logTrace

public void logTrace(String message,
                     Throwable exception)
Description copied from interface: PlatformAbstraction
Write a trace message to the log.

Specified by:
logTrace in interface PlatformAbstraction
Parameters:
message - the message.
exception - an exception.
See Also:
PlatformAbstraction.logTrace(java.lang.String, java.lang.Throwable)

logWarning

public void logWarning(String message)
Description copied from interface: PlatformAbstraction
Write a warning message to the log.

Specified by:
logWarning in interface PlatformAbstraction
Parameters:
message - the message.
See Also:
PlatformAbstraction.logWarning(java.lang.String)

logWarning

public void logWarning(String message,
                       Throwable exception)
Description copied from interface: PlatformAbstraction
Write a warning message to the log.

Specified by:
logWarning in interface PlatformAbstraction
Parameters:
message - the message.
exception - an exception.
See Also:
PlatformAbstraction.logWarning(java.lang.String, java.lang.Throwable)