Package org.iobserve.common.record
Class ServerGeoLocation
- java.lang.Object
-
- kieker.common.record.AbstractMonitoringRecord
-
- kieker.common.record.flow.AbstractEvent
-
- org.iobserve.common.record.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
-
-
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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getAddress()
short
getCountryCode()
String
getHostname()
int
getSize()
Class<?>[]
getValueTypes()
void
initFromArray(Object[] values)
Deprecated.This record uses theIMonitoringRecord.Factory
mechanism.void
initFromBytes(ByteBuffer buffer, kieker.common.util.registry.IRegistry<String> stringRegistry)
Deprecated.This record uses theIMonitoringRecord.BinaryFactory
mechanism.void
registerStrings(kieker.common.util.registry.IRegistry<String> stringRegistry)
Object[]
toArray()
void
writeBytes(ByteBuffer buffer, kieker.common.util.registry.IRegistry<String> stringRegistry)
-
Methods inherited from class kieker.common.record.AbstractMonitoringRecord
checkArray, classForName, compareTo, createFromArray, createFromArray, createFromByteBuffer, createFromByteBuffer, createFromStringArray, equals, fromStringArrayToTypedArray, getLoggingTimestamp, hashCode, setLoggingTimestamp, toString, typesForClass
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
SIZE
public static final int SIZE
Descriptive definition of the serialization size of the record.- See Also:
- Constant Field Values
-
TYPES
public static final Class<?>[] TYPES
-
COUNTRY_CODE
public static final short COUNTRY_CODE
- See Also:
- Constant Field Values
-
HOSTNAME
public static final String HOSTNAME
- See Also:
- Constant Field Values
-
ADDRESS
public static final String ADDRESS
- See Also:
- Constant Field Values
-
-
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
- timestampcountryCode
- countryCodehostname
- hostnameaddress
- 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 totoArray()
.- 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 interfacekieker.common.record.IMonitoringRecord
-
registerStrings
public void registerStrings(kieker.common.util.registry.IRegistry<String> stringRegistry)
- Specified by:
registerStrings
in interfacekieker.common.record.IMonitoringRecord
- Overrides:
registerStrings
in classkieker.common.record.AbstractMonitoringRecord
-
writeBytes
public void writeBytes(ByteBuffer buffer, kieker.common.util.registry.IRegistry<String> stringRegistry) throws BufferOverflowException
- Specified by:
writeBytes
in interfacekieker.common.record.IMonitoringRecord
- Throws:
BufferOverflowException
-
getValueTypes
public Class<?>[] getValueTypes()
- Specified by:
getValueTypes
in interfacekieker.common.record.IMonitoringRecord
-
getSize
public int getSize()
- Specified by:
getSize
in interfacekieker.common.record.IMonitoringRecord
-
initFromArray
@Deprecated public void initFromArray(Object[] values)
Deprecated.This record uses theIMonitoringRecord.Factory
mechanism. Hence, this method is not implemented.- Specified by:
initFromArray
in interfacekieker.common.record.IMonitoringRecord
- Overrides:
initFromArray
in classkieker.common.record.flow.AbstractEvent
-
initFromBytes
@Deprecated public void initFromBytes(ByteBuffer buffer, kieker.common.util.registry.IRegistry<String> stringRegistry) throws BufferUnderflowException
Deprecated.This record uses theIMonitoringRecord.BinaryFactory
mechanism. Hence, this method is not implemented.- Specified by:
initFromBytes
in interfacekieker.common.record.IMonitoringRecord
- Overrides:
initFromBytes
in classkieker.common.record.flow.AbstractEvent
- Throws:
BufferUnderflowException
-
getCountryCode
public final short getCountryCode()
- Specified by:
getCountryCode
in interfaceGeoLocation
-
getHostname
public final String getHostname()
-
getAddress
public final String getAddress()
-
-