ch.ethz.iks.slp.impl
Class OSGiPlatformAbstraction

Package class diagram package OSGiPlatformAbstraction
java.lang.Object
  extended by ch.ethz.iks.slp.impl.OSGiPlatformAbstraction
All Implemented Interfaces:
PlatformAbstraction, EventListener, org.osgi.framework.ServiceListener

public class OSGiPlatformAbstraction
extends Object
implements PlatformAbstraction, org.osgi.framework.ServiceListener

Platform abstraction for the OSGi implementation.

Author:
Jan S. Rellermeyer, ETH Zurich

Method Summary
 Filter createFilter(String filterString)
          Create an LDAP filter.
 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 logTraceDrop(String message)
          Trace a drop to the log.
 void logTraceMessage(String message)
          Trace a generic message to the log.
 void logTraceReg(String message)
          Trace a registration 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.
 void serviceChanged(org.osgi.framework.ServiceEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFilter

public Filter createFilter(String filterString)
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.
See Also:
PlatformAbstraction.createFilter(java.lang.String)

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)

logTraceMessage

public void logTraceMessage(String message)
Description copied from interface: PlatformAbstraction
Trace a generic message to the log.

Specified by:
logTraceMessage in interface PlatformAbstraction
See Also:
PlatformAbstraction.logTraceMessage(java.lang.String)

logTraceDrop

public void logTraceDrop(String message)
Description copied from interface: PlatformAbstraction
Trace a drop to the log.

Specified by:
logTraceDrop in interface PlatformAbstraction
See Also:
PlatformAbstraction.logTraceDrop(java.lang.String)

logTraceReg

public void logTraceReg(String message)
Description copied from interface: PlatformAbstraction
Trace a registration to the log.

Specified by:
logTraceReg in interface PlatformAbstraction
See Also:
PlatformAbstraction.logTraceMessage(java.lang.String)

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)

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
See Also:
ServiceListener.serviceChanged(org.osgi.framework.ServiceEvent)


Copyright © 2014 universAAL Consortium. All Rights Reserved.