de.tubs.macs.control.net
Class TestSessionNet
java.lang.Object
|
+--de.tubs.macs.control.net.TestSessionNet
- public class TestSessionNet
- extends java.lang.Object
- implements NetReceiver
This class provides the access to the network with added control
functionality for a session.
|
Field Summary |
static java.lang.String |
DEBUG_KEY
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DEBUG_KEY
public static final java.lang.String DEBUG_KEY
TestSessionNet
public TestSessionNet(Session session,
ObjectID segmentID)
throws NetException
- TestSessionNet
join
public boolean join(User user)
throws NetException
checkStatus
public int checkStatus()
- Check status of SessionNet (goes together with SessionNet(status)
constructor).
receiveObject
public void receiveObject(java.lang.Object object,
Net net)
- Description copied from interface: NetReceiver
- Implement this one to receive objects.
- Specified by:
- receiveObject in interface NetReceiver
- Tags copied from interface: NetReceiver
- Parameters:
object - receivednet - which did receive this object (allows one NetReceiver to be
used for more than one Net)
receiveException
public void receiveException(NetException exception)
- Description copied from interface: NetReceiver
- Implement this one to deal with exceptions.
- Specified by:
- receiveException in interface NetReceiver
- Tags copied from interface: NetReceiver
- Parameters:
exception - received from Net
getType
public java.lang.String getType()
- return the type of Net used.
getTTL
public int getTTL()
- return the ttl of Net used.
applicationAddressHack
public void applicationAddressHack()
- a hack to fix addresses of applications in the session to the same
basic parameters.
sendRequestAndWaitForResponse
public MACSResponse sendRequestAndWaitForResponse(MACSRequest req,
long timeout)