|| traceStatisticsName.equals(resourceInstance.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(resourceInstance.getResourceType().getStatisticsType().getName()))) { this.traceDataOut .println("destroyedResourceInstance#writeByte RESOURCE_INSTANCE_DELETE_TOKEN: "
throw new InternalGemFireException( String.format("Could not archive type %s because it had more than %s statistics.", new Object[] {resourceType.getStatisticsType().getName(), Integer.valueOf(ILLEGAL_STAT_OFFSET - 1)})); this.dataOut.writeByte(RESOURCE_TYPE_TOKEN); this.dataOut.writeInt(resourceType.getId()); this.dataOut.writeUTF(resourceType.getStatisticsType().getName()); this.dataOut.writeUTF(resourceType.getStatisticsType().getDescription()); StatisticDescriptor[] stats = resourceType.getStatisticDescriptors(); this.dataOut.writeShort(stats.length); if (this.trace && (traceStatisticsTypeName == null || traceStatisticsTypeName.equals(resourceType.getStatisticsType().getName()))) { this.traceDataOut .println("allocatedResourceType#writeByte RESOURCE_TYPE_TOKEN: " + RESOURCE_TYPE_TOKEN); this.traceDataOut .println("allocatedResourceType#writeUTF resourceType.getStatisticsType().getName(): " + resourceType.getStatisticsType().getName()); this.traceDataOut.println( "allocatedResourceType#writeUTF resourceType.getStatisticsType().getDescription(): " + resourceType.getStatisticsType().getDescription()); this.traceDataOut.println("allocatedResourceType#writeShort stats.length: " + stats.length); this.dataOut.writeUTF(stats[i].getDescription()); if (this.trace && (traceStatisticsTypeName == null || traceStatisticsTypeName.equals(resourceType.getStatisticsType().getName()))) { this.traceDataOut .println("allocatedResourceType#writeUTF stats[i].getName(): " + stats[i].getName());
|| traceStatisticsName.equals(ri.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(ri.getResourceType().getStatisticsType().getName()))) { this.traceDataOut.println("writeSample#writeSample for ri=" + ri); throw new Error("StatisticsType " + ri.getResourceType().getStatisticsType().getName() + " has too many stats: " + stats.length); || traceStatisticsName.equals(ri.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(ri.getResourceType().getStatisticsType().getName()))) { this.traceDataOut.println("writeSample#writeByte i: " + i); || traceStatisticsName.equals(ri.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(ri.getResourceType().getStatisticsType().getName()))) { byte typeCode = ((StatisticDescriptorImpl) stats[i]).getTypeCode(); switch (typeCode) { || traceStatisticsName.equals(ri.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(ri.getResourceType().getStatisticsType().getName()))) { this.traceDataOut .println("writeSample#writeByte ILLEGAL_STAT_OFFSET: " + ILLEGAL_STAT_OFFSET);
String.format("Could not archive type %s because it had more than %s statistics.", new Object[] {statResource.getResourceType().getStatisticsType().getName(), Integer.valueOf(ILLEGAL_STAT_OFFSET - 1)})); || traceStatisticsName.equals(statResource.getStatistics().getTextId())) && (traceStatisticsTypeName == null || traceStatisticsTypeName .equals(statResource.getResourceType().getStatisticsType().getName()))) { traceResourceInstId = statResource.getId(); this.traceDataOut.println("writeHeader traceResourceInstId: " + traceResourceInstId);
assertEquals(0, resourceType.getId()); assertEquals(1, resourceType.getStatisticDescriptors().length); StatisticsType statisticsType = resourceType.getStatisticsType(); assertNotNull(statisticsType); assertTrue(statisticsType == ST1);
assertEquals(0, resourceType.getId()); assertEquals(1, resourceType.getStatisticDescriptors().length); StatisticsType statisticsType = resourceType.getStatisticsType(); assertNotNull(statisticsType); assertTrue(statisticsType == ST1); assertEquals(1, resourceType.getId()); assertEquals(1, resourceType.getStatisticDescriptors().length); statisticsType = resourceType.getStatisticsType(); assertNotNull(statisticsType); assertTrue(statisticsType == ST2);