de.tubs.macs.control
Class SegmentData

java.lang.Object
  |
  +--de.tubs.macs.control.SegmentData

public class SegmentData
extends java.lang.Object
implements java.io.Serializable

Infos about an segment. Objects of this class will be stored in SessionData.segments

See Also:
Serialized Form

Field Summary
 NetAddress address
          the NetAddress of the segment
 int priority
          The priority value, used by clients when choosing a server if using SERVER_PRIORITY strategy.
 
Constructor Summary
SegmentData(NetAddress address)
           
SegmentData(NetAddress address, int priority)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public NetAddress address
the NetAddress of the segment

priority

public int priority
The priority value, used by clients when choosing a server if using SERVER_PRIORITY strategy. The client will choose the server with the heighest value. The calculation of this value depends on the strategy used. (number of users, processing power, network bandwith ...)
Constructor Detail

SegmentData

public SegmentData(NetAddress address)

SegmentData

public SegmentData(NetAddress address,
                   int priority)