Platform SDK Java 8.5 API Reference

com.genesyslab.platform.reporting.protocol.statserver.events
Class EventInfo

java.lang.Object
  extended by com.genesyslab.platform.commons.protocol.DataObject
      extended by com.genesyslab.platform.commons.protocol.Message
          extended by com.genesyslab.platform.reporting.protocol.statserver.events.EventInfo
All Implemented Interfaces:
ProtocolDescriptionSupport

public abstract class EventInfo
extends Message

Returns statistical information that does not concern routing targets. Issued in response to RequestOpenStatistic, RequestOpenStatisticEx, RequestGetStatistic, RequestGetStatisticEx, or RequestPeekStatistic.

Selected Properties:

Name Description
ReferenceId ReferenceId of the RequestOpenStatistic, RequestOpenStatisticEx, RequestGetStatistic, RequestGetStatisticEx, RequestPeekStatistic that was used to request the statistic.
IntValue Int value of the statistic.
StringValue String value of the statistic.
Tag User reference ID.

Related Requests:
Name Description
RequestGetStatistic Requests one-time notification about a particular predefined statistic.
RequestGetStatisticEx Requests one-time notification about a statistic that is defined in the request.
RequestOpenStatistic Requests that Stat Server start sending information about a predefined statistics.
RequestOpenStatisticEx Requests that Stat Server start sending information about a statistics that is defined in the request.
RequestPeekStatistic Requests immediate recalculation and transmission of the value of a previously opened statistic.

Example:
Here is a sample of the console output for a typical request. Note that the property names used by the Stat Server are different from those used by Platform SDK. The table below gives naming equivalents for the most important properties.

 'EventInfo' ('2')
 message attributes:
 REQ_ID [int]    = 2
 USER_REQ_ID [int] = -1
 TM_SERVER [int] = 1245879453
 TM_LENGTH [int] = 52653
 LONG_VALUE [int] = 0
 STRING_VALUE [str] = "0"
 
Selected Property Naming Equivalents for Stat Server and Platform SDK:
Stat Server Name Platform SDK Name
REQ_ID ReferenceId
LONG_VALUE IntValue
STRING_VALUE StringValue
USER_REQ_ID Tag


Field Summary
static int ID
           
static java.lang.String NAME
           
 
Method Summary
static EventInfo create()
          Creates instance of EventInfo with no parameters set.
static EventInfo create(java.lang.Integer timestamp, java.lang.Integer intervalLength, java.lang.Integer intValue)
          Creates instance of EventInfo with required parameters set.
static EventInfo create(java.lang.Integer tag, java.lang.Integer timestamp, java.lang.Integer intervalLength, java.lang.Integer intValue, java.lang.String stringValue, byte[] deltaValue, IStatisticStatus stateValue)
          Creates instance of EventInfo with all parameters set.
abstract  byte[] getDeltaValue()
           
abstract  java.lang.Integer getIntervalLength()
          Interval length for historical statistics.
abstract  java.lang.Integer getIntValue()
          Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.
abstract  java.lang.Integer getReferenceId()
          A unique integer that is specified for identification of requested statistics.
abstract  IStatisticStatus getStateValue()
           
abstract  java.lang.String getStringValue()
           
abstract  java.lang.Integer getTag()
          User reference ID.
abstract  java.lang.Integer getTimestamp()
           
abstract  void setDeltaValue(byte[] deltaValue)
           
abstract  void setIntervalLength(int intervalLength)
          Interval length for historical statistics.
abstract  void setIntervalLength(java.lang.Integer intervalLength)
          Interval length for historical statistics.
abstract  void setIntValue(int intValue)
          Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.
abstract  void setIntValue(java.lang.Integer intValue)
          Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.
abstract  void setReferenceId(int referenceId)
          A unique integer that is specified for identification of requested statistics.
abstract  void setReferenceId(java.lang.Integer referenceId)
          A unique integer that is specified for identification of requested statistics.
abstract  void setStateValue(IStatisticStatus stateValue)
           
abstract  void setStringValue(java.lang.String stringValue)
           
abstract  void setTag(int tag)
          User reference ID.
abstract  void setTag(java.lang.Integer tag)
          User reference ID.
abstract  void setTimestamp(int timestamp)
           
abstract  void setTimestamp(java.lang.Integer timestamp)
           
 
Methods inherited from class com.genesyslab.platform.commons.protocol.Message
cloneMessage, getEndpoint, getMessageAttribute, getProtocolDescription, getProtocolId, messageId, messageName, setProtocolDescription
 
Methods inherited from class com.genesyslab.platform.commons.protocol.DataObject
equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final int ID
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

create

public static EventInfo create()
Creates instance of EventInfo with no parameters set.

Returns:
instance of EventInfo

create

public static EventInfo create(java.lang.Integer tag,
                               java.lang.Integer timestamp,
                               java.lang.Integer intervalLength,
                               java.lang.Integer intValue,
                               java.lang.String stringValue,
                               byte[] deltaValue,
                               IStatisticStatus stateValue)
Creates instance of EventInfo with all parameters set.

Parameters:
tag - Tag
timestamp - Timestamp
intervalLength - IntervalLength
intValue - IntValue
stringValue - StringValue
deltaValue - DeltaValue
stateValue - StateValue
Returns:
instance of EventInfo

create

public static EventInfo create(java.lang.Integer timestamp,
                               java.lang.Integer intervalLength,
                               java.lang.Integer intValue)
Creates instance of EventInfo with required parameters set.

Parameters:
timestamp - Timestamp
intervalLength - IntervalLength
intValue - IntValue
Returns:
instance of EventInfo

getReferenceId

public abstract java.lang.Integer getReferenceId()
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


setReferenceId

public abstract void setReferenceId(java.lang.Integer referenceId)
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


setReferenceId

public abstract void setReferenceId(int referenceId)
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


getTag

public abstract java.lang.Integer getTag()
User reference ID.


setTag

public abstract void setTag(java.lang.Integer tag)
User reference ID.


setTag

public abstract void setTag(int tag)
User reference ID.


getTimestamp

public abstract java.lang.Integer getTimestamp()

setTimestamp

public abstract void setTimestamp(java.lang.Integer timestamp)

setTimestamp

public abstract void setTimestamp(int timestamp)

getIntervalLength

public abstract java.lang.Integer getIntervalLength()
Interval length for historical statistics.


setIntervalLength

public abstract void setIntervalLength(java.lang.Integer intervalLength)
Interval length for historical statistics.


setIntervalLength

public abstract void setIntervalLength(int intervalLength)
Interval length for historical statistics.


getIntValue

public abstract java.lang.Integer getIntValue()
Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.


setIntValue

public abstract void setIntValue(java.lang.Integer intValue)
Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.


setIntValue

public abstract void setIntValue(int intValue)
Specifies which type of profile information (statistical types, time profiles, time ranges, or filters) will be returned from a RequestGetStatisticProfile.


getStringValue

public abstract java.lang.String getStringValue()

setStringValue

public abstract void setStringValue(java.lang.String stringValue)

getDeltaValue

public abstract byte[] getDeltaValue()

setDeltaValue

public abstract void setDeltaValue(byte[] deltaValue)

getStateValue

public abstract IStatisticStatus getStateValue()

setStateValue

public abstract void setStateValue(IStatisticStatus stateValue)

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.