Interface TraceData
-
- All Superinterfaces:
Cloneable
,DiameterAvp
,GroupedAvp
public interface TraceData extends GroupedAvp
Defines an interface representing the Trace-Data grouped AVP type. From the Diameter Gx Reference Point Protocol Details (3GPP TS 29.212 V10.1.0) specification:7.3.63 Trace-Data The Trace-Data AVP is of type Grouped. This AVP shall contain the information related to trace function. AVP format: Trace-Data ::= < AVP Header: 1458 10415 > {Trace-Reference} {Trace-Depth} {Trace-NE-Type-List} [Trace-Interface-List] {Trace-Event-List} [OMC-Id] {Trace-Collection-Entity} [MDT-Configuration] *[AVP]
-
-
Field Summary
-
Fields inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.MdtConfiguration
getMdtConfiguration()
Returns the value of the MDT-Configuration AVP, of type Grouped.byte[]
getOmcId()
Returns the value of the OMC-Id AVP, of type OctetString.Address
getTraceCollectionEntity()
Returns the value of the Trace-Collection-Entity AVP, of type Address.TraceDepth
getTraceDepth()
Returns the value of the Trace-Depth AVP, of type Enumerated.byte[]
getTraceEventList()
Returns the value of the Trace-Event-List AVP, of type OctetString.byte[]
getTraceInterfaceList()
Returns the value of the Trace-Interface-List AVP, of type OctetString.byte[]
getTraceNeTypeList()
Returns the value of the Trace-NE-Type-List AVP, of type OctetString.byte[]
getTraceReference()
Returns the value of the Trace-Reference AVP, of type OctetString.boolean
hasMdtConfiguration()
Returns true if the MDT-Configuration AVP is present in the Trace-Data AVP.boolean
hasOmcId()
Returns true if the OMC-Id AVP is present in the Trace-Data AVP.boolean
hasTraceCollectionEntity()
Returns true if the Trace-Collection-Entity AVP is present in the Trace-Data AVP.boolean
hasTraceDepth()
Returns true if the Trace-Depth AVP is present in the Trace-Data AVP.boolean
hasTraceEventList()
Returns true if the Trace-Event-List AVP is present in the Trace-Data AVP.boolean
hasTraceInterfaceList()
Returns true if the Trace-Interface-List AVP is present in the Trace-Data AVP.boolean
hasTraceNeTypeList()
Returns true if the Trace-NE-Type-List AVP is present in the Trace-Data AVP.boolean
hasTraceReference()
Returns true if the Trace-Reference AVP is present in the Trace-Data AVP.void
removeExtensionAvps()
Removes all extension AVPs from the Trace-Data AVP.void
removeMdtConfiguration()
Removes the MDT-Configuration AVP from the Trace-Data AVP.void
removeOmcId()
Removes the OMC-Id AVP from the Trace-Data AVP.void
removeTraceCollectionEntity()
Removes the Trace-Collection-Entity AVP from the Trace-Data AVP.void
removeTraceDepth()
Removes the Trace-Depth AVP from the Trace-Data AVP.void
removeTraceEventList()
Removes the Trace-Event-List AVP from the Trace-Data AVP.void
removeTraceInterfaceList()
Removes the Trace-Interface-List AVP from the Trace-Data AVP.void
removeTraceNeTypeList()
Removes the Trace-NE-Type-List AVP from the Trace-Data AVP.void
removeTraceReference()
Removes the Trace-Reference AVP from the Trace-Data AVP.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setMdtConfiguration(MdtConfiguration mdtConfiguration)
Sets the value of the MDT-Configuration AVP, of type Grouped.void
setOmcId(byte[] omcId)
Sets the value of the OMC-Id AVP, of type OctetString.void
setTraceCollectionEntity(Address traceCollectionEntity)
Sets the value of the Trace-Collection-Entity AVP, of type Address.void
setTraceDepth(TraceDepth traceDepth)
Sets the value of the Trace-Depth AVP, of type Enumerated.void
setTraceEventList(byte[] traceEventList)
Sets the value of the Trace-Event-List AVP, of type OctetString.void
setTraceInterfaceList(byte[] traceInterfaceList)
Sets the value of the Trace-Interface-List AVP, of type OctetString.void
setTraceNeTypeList(byte[] traceNeTypeList)
Sets the value of the Trace-NE-Type-List AVP, of type OctetString.void
setTraceReference(byte[] traceReference)
Sets the value of the Trace-Reference AVP, of type OctetString.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
-
-
-
-
Method Detail
-
hasTraceReference
boolean hasTraceReference()
Returns true if the Trace-Reference AVP is present in the Trace-Data AVP.
-
getTraceReference
byte[] getTraceReference()
Returns the value of the Trace-Reference AVP, of type OctetString.- Returns:
- the value of the Trace-Reference AVP, or null if it has not been set.
-
setTraceReference
void setTraceReference(byte[] traceReference)
Sets the value of the Trace-Reference AVP, of type OctetString.- Throws:
NullPointerException
- iftraceReference
isnull
.
-
removeTraceReference
void removeTraceReference()
Removes the Trace-Reference AVP from the Trace-Data AVP. If the Trace-Reference AVP is not present, this method returns silently.
-
hasTraceDepth
boolean hasTraceDepth()
Returns true if the Trace-Depth AVP is present in the Trace-Data AVP.
-
getTraceDepth
TraceDepth getTraceDepth()
Returns the value of the Trace-Depth AVP, of type Enumerated.- Returns:
- the value of the Trace-Depth AVP, or null if it has not been set.
-
setTraceDepth
void setTraceDepth(TraceDepth traceDepth)
Sets the value of the Trace-Depth AVP, of type Enumerated.- Throws:
NullPointerException
- iftraceDepth
isnull
.
-
removeTraceDepth
void removeTraceDepth()
Removes the Trace-Depth AVP from the Trace-Data AVP. If the Trace-Depth AVP is not present, this method returns silently.
-
hasTraceNeTypeList
boolean hasTraceNeTypeList()
Returns true if the Trace-NE-Type-List AVP is present in the Trace-Data AVP.
-
getTraceNeTypeList
byte[] getTraceNeTypeList()
Returns the value of the Trace-NE-Type-List AVP, of type OctetString.- Returns:
- the value of the Trace-NE-Type-List AVP, or null if it has not been set.
-
setTraceNeTypeList
void setTraceNeTypeList(byte[] traceNeTypeList)
Sets the value of the Trace-NE-Type-List AVP, of type OctetString.- Throws:
NullPointerException
- iftraceNeTypeList
isnull
.
-
removeTraceNeTypeList
void removeTraceNeTypeList()
Removes the Trace-NE-Type-List AVP from the Trace-Data AVP. If the Trace-NE-Type-List AVP is not present, this method returns silently.
-
hasTraceInterfaceList
boolean hasTraceInterfaceList()
Returns true if the Trace-Interface-List AVP is present in the Trace-Data AVP.
-
getTraceInterfaceList
byte[] getTraceInterfaceList()
Returns the value of the Trace-Interface-List AVP, of type OctetString.- Returns:
- the value of the Trace-Interface-List AVP, or null if it has not been set.
-
setTraceInterfaceList
void setTraceInterfaceList(byte[] traceInterfaceList)
Sets the value of the Trace-Interface-List AVP, of type OctetString.- Throws:
NullPointerException
- iftraceInterfaceList
isnull
.
-
removeTraceInterfaceList
void removeTraceInterfaceList()
Removes the Trace-Interface-List AVP from the Trace-Data AVP. If the Trace-Interface-List AVP is not present, this method returns silently.
-
hasTraceEventList
boolean hasTraceEventList()
Returns true if the Trace-Event-List AVP is present in the Trace-Data AVP.
-
getTraceEventList
byte[] getTraceEventList()
Returns the value of the Trace-Event-List AVP, of type OctetString.- Returns:
- the value of the Trace-Event-List AVP, or null if it has not been set.
-
setTraceEventList
void setTraceEventList(byte[] traceEventList)
Sets the value of the Trace-Event-List AVP, of type OctetString.- Throws:
NullPointerException
- iftraceEventList
isnull
.
-
removeTraceEventList
void removeTraceEventList()
Removes the Trace-Event-List AVP from the Trace-Data AVP. If the Trace-Event-List AVP is not present, this method returns silently.
-
hasOmcId
boolean hasOmcId()
Returns true if the OMC-Id AVP is present in the Trace-Data AVP.
-
getOmcId
byte[] getOmcId()
Returns the value of the OMC-Id AVP, of type OctetString.- Returns:
- the value of the OMC-Id AVP, or null if it has not been set.
-
setOmcId
void setOmcId(byte[] omcId)
Sets the value of the OMC-Id AVP, of type OctetString.- Throws:
NullPointerException
- ifomcId
isnull
.
-
removeOmcId
void removeOmcId()
Removes the OMC-Id AVP from the Trace-Data AVP. If the OMC-Id AVP is not present, this method returns silently.
-
hasTraceCollectionEntity
boolean hasTraceCollectionEntity()
Returns true if the Trace-Collection-Entity AVP is present in the Trace-Data AVP.
-
getTraceCollectionEntity
Address getTraceCollectionEntity()
Returns the value of the Trace-Collection-Entity AVP, of type Address.- Returns:
- the value of the Trace-Collection-Entity AVP, or null if it has not been set.
-
setTraceCollectionEntity
void setTraceCollectionEntity(Address traceCollectionEntity)
Sets the value of the Trace-Collection-Entity AVP, of type Address.- Throws:
NullPointerException
- iftraceCollectionEntity
isnull
.
-
removeTraceCollectionEntity
void removeTraceCollectionEntity()
Removes the Trace-Collection-Entity AVP from the Trace-Data AVP. If the Trace-Collection-Entity AVP is not present, this method returns silently.
-
hasMdtConfiguration
boolean hasMdtConfiguration()
Returns true if the MDT-Configuration AVP is present in the Trace-Data AVP.
-
getMdtConfiguration
MdtConfiguration getMdtConfiguration()
Returns the value of the MDT-Configuration AVP, of type Grouped.- Returns:
- the value of the MDT-Configuration AVP, or null if it has not been set.
-
setMdtConfiguration
void setMdtConfiguration(MdtConfiguration mdtConfiguration)
Sets the value of the MDT-Configuration AVP, of type Grouped.- Throws:
NullPointerException
- ifmdtConfiguration
isnull
.
-
removeMdtConfiguration
void removeMdtConfiguration()
Removes the MDT-Configuration AVP from the Trace-Data AVP. If the MDT-Configuration AVP is not present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the Trace-Data AVP. A return value of null implies that no extensions AVPs have been set.
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to Trace-Data AVP in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class (i.e. an AVP for which get/set methods already appear in this class)NullPointerException
- ifavps
isnull
.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the Trace-Data AVP. If no extension AVPs are present, this method returns silently.
-
-