uk.ac.ic.doc.automed.p2p
Class AutoMedMessagingHelper
java.lang.Object
uk.ac.ic.doc.automed.p2p.AutoMedMessagingHelper
public class AutoMedMessagingHelper
- extends java.lang.Object
|
Method Summary |
void |
clear()
|
void |
createMessagingClient(java.lang.String operationType,
boolean ackExpected)
Create a one-off client to send a message to server (no thread is needed) |
void |
createResidentMessagingClient(java.lang.String name,
java.lang.String operationType,
java.lang.String protocol,
boolean ackExpected)
Create a new messanging client using a specified protocol which runs periodically in memory
|
void |
stopAll()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoMedMessagingHelper
public AutoMedMessagingHelper(AutoMedPeer mainPeer)
- Creates a new instance of AutoMedMessagingHelper
createResidentMessagingClient
public void createResidentMessagingClient(java.lang.String name,
java.lang.String operationType,
java.lang.String protocol,
boolean ackExpected)
throws AutoMedException
- Create a new messanging client using a specified protocol which runs periodically in memory
- Parameters:
name - name given to the clientoperationType - the type of operation the client is to pursueprotocol - one of the protocol constants (see Constants class)
with which this client is to useackExpected - whether to expecte acknowledgement response from other side
- Throws:
AutoMedException
createMessagingClient
public void createMessagingClient(java.lang.String operationType,
boolean ackExpected)
throws AutoMedException
- Create a one-off client to send a message to server (no thread is needed)
- Throws:
AutoMedException
stopAll
public void stopAll()
clear
public void clear()