public class SessionCreatorImpl extends java.lang.Object implements SessionCreator, BeaconInitializer
| Modifier and Type | Method and Description |
|---|---|
SessionImpl |
createSession(OpenKitComposite parent)
Returns a newly created
SessionImpl. |
BeaconCache |
getBeaconCache()
Returns the cache where the data of the beacon is stored until it gets sent.
|
java.lang.String |
getClientIpAddress()
Returns the client IP address of the session / beacon.
|
Logger |
getLogger()
Returns the logger for reporting messages.
|
RandomNumberGenerator |
getRandomNumberGenerator()
Returns the
RandomNumberGenerator to obtain random numbers (e.g. |
SessionIDProvider |
getSessionIdProvider()
Returns the
SessionIDProvider to obtain the identifier of the session / beacon |
int |
getSessionSequenceNumber()
Returns the sequence number for the beacon/session for identification in case of session split by events.
|
ThreadIDProvider |
getThreadIdProvider()
Returns the
ThreadIDProvider to obtain the identifier of the current thread. |
TimingProvider |
getTimingProvider()
Returns the
TimingProvider to obtain the current timestamp. |
void |
reset()
Resets the internal state of this session creator.
|
public SessionImpl createSession(OpenKitComposite parent)
SessionCreatorSessionImpl.createSession in interface SessionCreatorparent - the parent composite of the session to create.public void reset()
SessionCreatorreset in interface SessionCreatorpublic Logger getLogger()
BeaconInitializergetLogger in interface BeaconInitializerpublic BeaconCache getBeaconCache()
BeaconInitializergetBeaconCache in interface BeaconInitializerpublic java.lang.String getClientIpAddress()
BeaconInitializergetClientIpAddress in interface BeaconInitializerpublic SessionIDProvider getSessionIdProvider()
BeaconInitializerSessionIDProvider to obtain the identifier of the session / beacongetSessionIdProvider in interface BeaconInitializerpublic int getSessionSequenceNumber()
BeaconInitializergetSessionSequenceNumber in interface BeaconInitializerpublic ThreadIDProvider getThreadIdProvider()
BeaconInitializerThreadIDProvider to obtain the identifier of the current thread.getThreadIdProvider in interface BeaconInitializerpublic TimingProvider getTimingProvider()
BeaconInitializerTimingProvider to obtain the current timestamp.getTimingProvider in interface BeaconInitializerpublic RandomNumberGenerator getRandomNumberGenerator()
BeaconInitializerRandomNumberGenerator to obtain random numbers (e.g. for randomizing device IDs)getRandomNumberGenerator in interface BeaconInitializer