org.eclipse.ecf.osgi.services.discovery
Class AbstractDiscoveryListener

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.discovery.AbstractDiscoveryListener
Direct Known Subclasses:
LoggingHostDiscoveryListener, LoggingProxyDiscoveryListener

public abstract class AbstractDiscoveryListener
extends java.lang.Object


Field Summary
protected  int logLevel
           
 
Constructor Summary
AbstractDiscoveryListener()
           
AbstractDiscoveryListener(int logLevel)
           
 
Method Summary
protected  java.lang.String createTabs(int tabLevel)
           
protected  int getLogLevel()
           
protected  void log(org.osgi.framework.ServiceReference serviceReference, java.lang.String message, java.lang.Throwable t)
           
protected  java.lang.String printBytes(byte[] bytesValue)
           
protected  java.lang.String printServiceID(IServiceID serviceID)
           
protected  java.lang.String printServiceInfo(int tabLevel, IServiceInfo serviceInfo)
           
protected  java.lang.String printServiceProperties(int tabLevel, IServiceProperties serviceProperties)
           
protected  java.lang.String printServicePropertyBytes(int tabLevel, IServiceProperties serviceProperties, java.lang.String propertyName, java.lang.String outputName)
           
protected  java.lang.String printServicePropertyString(int tabLevel, IServiceProperties serviceProperties, java.lang.String propertyName, java.lang.String outputName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logLevel

protected int logLevel
Constructor Detail

AbstractDiscoveryListener

public AbstractDiscoveryListener(int logLevel)

AbstractDiscoveryListener

public AbstractDiscoveryListener()
Method Detail

getLogLevel

protected int getLogLevel()

log

protected void log(org.osgi.framework.ServiceReference serviceReference,
                   java.lang.String message,
                   java.lang.Throwable t)

printServiceInfo

protected java.lang.String printServiceInfo(int tabLevel,
                                            IServiceInfo serviceInfo)

printServicePropertyString

protected java.lang.String printServicePropertyString(int tabLevel,
                                                      IServiceProperties serviceProperties,
                                                      java.lang.String propertyName,
                                                      java.lang.String outputName)

printServicePropertyBytes

protected java.lang.String printServicePropertyBytes(int tabLevel,
                                                     IServiceProperties serviceProperties,
                                                     java.lang.String propertyName,
                                                     java.lang.String outputName)

printServiceID

protected java.lang.String printServiceID(IServiceID serviceID)

createTabs

protected java.lang.String createTabs(int tabLevel)

printServiceProperties

protected java.lang.String printServiceProperties(int tabLevel,
                                                  IServiceProperties serviceProperties)

printBytes

protected java.lang.String printBytes(byte[] bytesValue)