|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.corona.collaboration.ecf.AbstractTopic
org.eclipse.corona.client.ecf.Topic
public class Topic
The Topic class is used to associate an event topic with an ECF container. For each defined event topic there will be one Topic instance. Each Topic instance will contain a single ECF shared object. The ECF shared object will be used to communicate with other members of the event topic.
Constructor Summary | |
---|---|
Topic(org.osgi.framework.BundleContext context,
java.lang.String protocol,
java.lang.String serverHost,
int serverHostPort,
java.lang.String topicName)
Class constructor. |
Method Summary | |
---|---|
protected void |
createContainer()
Create the shared object container that represents the topic. |
void |
dispose()
Dispose of resources used by the instance of the class. |
protected org.eclipse.ecf.provider.generic.SOContainer |
getContainer()
Get the shared object container that represents the topic. |
void |
sendMessageToServer(java.lang.Object msgObject)
Send message to the server that is hosting this topic. |
Methods inherited from class org.eclipse.corona.collaboration.ecf.AbstractTopic |
---|
addListener, addUser, getContainerID, getMembers, getServerID, getSharedObject, getTopicID, getTopicName, getTopicURL, initTopic, postMessageToTopicListeners, removeListener, removeUser, sendMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Topic(org.osgi.framework.BundleContext context, java.lang.String protocol, java.lang.String serverHost, int serverHostPort, java.lang.String topicName) throws java.lang.Exception
context
- Bundle context for bundle.protocol
- Protocol used for communication.serverHost
- The name/IP address of the server hosting the topics.serverHostPort
- The port the server is listening on.topicName
- The name of the topic.
java.lang.Exception
Method Detail |
---|
protected void createContainer() throws java.lang.Exception
initTopic
method to
create the shared object container.
createContainer
in class AbstractTopic
java.lang.Exception
public void dispose()
dispose
in interface ITopic
dispose
in class AbstractTopic
protected org.eclipse.ecf.provider.generic.SOContainer getContainer()
getContainer
in class AbstractTopic
public void sendMessageToServer(java.lang.Object msgObject) throws java.io.IOException
msgObject
- Message to be send. This object and all container objects must
be serializable.
java.io.IOException
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |