Photon Server API
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase Class Reference
Inheritance diagram for ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase:
ExitGames.Diagnostics.Monitoring.Protocol.ICounterSampleWriter ExitGames.Diagnostics.Monitoring.Protocol.Graphite.Text.GraphiteTextWriter ExitGames.Diagnostics.Monitoring.Protocol.Photon.Binary.PhotonBinaryWriter ExitGames.Diagnostics.Monitoring.Protocol.StatsD.Text.StatsDTextWriter ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter

Public Member Functions

virtual void Start (CounterSampleSenderBase sender)
 Start writing. Stop is handled by IDisposable implementation. Can be called once. More...
 
void Dispose ()
 
virtual void Publish (CounterSampleCollection[] packages)
 Called by CounterSampleSenderBase to write samples out to some storage. More...
 
void EnqueueData (byte[] data)
 

Static Public Member Functions

static ISocketSender CreateSender (CounterSampleSenderSettings s)
 

Public Attributes

const int DefaultMaxQueueLength = 120
 
readonly int MaxQueueLength = DefaultMaxQueueLength
 Gets a value indicating how many packages should be enqueued for republishing if an error occurred during publishing. The default value is 120. More...
 
readonly LinkedList< byte[]> SendQueue = new LinkedList<byte[]>()
 

Protected Member Functions

 PhotonBinaryWriterBase (int maxQueueLength, ISocketSender socket)
 
 PhotonBinaryWriterBase (CounterSampleSenderSettings s)
 
virtual void Dispose (bool disposing)
 

Properties

int QueuedDataSize [get]
 Gets the size of the queued data in bytes. More...
 
bool Ready [get]
 
string SenderId [get]
 
- Properties inherited from ExitGames.Diagnostics.Monitoring.Protocol.ICounterSampleWriter
bool Ready [get]
 Is writer ready to publish any data. IsConnected status is subset of this status. Default implementation is writer started and connected. More...
 

Constructor & Destructor Documentation

ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.PhotonBinaryWriterBase ( int  maxQueueLength,
ISocketSender  socket 
)
inlineprotected
ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.PhotonBinaryWriterBase ( CounterSampleSenderSettings  s)
inlineprotected

Member Function Documentation

static ISocketSender ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.CreateSender ( CounterSampleSenderSettings  s)
inlinestatic
void ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.Dispose ( )
inline
virtual void ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.Dispose ( bool  disposing)
inlineprotectedvirtual
void ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.EnqueueData ( byte[]  data)
inline
virtual void ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.Publish ( CounterSampleCollection[]  packages)
inlinevirtual
virtual void ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.Start ( CounterSampleSenderBase  sender)
inlinevirtual

Start writing. Stop is handled by IDisposable implementation. Can be called once.

Implements ExitGames.Diagnostics.Monitoring.Protocol.ICounterSampleWriter.

Reimplemented in ExitGames.Diagnostics.Monitoring.Protocol.InfluxDB090.Graphite.Text.GraphiteTextWriter.

Member Data Documentation

const int ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.DefaultMaxQueueLength = 120
readonly int ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.MaxQueueLength = DefaultMaxQueueLength

Gets a value indicating how many packages should be enqueued for republishing if an error occurred during publishing. The default value is 120.

readonly LinkedList<byte[]> ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.SendQueue = new LinkedList<byte[]>()

Property Documentation

int ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.QueuedDataSize
get

Gets the size of the queued data in bytes.

bool ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.Ready
get
string ExitGames.Diagnostics.Monitoring.Protocol.PhotonBinaryWriterBase.SenderId
get