|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dermi.core.DermiConnection
public abstract class DermiConnection
This class wraps a connection to any DHT substrate and is used by Dermi as its main routing substrate.
Field Summary | |
---|---|
protected ActivatorClient |
activatorClient
|
protected ActivatorImpl |
activatorImpl
|
static java.lang.String |
BOOTSTRAP_HOST
|
protected java.lang.String |
configurationFile
|
static java.lang.String |
INSTANCE_NAME
|
protected java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
protected |
DermiConnection(java.lang.Object... args)
|
Method Summary | |
---|---|
void |
addActiveObject(java.lang.String uid,
ERemote ref)
|
abstract void |
addInterceptor(DermiApplicationListener npar,
Id subsKey,
java.lang.String interceptorId)
Method for adding an interceptor to an object group |
abstract void |
anycall(Topic topic,
java.io.Serializable data)
Method for anycalling to a group of objects |
abstract void |
close()
Method for closing a connection, thus killing the node |
boolean |
containsActiveObject(java.lang.String uid)
|
abstract void |
continueInterception(java.util.Hashtable evt,
java.util.ArrayList interceptors)
Method for resuming the interception process. |
ActivatorClient |
getActivator()
This method returns the activator client responsible for the community |
abstract PriorityList |
getComponentHops(java.lang.String uid)
|
abstract Node |
getLocalNode()
Utility method for obtaining the local node |
abstract NodeHandle |
getLocalNodeHandle()
Utility method for obtaining the local node handle |
abstract Id |
getLocalNodeId()
|
abstract java.util.Collection |
getReplicaSet(Id id,
int maxRank)
Returns a set of suitable replica nodes for such Id |
java.util.Collection |
listActiveObjects()
|
void |
loadActivator()
This method loads all activator objects for this Dermi instance, one for each community it is member of |
abstract void |
publish(Topic topic,
java.io.Serializable data)
Method for publishing data |
abstract void |
publishDirect(Topic topic,
java.io.Serializable data)
Method for publishing data directly to a node |
void |
removeActiveObject(java.lang.String uid)
|
abstract void |
removeInterceptor(Id subsKey,
java.lang.String interceptorId)
Method for removing an interceptor from an object group |
abstract void |
subscribe(Topic topic,
Client subscriber)
Method for subscribing an application to a multicast group |
abstract void |
unsubscribe(Topic topic,
Client subscriber)
Method for unsubscribing an application from a multicast group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String INSTANCE_NAME
protected transient java.util.logging.Logger logger
public static java.lang.String BOOTSTRAP_HOST
protected java.lang.String configurationFile
protected ActivatorClient activatorClient
protected ActivatorImpl activatorImpl
Constructor Detail |
---|
protected DermiConnection(java.lang.Object... args) throws ConnectionException
ConnectionException
Method Detail |
---|
public void loadActivator()
public ActivatorClient getActivator()
communityId
- String The community id
public abstract void subscribe(Topic topic, Client subscriber)
topic
- Topic The group's identifiersubscriber
- ScribeClient The application to subscribepublic abstract void unsubscribe(Topic topic, Client subscriber)
topic
- Topic The group's identifiersubscriber
- ScribeClient The application to unsubscribepublic abstract void publish(Topic topic, java.io.Serializable data)
topic
- Topic The group's identifierdata
- Serializable Data to publishpublic abstract void publishDirect(Topic topic, java.io.Serializable data)
topic
- Topic The group's identifierdata
- Serializable Data to publishpublic abstract void anycall(Topic topic, java.io.Serializable data)
topic
- Topic The group's identifierdata
- Serializable Data to publishpublic abstract NodeHandle getLocalNodeHandle()
public abstract Node getLocalNode()
public abstract Id getLocalNodeId()
public abstract void addInterceptor(DermiApplicationListener npar, Id subsKey, java.lang.String interceptorId)
npar
- NotificationParser Interceptor applicationsubsKey
- Id Subscription keyinterceptorId
- String Interceptor idpublic abstract void removeInterceptor(Id subsKey, java.lang.String interceptorId)
subsKey
- Id Subscription keyinterceptorId
- String Interceptor idpublic abstract void continueInterception(java.util.Hashtable evt, java.util.ArrayList interceptors)
evt
- Hashtableinterceptors
- ArrayListpublic abstract java.util.Collection getReplicaSet(Id id, int maxRank)
id
- Id Which id to replicatemaxRank
- int Maximum number of replicas
public abstract void close()
public void addActiveObject(java.lang.String uid, ERemote ref)
public void removeActiveObject(java.lang.String uid)
public java.util.Collection listActiveObjects()
public boolean containsActiveObject(java.lang.String uid)
public abstract PriorityList getComponentHops(java.lang.String uid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |