|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzisko.multicastor.program.data.MulticastData
public class MulticastData
Diese Bean-Klasse haellt Informationen ueber einen Multicast. Objekte von dieser Klasse werden dafuer benutzt Multicast- Informationen innerhalb des Programms zu verteilen. !!In dieser Klasse ist keinerlei Logik implementiert!!
Nested Class Summary | |
---|---|
static class |
MulticastData.senderState
|
static class |
MulticastData.Source
|
static class |
MulticastData.Typ
|
Constructor Summary | |
---|---|
MulticastData()
|
Method Summary | |
---|---|
void |
addLostPackets(int lost)
adds lost packets to the lost packets counter |
int |
getAverageInterruptionTime()
returns the average interruption time |
java.net.InetAddress |
getGroupIp()
returns the multicast ip address |
java.lang.String |
getHostID()
returns the host id associated with the dataset receiver: the host id of the sender sender: its host id |
int |
getJitter()
returns the jitter |
long |
getJitterAvg()
returns the average jitter |
int |
getLostPackets()
returns the lost packets |
int |
getMaxInterruptionTime()
returns the maximum interruption time |
byte[] |
getMMRPFromString(java.lang.String s)
returns a MMRP MAC address as byte array |
byte[] |
getMmrpGroupMac()
returns the MMRP multicast MAC address |
java.lang.String |
getMmrpGroupMacAsString()
returns the MMRP multicast MAC address |
byte[] |
getMmrpSourceMac()
returns Layer2 network adapter |
java.lang.String |
getMmrpSourceMacAsString()
returns a Layer2 network adapter as string |
int |
getNumberOfInterruptions()
returns the number of interruptions |
long |
getPacketCount()
returns the packet count |
int |
getPacketLength()
returns the packet length |
int |
getPacketLossPerSecond()
returns the packet loss / sec |
long |
getPacketLossPerSecondAvg()
returns the average packet loss per sec |
long |
getPacketRateAvg()
returns the average packet rate |
int |
getPacketRateDesired()
returns the desired packet rate |
int |
getPacketRateMeasured()
returns the measured packet rate |
MulticastData.Source |
getPacketSource()
returns the packet source |
java.lang.String |
getRandomID()
returns the random id assingt to the dataset |
int |
getReceivedPackets()
returns the received packets counter |
java.lang.String |
getSenderID()
Returns a unique SenderID consisting of the hostID, the threadID and a random number to differentiate between multiple instances |
MulticastData.senderState |
getSenders()
returns the sender state |
java.net.InetAddress |
getSourceIp()
returns the network adapter |
int |
getThreadID()
returns the current thread id of the dataset |
int |
getTraffic()
returns the current traffic |
long |
getTrafficAvg()
returns the average traffic |
int |
getTtl()
returns the time to live |
MulticastData.Typ |
getTyp()
returns the typ (L2/L3 Sender/Receiver) |
int |
getUdpPort()
returns the udp port |
java.lang.String |
identify()
return the type, senderID (hostid, random number, threadid) and mc ip address as String |
boolean |
isActive()
returns whether the dataset is active right now |
void |
resetValues()
sets default values for the MulticastData object |
void |
setActive(boolean active)
sets the active state |
void |
setAverageInterruptionTime(int averageInterruptionTime)
sets the average interruption time |
void |
setGroupIp(java.net.InetAddress groupIp)
sets the multicast ip address |
void |
setHostID(java.lang.String hostID)
sets the host id |
void |
setJitter(int jitter)
sets the jitter |
void |
setJitterAvg(long jitterAvg)
sets the average jitter |
void |
setMaxInterruptionTime(int maxInterruptionTime)
sets the maximum interruption time that is allowed |
void |
setMmrpGroupMac(byte[] mmrpGroupMac)
sets the MMRP MAC address |
void |
setMmrpSourceMac(byte[] mmrpSourceMac)
sets the Layer2 network adapter |
void |
setNumberOfInterruptions(int numberOfInterruptions)
sets the number of interruptions |
void |
setPacketCount(long packetCount)
sets the packet count |
void |
setPacketLength(int packetLength)
sets the packet length |
void |
setPacketLossPerSecond(int packetLossPerSecond)
sets the packet loss / sec |
void |
setPacketLossPerSecondAvg(long packetLossPerSecondAvg)
sets the average packet loss per sec |
void |
setPacketRateAvg(long packetRateAvg)
sets the average packet rate |
void |
setPacketRateDesired(int packetRateDesired)
sets the desired packet rate |
void |
setPacketRateMeasured(int packetRateMeasured)
sets the measured packet rate |
void |
setPacketSource(MulticastData.Source packetSource)
sets the packet source |
void |
setRandomID(java.lang.String randomID)
sets the random id. |
void |
setSenders(MulticastData.senderState senders)
sets the sender state |
void |
setSourceIp(java.net.InetAddress sourceIp)
sets the network adapter |
void |
setThreadID(int threadID)
sets the current thread id |
void |
setTraffic(int traffic)
sets the current traffic |
void |
setTrafficAvg(long trafficAvg)
sets the average traffic |
void |
setTtl(int ttl)
sets the time to live |
void |
setTyp(MulticastData.Typ typ)
sets the type (L2/L3 Receiver/Sender) |
void |
setUdpPort(int udpPort)
sets the udp port |
java.lang.String |
toString()
|
java.lang.String |
toStringConsole()
a string representation of this object - console friendly output |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MulticastData()
Method Detail |
---|
public void resetValues()
public java.net.InetAddress getGroupIp()
public void setGroupIp(java.net.InetAddress groupIp)
groupIp
- the new ip addresspublic java.net.InetAddress getSourceIp()
public void setSourceIp(java.net.InetAddress sourceIp)
sourceIp
- the network adapter to be setpublic int getUdpPort()
public void setUdpPort(int udpPort)
udpPort
- the udp port to be setpublic int getPacketLength()
public void setPacketLength(int packetLength)
packetLength
- the packet length to be setpublic int getTtl()
public void setTtl(int ttl)
ttl
- the time to live to be setpublic int getPacketRateDesired()
public void setPacketRateDesired(int packetRateDesired)
packetRateDesired
- the desired packet rate to be setpublic int getPacketRateMeasured()
public void setPacketRateMeasured(int packetRateMeasured)
packetRateMeasured
- the measured packet rate to be setpublic MulticastData.Typ getTyp()
public void setTyp(MulticastData.Typ typ)
typ
- the type to be setpublic int getThreadID()
public void setThreadID(int threadID)
threadID
- the current thread id to be setpublic java.lang.String getHostID()
public void setHostID(java.lang.String hostID)
hostID
- the host id to be setpublic boolean isActive()
public void setActive(boolean active)
active
- the active statepublic int getNumberOfInterruptions()
public void setNumberOfInterruptions(int numberOfInterruptions)
numberOfInterruptions
- the number of interruptions to be setpublic int getAverageInterruptionTime()
public void setAverageInterruptionTime(int averageInterruptionTime)
averageInterruptionTime
- the average interruption time to be setpublic int getPacketLossPerSecond()
public void setPacketLossPerSecond(int packetLossPerSecond)
packetLossPerSecond
- the packet loss / sec to be setpublic int getJitter()
public void setJitter(int jitter)
jitter
- the jitter to be setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringConsole()
public java.lang.String identify()
public long getPacketRateAvg()
public void setPacketRateAvg(long packetRateAvg)
packetRateAvg
- the average packet rate to be setpublic long getPacketLossPerSecondAvg()
public void setPacketLossPerSecondAvg(long packetLossPerSecondAvg)
packetLossPerSecondAvg
- the average packet loss per sec to be setpublic long getJitterAvg()
public void setJitterAvg(long jitterAvg)
jitterAvg
- the average jitter to be setpublic int getTraffic()
public void setTraffic(int traffic)
traffic
- the current traffic to be setpublic long getTrafficAvg()
public void setTrafficAvg(long trafficAvg)
trafficAvg
- the average traffic to be setpublic long getPacketCount()
public void setPacketCount(long packetCount)
packetCount
- the packet count to be setpublic java.lang.String getSenderID()
public MulticastData.Source getPacketSource()
public void setPacketSource(MulticastData.Source packetSource)
packetSource
- the packet source to be setpublic MulticastData.senderState getSenders()
public void setSenders(MulticastData.senderState senders)
senders
- the sender state to be setpublic void setMaxInterruptionTime(int maxInterruptionTime)
maxInterruptionTime
- the maximum interruption timepublic int getMaxInterruptionTime()
public void addLostPackets(int lost)
lost
- the number of packets added to the lost packets counterpublic int getLostPackets()
public int getReceivedPackets()
public byte[] getMmrpGroupMac()
public java.lang.String getMmrpGroupMacAsString()
public byte[] getMMRPFromString(java.lang.String s) throws java.lang.Exception
s
- String reprensentation of the MAC address
java.lang.Exception
- if string is not a MAC addresspublic java.lang.String getMmrpSourceMacAsString()
public void setMmrpGroupMac(byte[] mmrpGroupMac)
mmrpGroupMac
- a MMRP MAC address as byte arraypublic byte[] getMmrpSourceMac()
public void setMmrpSourceMac(byte[] mmrpSourceMac)
mmrpSourceMac
- layer2 network adapter as byte arraypublic void setRandomID(java.lang.String randomID)
randomID
- random id as Stringpublic java.lang.String getRandomID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |