com.tc.object.logging
Class NullInstrumentationLogger

java.lang.Object
  extended by com.tc.object.logging.NullInstrumentationLogger
All Implemented Interfaces:
InstrumentationLogger

public class NullInstrumentationLogger
extends java.lang.Object
implements InstrumentationLogger


Constructor Summary
NullInstrumentationLogger()
           
 
Method Summary
 void autolockInserted(java.lang.String className, java.lang.String methodName, java.lang.String methodDesc, LockDefinition lockDef)
          Log that auto lock was inserted
 void classIncluded(java.lang.String className)
          Log class that is being instrumented
 void distMethodCallInserted(java.lang.String className, java.lang.String methodName, java.lang.String desc)
          Log that a DMI call was inserted.
 boolean getClassInclusion()
          Determine whether to log when a class is included for instrumentation (checked before calls to InstrumentationLogger.classIncluded(String)).
 boolean getDistMethodCallInsertion()
          Determine whether to log when a DMI call is inserted (checked before calls to InstrumentationLogger.distMethodCallInserted(String, String, String)).
 boolean getLockInsertion()
          Determine whether to log when a lock is inserted (checked before calls to InstrumentationLogger.autolockInserted(String, String, String, LockDefinition) or InstrumentationLogger.lockInserted(String, String, String, LockDefinition[])).
 boolean getRootInsertion()
          Determine whether to log when a root is inserted (checked before calls to InstrumentationLogger.rootInserted(String, String, String, boolean)).
 boolean getTransientRootWarning()
          Determine whether to log transient root warnings (checked before calls to {@link #transientRootWarning(String, String)).
 void lockInserted(java.lang.String className, java.lang.String methodName, java.lang.String methodDesc, LockDefinition[] locks)
          Log that lock was inserted
 void rootInserted(java.lang.String className, java.lang.String fieldName, java.lang.String desc, boolean isStatic)
          Log that a root was inserted
 void setClassInclusion(boolean classInclusion)
           
 void setDistMethodCallInsertion(boolean distMethodClassInsertion)
           
 void setLockInsertion(boolean lockInsertion)
           
 void setRootInsertion(boolean rootInsertion)
           
 void setTransientRootWarning(boolean transientRootWarning)
           
 void subclassOfLogicallyManagedClasses(java.lang.String className, java.util.Collection logicalSuperClasses)
          Log that a subclass of a logically managed class cannot be instrumented
 void transientRootWarning(java.lang.String className, java.lang.String fieldName)
          Log that the transient property is being ignored for a root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullInstrumentationLogger

public NullInstrumentationLogger()
Method Detail

getClassInclusion

public boolean getClassInclusion()
Description copied from interface: InstrumentationLogger
Determine whether to log when a class is included for instrumentation (checked before calls to InstrumentationLogger.classIncluded(String)).

Specified by:
getClassInclusion in interface InstrumentationLogger
Returns:
True if should log

setClassInclusion

public void setClassInclusion(boolean classInclusion)
Specified by:
setClassInclusion in interface InstrumentationLogger

getLockInsertion

public boolean getLockInsertion()
Description copied from interface: InstrumentationLogger
Determine whether to log when a lock is inserted (checked before calls to InstrumentationLogger.autolockInserted(String, String, String, LockDefinition) or InstrumentationLogger.lockInserted(String, String, String, LockDefinition[])).

Specified by:
getLockInsertion in interface InstrumentationLogger
Returns:
True if should log

setLockInsertion

public void setLockInsertion(boolean lockInsertion)
Specified by:
setLockInsertion in interface InstrumentationLogger

getRootInsertion

public boolean getRootInsertion()
Description copied from interface: InstrumentationLogger
Determine whether to log when a root is inserted (checked before calls to InstrumentationLogger.rootInserted(String, String, String, boolean)).

Specified by:
getRootInsertion in interface InstrumentationLogger
Returns:
True if should log

setRootInsertion

public void setRootInsertion(boolean rootInsertion)
Specified by:
setRootInsertion in interface InstrumentationLogger

getDistMethodCallInsertion

public boolean getDistMethodCallInsertion()
Description copied from interface: InstrumentationLogger
Determine whether to log when a DMI call is inserted (checked before calls to InstrumentationLogger.distMethodCallInserted(String, String, String)).

Specified by:
getDistMethodCallInsertion in interface InstrumentationLogger
Returns:
True if should log

setDistMethodCallInsertion

public void setDistMethodCallInsertion(boolean distMethodClassInsertion)
Specified by:
setDistMethodCallInsertion in interface InstrumentationLogger

getTransientRootWarning

public boolean getTransientRootWarning()
Description copied from interface: InstrumentationLogger
Determine whether to log transient root warnings (checked before calls to {@link #transientRootWarning(String, String)).

Specified by:
getTransientRootWarning in interface InstrumentationLogger
Returns:
True if should log

setTransientRootWarning

public void setTransientRootWarning(boolean transientRootWarning)
Specified by:
setTransientRootWarning in interface InstrumentationLogger

classIncluded

public void classIncluded(java.lang.String className)
Description copied from interface: InstrumentationLogger
Log class that is being instrumented

Specified by:
classIncluded in interface InstrumentationLogger
Parameters:
className - Class name

autolockInserted

public void autolockInserted(java.lang.String className,
                             java.lang.String methodName,
                             java.lang.String methodDesc,
                             LockDefinition lockDef)
Description copied from interface: InstrumentationLogger
Log that auto lock was inserted

Specified by:
autolockInserted in interface InstrumentationLogger
Parameters:
className - The class name
methodName - The method name
methodDesc - Method descriptor
lockDef - The lock definition

lockInserted

public void lockInserted(java.lang.String className,
                         java.lang.String methodName,
                         java.lang.String methodDesc,
                         LockDefinition[] locks)
Description copied from interface: InstrumentationLogger
Log that lock was inserted

Specified by:
lockInserted in interface InstrumentationLogger
Parameters:
className - The class name
methodName - The method name
methodDesc - Method descriptor
locks - The lock definitions

subclassOfLogicallyManagedClasses

public void subclassOfLogicallyManagedClasses(java.lang.String className,
                                              java.util.Collection logicalSuperClasses)
Description copied from interface: InstrumentationLogger
Log that a subclass of a logically managed class cannot be instrumented

Specified by:
subclassOfLogicallyManagedClasses in interface InstrumentationLogger
Parameters:
className - The class
logicalSuperClasses - All logical super classes that prevent className from being instrumented

transientRootWarning

public void transientRootWarning(java.lang.String className,
                                 java.lang.String fieldName)
Description copied from interface: InstrumentationLogger
Log that the transient property is being ignored for a root

Specified by:
transientRootWarning in interface InstrumentationLogger
Parameters:
className - Class name
fieldName - Transient field name

rootInserted

public void rootInserted(java.lang.String className,
                         java.lang.String fieldName,
                         java.lang.String desc,
                         boolean isStatic)
Description copied from interface: InstrumentationLogger
Log that a root was inserted

Specified by:
rootInserted in interface InstrumentationLogger
Parameters:
className - The class name
fieldName - The root field
desc - Method descriptor
isStatic - True if static root

distMethodCallInserted

public void distMethodCallInserted(java.lang.String className,
                                   java.lang.String methodName,
                                   java.lang.String desc)
Description copied from interface: InstrumentationLogger
Log that a DMI call was inserted.

Specified by:
distMethodCallInserted in interface InstrumentationLogger
Parameters:
className - The class name
methodName - The method name
desc - The method descriptor


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.