net.floodlightcontroller.perfmon
Class CumulativeTimeBucketJSONSerializer

java.lang.Object
  extended by com.fasterxml.jackson.databind.JsonSerializer<CumulativeTimeBucket>
      extended by net.floodlightcontroller.perfmon.CumulativeTimeBucketJSONSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable

public class CumulativeTimeBucketJSONSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<CumulativeTimeBucket>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
 
Constructor Summary
CumulativeTimeBucketJSONSerializer()
           
 
Method Summary
 java.lang.Class<CumulativeTimeBucket> handledType()
          Tells SimpleModule that we are the serializer for OFMatch
 void serialize(CumulativeTimeBucket ctb, com.fasterxml.jackson.core.JsonGenerator jGen, com.fasterxml.jackson.databind.SerializerProvider serializer)
          Performs the serialization of a OneComponentTime object
 
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, isEmpty, isUnwrappingSerializer, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CumulativeTimeBucketJSONSerializer

public CumulativeTimeBucketJSONSerializer()
Method Detail

serialize

public void serialize(CumulativeTimeBucket ctb,
                      com.fasterxml.jackson.core.JsonGenerator jGen,
                      com.fasterxml.jackson.databind.SerializerProvider serializer)
               throws java.io.IOException,
                      com.fasterxml.jackson.core.JsonProcessingException
Performs the serialization of a OneComponentTime object

Specified by:
serialize in class com.fasterxml.jackson.databind.JsonSerializer<CumulativeTimeBucket>
Throws:
java.io.IOException
com.fasterxml.jackson.core.JsonProcessingException

handledType

public java.lang.Class<CumulativeTimeBucket> handledType()
Tells SimpleModule that we are the serializer for OFMatch

Overrides:
handledType in class com.fasterxml.jackson.databind.JsonSerializer<CumulativeTimeBucket>