Package com.opencloud.sentinel.multileg
Class LegState
- java.lang.Object
-
- com.opencloud.sentinel.multileg.LegState
-
- All Implemented Interfaces:
com.opencloud.rhino.cmp.Encodable
public class LegState extends java.lang.Object implements com.opencloud.rhino.cmp.Encodable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.DataOutput out, com.opencloud.rhino.cmp.codecs.EncoderUtils utils)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.lang.String>
getAdditionalTrackedAttributes()
java.util.Set<java.lang.String>
getAdditionalTrackingKeys()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getCommittedSdp()
java.lang.Long
getCommittedSdpSequenceNumber()
boolean
getHasOutstandingSdpOffer()
InviteSessionPhase
getInviteSessionPhase()
java.lang.Long
getLastTrackingDataChangeTime()
java.lang.Long
getLatestMessageTimestamp()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getLatestReceivedSdp()
java.lang.Long
getLatestReceivedSdpSequenceNumber()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getLatestSentSdp()
java.lang.Long
getLatestSentSdpSequenceNumber()
java.lang.String
getLegName()
SipLegType
getLegType()
java.util.Set<ReliableResponseID>
getOutstandingReliableResponses()
com.google.common.collect.LinkedListMultimap<java.lang.String,java.lang.Long>
getOutstandingTransactionsByMethodSet()
Map of CSeq numbers and their request methods representing transactions in progress.java.lang.String
getOwner()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getPreviousCommittedSdp()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getPreviousReceivedSdp()
java.lang.Long
getPreviousReceivedSdpSequenceNumber()
com.opencloud.sentinel.sdp.SessionDescriptionWrapper
getPreviousSentSdp()
java.lang.Long
getPreviousSentSdpSequenceNumber()
java.lang.Boolean
getSuspended()
java.lang.Boolean
getTrackingEnabled()
java.lang.Boolean
getWaitForTrackingResultEnabled()
int
hashCode()
void
setAdditionalTrackedAttributes(java.util.Map<java.lang.String,java.lang.String> additionalTrackedAttributes)
void
setAdditionalTrackingKeys(java.util.Set<java.lang.String> additionalTrackingKeys)
void
setCommittedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper committedSdp)
void
setCommittedSdpSequenceNumber(java.lang.Long committedSdpSequenceNumber)
void
setHasOutstandingSdpOffer(boolean hasOutstandingSdpOffer)
void
setInviteSessionPhase(InviteSessionPhase inviteSessionPhase)
void
setLastTrackingDataChangeTime(java.lang.Long lastTrackingDataChangeTime)
void
setLatestMessageTimestamp(java.lang.Long latestMessageTimestamp)
void
setLatestReceivedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper latestReceivedSdp)
void
setLatestReceivedSdpSequenceNumber(java.lang.Long latestReceivedSdpSequenceNumber)
void
setLatestSentSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper latestSentSdp)
void
setLatestSentSdpSequenceNumber(java.lang.Long latestSentSdpSequenceNumber)
void
setLegName(java.lang.String legName)
void
setLegType(SipLegType legType)
void
setOutstandingReliableResponses(java.util.Set<ReliableResponseID> outstandingReliableResponses)
void
setOutstandingTransactionsByMethodSet(com.google.common.collect.LinkedListMultimap<java.lang.String,java.lang.Long> outstandingTransactionsByMethodSet)
void
setOwner(java.lang.String owner)
void
setPreviousCommittedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousCommittedSdp)
void
setPreviousReceivedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousReceivedSdp)
void
setPreviousReceivedSdpSequenceNumber(java.lang.Long previousReceivedSdpSequenceNumber)
void
setPreviousSentSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousSentSdp)
void
setPreviousSentSdpSequenceNumber(java.lang.Long previousSentSdpSequenceNumber)
void
setSuspended(java.lang.Boolean suspended)
void
setTrackingEnabled(java.lang.Boolean trackingEnabled)
void
setWaitForTrackingResultEnabled(java.lang.Boolean waitForTrackingResultEnabled)
java.lang.String
toString()
-
-
-
Method Detail
-
encode
public void encode(java.io.DataOutput out, com.opencloud.rhino.cmp.codecs.EncoderUtils utils) throws java.io.IOException
- Specified by:
encode
in interfacecom.opencloud.rhino.cmp.Encodable
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getLegName
public java.lang.String getLegName()
-
setLegName
public void setLegName(java.lang.String legName)
-
getLegType
public SipLegType getLegType()
-
setLegType
public void setLegType(SipLegType legType)
-
getCommittedSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getCommittedSdp()
-
setCommittedSdp
public void setCommittedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper committedSdp)
-
getLatestReceivedSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getLatestReceivedSdp()
-
setLatestReceivedSdp
public void setLatestReceivedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper latestReceivedSdp)
-
getLatestSentSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getLatestSentSdp()
-
setLatestSentSdp
public void setLatestSentSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper latestSentSdp)
-
getPreviousCommittedSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getPreviousCommittedSdp()
-
setPreviousCommittedSdp
public void setPreviousCommittedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousCommittedSdp)
-
getPreviousReceivedSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getPreviousReceivedSdp()
-
setPreviousReceivedSdp
public void setPreviousReceivedSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousReceivedSdp)
-
getPreviousSentSdp
public com.opencloud.sentinel.sdp.SessionDescriptionWrapper getPreviousSentSdp()
-
setPreviousSentSdp
public void setPreviousSentSdp(com.opencloud.sentinel.sdp.SessionDescriptionWrapper previousSentSdp)
-
getCommittedSdpSequenceNumber
public java.lang.Long getCommittedSdpSequenceNumber()
-
setCommittedSdpSequenceNumber
public void setCommittedSdpSequenceNumber(java.lang.Long committedSdpSequenceNumber)
-
getLatestReceivedSdpSequenceNumber
public java.lang.Long getLatestReceivedSdpSequenceNumber()
-
setLatestReceivedSdpSequenceNumber
public void setLatestReceivedSdpSequenceNumber(java.lang.Long latestReceivedSdpSequenceNumber)
-
getLatestSentSdpSequenceNumber
public java.lang.Long getLatestSentSdpSequenceNumber()
-
setLatestSentSdpSequenceNumber
public void setLatestSentSdpSequenceNumber(java.lang.Long latestSentSdpSequenceNumber)
-
getPreviousReceivedSdpSequenceNumber
public java.lang.Long getPreviousReceivedSdpSequenceNumber()
-
setPreviousReceivedSdpSequenceNumber
public void setPreviousReceivedSdpSequenceNumber(java.lang.Long previousReceivedSdpSequenceNumber)
-
getPreviousSentSdpSequenceNumber
public java.lang.Long getPreviousSentSdpSequenceNumber()
-
setPreviousSentSdpSequenceNumber
public void setPreviousSentSdpSequenceNumber(java.lang.Long previousSentSdpSequenceNumber)
-
getOutstandingReliableResponses
public java.util.Set<ReliableResponseID> getOutstandingReliableResponses()
-
setOutstandingReliableResponses
public void setOutstandingReliableResponses(java.util.Set<ReliableResponseID> outstandingReliableResponses)
-
getHasOutstandingSdpOffer
public boolean getHasOutstandingSdpOffer()
-
setHasOutstandingSdpOffer
public void setHasOutstandingSdpOffer(boolean hasOutstandingSdpOffer)
-
getLatestMessageTimestamp
public java.lang.Long getLatestMessageTimestamp()
-
setLatestMessageTimestamp
public void setLatestMessageTimestamp(java.lang.Long latestMessageTimestamp)
-
getSuspended
public java.lang.Boolean getSuspended()
-
setSuspended
public void setSuspended(java.lang.Boolean suspended)
-
getOutstandingTransactionsByMethodSet
public com.google.common.collect.LinkedListMultimap<java.lang.String,java.lang.Long> getOutstandingTransactionsByMethodSet()
Map of CSeq numbers and their request methods representing transactions in progress.When a request is received it is added the map of sequence/method combinations and removed from the map when the corresponding sequence/method response is received.
For example:
----INVITE 112 ---> map.add(INVITE, 112), in progress ----183 Ringing --> ignored as not a 2xx and above <---PRACK 112 1 --> map.add(PRACK, 112-1), in progress ----200 112 1 --> map.remove(PRACK, 112-1) not in progress ----180 --> ignored as not a 2xx and above <---PRACK 112 2 --> map.add(PRACK, 112-2) ----200 112 2 --> map.remove(PRACK, 112-2) ----200 112 --> map.remove(INVITE, 112)
-
setOutstandingTransactionsByMethodSet
public void setOutstandingTransactionsByMethodSet(com.google.common.collect.LinkedListMultimap<java.lang.String,java.lang.Long> outstandingTransactionsByMethodSet)
-
getTrackingEnabled
public java.lang.Boolean getTrackingEnabled()
-
setTrackingEnabled
public void setTrackingEnabled(java.lang.Boolean trackingEnabled)
-
getWaitForTrackingResultEnabled
public java.lang.Boolean getWaitForTrackingResultEnabled()
-
setWaitForTrackingResultEnabled
public void setWaitForTrackingResultEnabled(java.lang.Boolean waitForTrackingResultEnabled)
-
getAdditionalTrackingKeys
public java.util.Set<java.lang.String> getAdditionalTrackingKeys()
-
setAdditionalTrackingKeys
public void setAdditionalTrackingKeys(java.util.Set<java.lang.String> additionalTrackingKeys)
-
getAdditionalTrackedAttributes
public java.util.Map<java.lang.String,java.lang.String> getAdditionalTrackedAttributes()
-
setAdditionalTrackedAttributes
public void setAdditionalTrackedAttributes(java.util.Map<java.lang.String,java.lang.String> additionalTrackedAttributes)
-
getOwner
public java.lang.String getOwner()
-
setOwner
public void setOwner(java.lang.String owner)
-
getLastTrackingDataChangeTime
public java.lang.Long getLastTrackingDataChangeTime()
-
setLastTrackingDataChangeTime
public void setLastTrackingDataChangeTime(java.lang.Long lastTrackingDataChangeTime)
-
getInviteSessionPhase
public InviteSessionPhase getInviteSessionPhase()
-
setInviteSessionPhase
public void setInviteSessionPhase(InviteSessionPhase inviteSessionPhase)
-
-