|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Post
This interface represents the Post service layer.
Method Summary | |
---|---|
void |
addClient(PostClient client)
Registers a client with this Post |
void |
announcePresence()
This method announce's the local user's presence via the scribe tree |
void |
getAndVerifyPostLog(Continuation command)
Shortcut which returns the PostLog of the local user. |
java.security.PublicKey |
getCAPublicKey()
Returns the certificate authority's public key. |
PostEntityAddress |
getEntityAddress()
Returns the PostEntityAddress of this Post's local user. |
Environment |
getEnvironment()
Get the rice.environment.Environment. |
void |
getPostLog(Continuation command)
Shortcut which returns the PostLog of the local user. |
void |
getPostLog(PostEntityAddress entity,
Continuation command)
Returns and verifies the PostLog of the named entity |
StorageService |
getStorageService()
This method returns the local storage service. |
void |
joinGroup(PostGroupAddress address,
byte[] key)
This method causes the local POST service to subscribe to the specified address, and use the specified shared key in order to decrypt messages. |
void |
removeClient(PostClient client)
Removes a client from this PostService. |
void |
sendGroup(NotificationMessage message,
Continuation command)
This method multicasts the provided notification message to the destination group. |
void |
sendNotification(NotificationMessage message,
Continuation command)
Sends a notification message with destination specified by the members of the NotificationMessage. |
void |
sendNotificationDirect(NodeHandle handle,
NotificationMessage message,
Continuation command)
Sends a notification message with destination specified by the members of the NotificationMessage. |
Method Detail |
---|
PostEntityAddress getEntityAddress()
java.security.PublicKey getCAPublicKey()
void getPostLog(Continuation command)
void getAndVerifyPostLog(Continuation command)
void getPostLog(PostEntityAddress entity, Continuation command)
StorageService getStorageService()
void addClient(PostClient client)
client
- The client to addvoid removeClient(PostClient client)
client
- The client to removevoid announcePresence()
void sendNotification(NotificationMessage message, Continuation command)
message
- The notification message to be sent. Destination parameters
are encapsulated inside the message object.command
- The command to execute once donevoid sendNotificationDirect(NodeHandle handle, NotificationMessage message, Continuation command)
message
- The notification message to be sent. Destination parameters
are encapsulated inside the message object.command
- The command to execute once donevoid joinGroup(PostGroupAddress address, byte[] key)
address
- The address to joinkey
- The shared key to use (or null, if unencrypted)void sendGroup(NotificationMessage message, Continuation command)
message
- The message to sendcommand
- The command to execute once doneEnvironment getEnvironment()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |