Class ServerGeoLocation

  • All Implemented Interfaces:
    Serializable, Comparable<kieker.common.record.IMonitoringRecord>, kieker.common.record.flow.IEventRecord, kieker.common.record.flow.IFlowRecord, kieker.common.record.IMonitoringRecord, kieker.common.record.IMonitoringRecord.BinaryFactory, kieker.common.record.IMonitoringRecord.Factory, GeoLocation

    public class ServerGeoLocation
    extends kieker.common.record.flow.AbstractEvent
    implements GeoLocation
    Since:
    1.12
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface kieker.common.record.IMonitoringRecord

        kieker.common.record.IMonitoringRecord.BinaryFactory, kieker.common.record.IMonitoringRecord.Factory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ADDRESS  
      static short COUNTRY_CODE  
      static String HOSTNAME  
      static int SIZE
      Descriptive definition of the serialization size of the record.
      static Class<?>[] TYPES  
      • Fields inherited from class kieker.common.record.flow.AbstractEvent

        TIMESTAMP
      • Fields inherited from class kieker.common.record.AbstractMonitoringRecord

        TYPE_SIZE_BOOLEAN, TYPE_SIZE_BYTE, TYPE_SIZE_CHARACTER, TYPE_SIZE_DOUBLE, TYPE_SIZE_FLOAT, TYPE_SIZE_INT, TYPE_SIZE_LONG, TYPE_SIZE_SHORT, TYPE_SIZE_STRING
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        ServerGeoLocation​(long timestamp, short countryCode, String hostname, String address)
      Creates a new instance of this class using the given parameters.
        ServerGeoLocation​(Object[] values)
      This constructor converts the given array into a record.
      protected ServerGeoLocation​(Object[] values, Class<?>[] valueTypes)
      This constructor uses the given array to initialize the fields of this record.
        ServerGeoLocation​(ByteBuffer buffer, kieker.common.util.registry.IRegistry<String> stringRegistry)
      This constructor converts the given array into a record.
    • Constructor Detail

      • ServerGeoLocation

        public ServerGeoLocation​(long timestamp,
                                 short countryCode,
                                 String hostname,
                                 String address)
        Creates a new instance of this class using the given parameters.
        Parameters:
        timestamp - timestamp
        countryCode - countryCode
        hostname - hostname
        address - address
      • ServerGeoLocation

        public ServerGeoLocation​(Object[] values)
        This constructor converts the given array into a record. It is recommended to use the array which is the result of a call to toArray().
        Parameters:
        values - The values for the record.
      • ServerGeoLocation

        protected ServerGeoLocation​(Object[] values,
                                    Class<?>[] valueTypes)
        This constructor uses the given array to initialize the fields of this record.
        Parameters:
        values - The values for the record.
        valueTypes - The types of the elements in the first array.
      • ServerGeoLocation

        public ServerGeoLocation​(ByteBuffer buffer,
                                 kieker.common.util.registry.IRegistry<String> stringRegistry)
                          throws BufferUnderflowException
        This constructor converts the given array into a record.
        Parameters:
        buffer - The bytes for the record.
        Throws:
        BufferUnderflowException - if buffer not sufficient
    • Method Detail

      • toArray

        public Object[] toArray()
        Specified by:
        toArray in interface kieker.common.record.IMonitoringRecord
      • registerStrings

        public void registerStrings​(kieker.common.util.registry.IRegistry<String> stringRegistry)
        Specified by:
        registerStrings in interface kieker.common.record.IMonitoringRecord
        Overrides:
        registerStrings in class kieker.common.record.AbstractMonitoringRecord
      • getValueTypes

        public Class<?>[] getValueTypes()
        Specified by:
        getValueTypes in interface kieker.common.record.IMonitoringRecord
      • getSize

        public int getSize()
        Specified by:
        getSize in interface kieker.common.record.IMonitoringRecord
      • initFromArray

        @Deprecated
        public void initFromArray​(Object[] values)
        Deprecated.
        This record uses the IMonitoringRecord.Factory mechanism. Hence, this method is not implemented.
        Specified by:
        initFromArray in interface kieker.common.record.IMonitoringRecord
        Overrides:
        initFromArray in class kieker.common.record.flow.AbstractEvent
      • initFromBytes

        @Deprecated
        public void initFromBytes​(ByteBuffer buffer,
                                  kieker.common.util.registry.IRegistry<String> stringRegistry)
                           throws BufferUnderflowException
        Deprecated.
        This record uses the IMonitoringRecord.BinaryFactory mechanism. Hence, this method is not implemented.
        Specified by:
        initFromBytes in interface kieker.common.record.IMonitoringRecord
        Overrides:
        initFromBytes in class kieker.common.record.flow.AbstractEvent
        Throws:
        BufferUnderflowException
      • getHostname

        public final String getHostname()
      • getAddress

        public final String getAddress()