|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
BlackMesaService is the interface used to perform knowledgebase sessions on behalf of BlackMesaClients. Creation date: (04/06/01 1:17:22 PM)
Method Summary | |
boolean |
broadcast(java.rmi.server.ObjID from,
java.lang.String mtag,
java.lang.Object data)
Broadcast a message to all known clients. |
java.rmi.server.ObjID |
execute(InfoSapientClient interestedClient,
java.util.Properties goalProperties)
Used by a InfoSapientClient to initiate a knowledgebase session by starting a new thread. |
boolean |
register(java.rmi.server.ObjID i,
InfoSapientClient c)
Register this client with the service. |
boolean |
remove(InfoSapientClient c)
Remove this client from the registry. |
boolean |
send(java.rmi.server.ObjID to,
java.rmi.server.ObjID from,
java.lang.String mtag,
java.lang.Object data)
Send a message from a client, to another client. |
Method Detail |
public boolean broadcast(java.rmi.server.ObjID from, java.lang.String mtag, java.lang.Object data) throws java.io.IOException, java.rmi.RemoteException
from
- - ObjID - unique identifier from whom the message is frommtag
- - String - arbitrary message identifier (implementation dependent)data
- - Object - message object.public java.rmi.server.ObjID execute(InfoSapientClient interestedClient, java.util.Properties goalProperties) throws java.rmi.RemoteException
InfoSapientClient
- - the client that wishes to start a kb sessionProperties
- - the properties object that contains the Knowledgebase, the goal, and supporting attribute values.public boolean register(java.rmi.server.ObjID i, InfoSapientClient c) throws java.rmi.RemoteException
java.rmi.server.ObjID
- - the identifier of the interested client.InfoSapientClient
- - the interested clientpublic boolean remove(InfoSapientClient c) throws java.rmi.RemoteException
InfoSapientClient
- - the client to be removed.public boolean send(java.rmi.server.ObjID to, java.rmi.server.ObjID from, java.lang.String mtag, java.lang.Object data) throws java.io.IOException, java.rmi.RemoteException
java.rmi.server.ObjID
- to - the recipient clientjava.rmi.server.ObjID
- from - the sending clientString
- - mtag - the arbitrary message tag.Object
- - data - the message object. (Implementations decide what that object is.)
|
License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |