1 23 package com.sun.enterprise.management.support; 24 25 26 import java.util.Set ; 27 import java.util.HashSet ; 28 import java.util.Map ; 29 import java.util.HashMap ; 30 import java.util.Collection ; 31 import java.util.Collections ; 32 33 import javax.management.MBeanInfo ; 34 import javax.management.MBeanAttributeInfo ; 35 import javax.management.MBeanOperationInfo ; 36 37 38 42 public interface CoverageInfo 43 { 44 45 public void clear(); 46 47 48 public MBeanInfo getMBeanInfo(); 49 50 55 public void setMBeanInfo( final MBeanInfo mbeanInfo ); 56 public void merge( final CoverageInfo info ); 57 58 59 62 public Set <String > getReadableAttributes(); 63 64 67 public Set <String > getWriteableAttributes(); 68 69 73 public Set <String > getOperations(); 74 75 78 public Set <String > getAttributesRead(); 79 80 83 public Set <String > getAttributesNotRead(); 84 85 86 89 public Set <String > getAttributesWritten(); 90 91 94 public Set <String > getAttributesNotWritten(); 95 96 99 public Set <String > getOperationsInvoked(); 100 101 104 public Set <String > getOperationsNotInvoked(); 105 106 110 public Map <String ,Integer > getAttributeGetFailures(); 111 112 116 public Map <String ,Integer > getAttributeSetFailures(); 117 118 121 public Map <String ,Integer > getUnknownAttributes(); 122 123 126 public Map <String ,Integer > getUnknownOperations(); 127 128 public Map <String ,Integer > getInvocationFailures(); 129 130 133 public String toString( final boolean verbose ); 134 135 136 public int getAttributeReadCoverage(); 137 138 139 public int getAttributeWriteCoverage(); 140 141 142 public int getOperationCoverage(); 143 144 145 public boolean getFullCoverage(); 146 147 151 public void ignoreUnknownAttribute( final String name ); 152 153 156 public void attributeWasRead( final String name ); 157 158 161 public void attributesWereRead( final String [] names ); 162 163 166 public void attributeGetFailure( final String name ); 167 168 171 public void attributeWasWritten( final String name ); 172 173 176 public void attributeSetFailure( final String name ); 177 178 181 public void operationWasInvoked(final String name, final String [] sig); 182 183 188 public void markAsInvoked(final String fullname ); 189 190 193 public void operationFailed(final String name, final String [] sig); 194 195 } 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | Popular Tags |