FileDocCategorySizeDatePackage
CoverageInfo.javaAPI DocGlassfish v2 API7071Fri May 04 22:23:42 BST 2007com.sun.enterprise.management.support

CoverageInfo

public interface CoverageInfo
Used to record access to AMX.
see
AMXDebugStuff

Fields Summary
Constructors Summary
Methods Summary
public voidattributeGetFailure(java.lang.String name)
Record the fact that a failure occurred while reading the Attribute.

public voidattributeSetFailure(java.lang.String name)
Record the fact that a failure occurred while writing the Attribute.

public voidattributeWasRead(java.lang.String name)
Record the fact that a request was made to read the Attribute.

public voidattributeWasWritten(java.lang.String name)
Record the fact that a request was made to write the Attribute.

public voidattributesWereRead(java.lang.String[] names)
Record the fact that a request was made to read the Attributes.

public voidclear()
reset coverage data to empty

public java.util.MapgetAttributeGetFailures()
Get a Map of Attribute read failures for legal attributes.

public intgetAttributeReadCoverage()
0-100%, based on legal readable Attributes

public java.util.MapgetAttributeSetFailures()
Get a Map of Attribute write failures for legal attributes.

public intgetAttributeWriteCoverage()
0-100%, based on legal writeable Attributes

public java.util.SetgetAttributesNotRead()
Get the Set of legal attributes which were NOT read.

public java.util.SetgetAttributesNotWritten()
Get the Set of legal attributes which were NOT written.

public java.util.SetgetAttributesRead()
Get the Set of legal attributes which were read.

public java.util.SetgetAttributesWritten()
Get the Set of legal attributes which were written.

public booleangetFullCoverage()

return
true if 100% coverage, false otherwise

public java.util.MapgetInvocationFailures()

public javax.management.MBeanInfogetMBeanInfo()
get the current MBeanInfo, possibly null if not yet set

public intgetOperationCoverage()
0-100%, based on legal operations

public java.util.SetgetOperations()
Get the Set of legal operations which can be invoked. Format: opname();

public java.util.SetgetOperationsInvoked()
Get the Set of legal operations which were invoked.

public java.util.SetgetOperationsNotInvoked()
Get the Set of legal operations which were NOT invoked.

public java.util.SetgetReadableAttributes()
Get the Set of legal attributes which can be read.

public java.util.MapgetUnknownAttributes()
Get a Map of unknown Attribute accesses.

public java.util.MapgetUnknownOperations()
Get a Map of unknown operation accesses.

public java.util.SetgetWriteableAttributes()
Get the Set of legal attributes which can be read.

public voidignoreUnknownAttribute(java.lang.String name)
Remove the Attribute from the list of unknown Attributes. Used to "clean up" the output for known transgressions.

public voidmarkAsInvoked(java.lang.String fullname)
Mark the operation as having been invoked. Usually used to be able to ignore certain known cases of operations that can't be invoked remotely, such as add/removeNotificationListener (certain forms).

public voidmerge(com.sun.enterprise.management.support.CoverageInfo info)

public voidoperationFailed(java.lang.String name, java.lang.String[] sig)
Record the fact that a failure occurred while invoking the operation.

public voidoperationWasInvoked(java.lang.String name, java.lang.String[] sig)
Record the fact that a request was made to invoke the operation.

public voidsetMBeanInfo(javax.management.MBeanInfo mbeanInfo)
Set the current MBeanInfo. Should be set prior to calling other routines because it is used to recognize unknown Attributes and operations.

public java.lang.StringtoString(boolean verbose)
Produce a useful string for current information.