1 23 package com.sun.enterprise.management.support; 24 25 import java.io.Serializable ; 26 27 import java.util.Set ; 28 import java.util.Map ; 29 import java.util.Collections ; 30 31 import javax.management.MBeanInfo ; 32 33 37 public final class CoverageInfoDummy implements Serializable , CoverageInfo 38 { 39 public static final long serialVersionUID = 0xABCDEF; 40 41 public 42 CoverageInfoDummy() 43 { 44 } 45 46 static private final Set <String > EMPTY_SET = Collections.emptySet(); 47 static private final Map <String ,Integer > EMPTY_MAP = Collections.emptyMap(); 48 49 public void clear() {} 50 51 public MBeanInfo getMBeanInfo() { return null; } 52 public void setMBeanInfo(MBeanInfo info) { } 53 public void merge( final CoverageInfo info ) {} 54 55 public Set <String > getReadableAttributes() { return EMPTY_SET; } 56 public Set <String > getWriteableAttributes() { return EMPTY_SET; } 57 public Set <String > getOperations() { return EMPTY_SET; } 58 59 public Set <String > getAttributesRead() { return EMPTY_SET; } 60 public Set <String > getAttributesNotRead() { return EMPTY_SET; } 61 62 public Set <String > getAttributesWritten() { return EMPTY_SET; } 63 public Set <String > getAttributesNotWritten() { return EMPTY_SET; } 64 65 public Set <String > getOperationsInvoked() { return EMPTY_SET; } 66 public Set <String > getOperationsNotInvoked() { return EMPTY_SET; } 67 68 public Map <String ,Integer > getAttributeGetFailures() { return EMPTY_MAP; } 69 public Map <String ,Integer > getAttributeSetFailures() { return EMPTY_MAP; } 70 71 public Map <String ,Integer > getUnknownAttributes() { return EMPTY_MAP; } 72 public Map <String ,Integer > getUnknownOperations() { return EMPTY_MAP; } 73 74 public Map <String ,Integer > getInvocationFailures() { return EMPTY_MAP; } 75 76 public String toString( final boolean verbose ) { return "CoverageInfoDummy"; } 77 78 79 public int getAttributeReadCoverage() { return 0; } 80 public int getAttributeWriteCoverage() { return 0; } 81 public int getOperationCoverage() { return 0; } 82 public boolean getFullCoverage() { return false; } 83 84 public void ignoreUnknownAttribute( final String name ) {} 85 public void unknownAttribute( final String name ) {} 86 public void attributeWasRead( final String name ) {} 87 public void attributesWereRead( final String [] name ) {} 88 public void attributeWasWritten( final String name ) {} 89 public void attributeGetFailure( final String name ) {} 90 public void attributeSetFailure( final String name ) {} 91 92 public void unknownOperation(final String name, final String [] sig) {} 93 public void operationWasInvoked(final String name, final String [] sig) {} 94 public void markAsInvoked(final String fullname ){} 95 96 public void operationFailed(final String name, final String [] sig) {} 97 } 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | Popular Tags |