|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.discovery.topics.Entity
public class Entity
Entity can be used to create topics Created on Apr 11, 2005
| Field Summary | |
|---|---|
static String |
NEW_TOPIC_PLACEHOLDER
|
| Constructor Summary | |
|---|---|
Entity(int clientEntityId,
String configFile,
String id,
Certificate cred,
PrivateKey priv,
PublicKey rootCAPubKey,
String brokerHost,
String brokerPort,
String brokerConnProtocol)
|
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
createTopic(String creatorInfo,
Calendar lifetime,
String topicInfo,
int synopsisType,
String topicSynopsis,
Vector authorizedUsers,
int timeout)
Utility function to create a topic. |
SignedTopicAdvertisement |
getSignedTopicAdvertisement(String topicSynopsis)
Returns the signed topic advertisement corresponding to the specified topic synopsis |
String |
getTopicUUID(String topicSynopsis)
Returns the topic's UUID corresponding to the specified topic synopsis |
static void |
main(String[] args)
|
void |
onEvent(NBEvent nbEvent)
Process recieved events |
boolean |
selectTDN()
Selects a TDN from the list of available TDN's. |
void |
send(String topicName,
byte[] request)
Publishes the specified request(bytes) on the specifed topic |
boolean |
sendTDNDiscoveryRequest(int timeout)
Broadcasts a TDN discovery request on a predefined topic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NEW_TOPIC_PLACEHOLDER
| Constructor Detail |
|---|
public Entity(int clientEntityId,
String configFile,
String id,
Certificate cred,
PrivateKey priv,
PublicKey rootCAPubKey,
String brokerHost,
String brokerPort,
String brokerConnProtocol)
clientEntityId - -
An int reflecting the id of this client (in this JVM)configFile - -
Path to ServiceConfiguration.txt fileid - -
Id of this Entity (alias used to identify the key in the
keystore)brokerHost - -
Host to connect tobrokerPort - -
PortbrokerConnProtocol - -
Protocol to use| Method Detail |
|---|
public boolean sendTDNDiscoveryRequest(int timeout)
timeout - TODO
public void close()
public boolean createTopic(String creatorInfo,
Calendar lifetime,
String topicInfo,
int synopsisType,
String topicSynopsis,
Vector authorizedUsers,
int timeout)
creatorInfo - lifetime - topicInfo - synopsisType - topicSynopsis - public String getTopicUUID(String topicSynopsis)
topicSynopsis -
public SignedTopicAdvertisement getSignedTopicAdvertisement(String topicSynopsis)
topicSynopsis -
public boolean selectTDN()
public void send(String topicName,
byte[] request)
topicName - -
The topic to which the request must be publishedrequest - -
The request to be published (in bytes)public void onEvent(NBEvent nbEvent)
onEvent in interface NBEventListenerNBEventListener.onEvent(cgl.narada.event.NBEvent)public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||