Class SessionCreatorImpl
- java.lang.Object
-
- com.dynatrace.openkit.core.objects.SessionCreatorImpl
-
- All Implemented Interfaces:
SessionCreator,BeaconInitializer
public class SessionCreatorImpl extends java.lang.Object implements SessionCreator, BeaconInitializer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionImplcreateSession(OpenKitComposite parent)Returns a newly createdSessionImpl.BeaconCachegetBeaconCache()Returns the cache where the data of the beacon is stored until it gets sent.java.lang.StringgetClientIpAddress()Returns the client IP address of the session / beacon.LoggergetLogger()Returns the logger for reporting messages.RandomNumberGeneratorgetRandomNumberGenerator()Returns theRandomNumberGeneratorto obtain random numbers (e.g.SessionIDProvidergetSessionIdProvider()Returns theSessionIDProviderto obtain the identifier of the session / beaconintgetSessionSequenceNumber()Returns the sequence number for the beacon/session for identification in case of session split by events.SupplementaryBasicDatagetSupplementaryBasicData()Returns theSupplementaryBasicDatato obtain additional mutable basic dataThreadIDProvidergetThreadIdProvider()Returns theThreadIDProviderto obtain the identifier of the current thread.TimingProvidergetTimingProvider()Returns theTimingProviderto obtain the current timestamp.voidreset()Resets the internal state of this session creator.
-
-
-
Method Detail
-
createSession
public SessionImpl createSession(OpenKitComposite parent)
Description copied from interface:SessionCreatorReturns a newly createdSessionImpl.- Specified by:
createSessionin interfaceSessionCreator- Parameters:
parent- the parent composite of the session to create.
-
reset
public void reset()
Description copied from interface:SessionCreatorResets the internal state of this session creator. A reset includes the following:- resetting the consecutive sequence session number which is increased every time a session is created.
- use a new session ID (which will stay the same for all newly created sessions)
- use a new randomized number (which will stay the same for all newly created sessions)
- Specified by:
resetin interfaceSessionCreator
-
getLogger
public Logger getLogger()
Description copied from interface:BeaconInitializerReturns the logger for reporting messages.- Specified by:
getLoggerin interfaceBeaconInitializer
-
getBeaconCache
public BeaconCache getBeaconCache()
Description copied from interface:BeaconInitializerReturns the cache where the data of the beacon is stored until it gets sent.- Specified by:
getBeaconCachein interfaceBeaconInitializer
-
getClientIpAddress
public java.lang.String getClientIpAddress()
Description copied from interface:BeaconInitializerReturns the client IP address of the session / beacon.- Specified by:
getClientIpAddressin interfaceBeaconInitializer
-
getSessionIdProvider
public SessionIDProvider getSessionIdProvider()
Description copied from interface:BeaconInitializerReturns theSessionIDProviderto obtain the identifier of the session / beacon- Specified by:
getSessionIdProviderin interfaceBeaconInitializer
-
getSessionSequenceNumber
public int getSessionSequenceNumber()
Description copied from interface:BeaconInitializerReturns the sequence number for the beacon/session for identification in case of session split by events. The session sequence number complements the session ID.- Specified by:
getSessionSequenceNumberin interfaceBeaconInitializer
-
getThreadIdProvider
public ThreadIDProvider getThreadIdProvider()
Description copied from interface:BeaconInitializerReturns theThreadIDProviderto obtain the identifier of the current thread.- Specified by:
getThreadIdProviderin interfaceBeaconInitializer
-
getTimingProvider
public TimingProvider getTimingProvider()
Description copied from interface:BeaconInitializerReturns theTimingProviderto obtain the current timestamp.- Specified by:
getTimingProviderin interfaceBeaconInitializer
-
getRandomNumberGenerator
public RandomNumberGenerator getRandomNumberGenerator()
Description copied from interface:BeaconInitializerReturns theRandomNumberGeneratorto obtain random numbers (e.g. for randomizing device IDs)- Specified by:
getRandomNumberGeneratorin interfaceBeaconInitializer
-
getSupplementaryBasicData
public SupplementaryBasicData getSupplementaryBasicData()
Description copied from interface:BeaconInitializerReturns theSupplementaryBasicDatato obtain additional mutable basic data- Specified by:
getSupplementaryBasicDatain interfaceBeaconInitializer
-
-