org.codehaus.wadi.location.partitionmanager.remote
Class RemotePartition
java.lang.Object
org.codehaus.wadi.location.partitionmanager.AbstractPartition
org.codehaus.wadi.location.partitionmanager.remote.RemotePartition
- All Implemented Interfaces:
- Partition
public class RemotePartition
- extends AbstractPartition
- Version:
- $Revision:1815 $
- Author:
- Jules Gosnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RemotePartition
public RemotePartition(int key,
Dispatcher dispatcher,
Peer peer)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isLocal
public boolean isLocal()
- Returns:
- whether or not this is a LocalPartition
onMessage
public void onMessage(Envelope message,
InsertIMToPM request)
- Description copied from interface:
Partition
- A Peer has created a Session...
onMessage
public void onMessage(Envelope message,
DeleteIMToPM request)
- Description copied from interface:
Partition
- A Peer has destroyed a Session...
onMessage
public void onMessage(Envelope message,
EvacuateIMToPM request)
- Description copied from interface:
Partition
- A Peer wishes to evacuate a Session...
onMessage
public void onMessage(Envelope message,
MoveIMToPM request)
- Description copied from interface:
Partition
- A Peer has an Invocation for a Session of which it is not the owner...
exchange
public Envelope exchange(SessionRequestMessage request,
long timeout)
throws MessageExchangeException
- Description copied from interface:
Partition
- Send a message/request to the Partition and wait for a message/response...
- Parameters:
request
- The requesttimeout
- The number of milliseconds to wait for a response
- Returns:
- the response
- Throws:
MessageExchangeException
Copyright © 2010. All Rights Reserved.