|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object context.arch.subscriber.AbstractSubscriber context.arch.subscriber.ClientSideSubscriber
This class implements a client side subscriber object This code is awful.... we need to rewrite the subscription system
Subscribers
,
ClientSideSubscriber
Field Summary | |
static java.lang.String |
CLIENT_TYPE
|
Fields inherited from class context.arch.subscriber.AbstractSubscriber |
ADD_SUBSCRIBER, CALLBACK_NAME, CALLBACK_TAG, CLIENT_BASEOBJECT_ID, HOSTNAME, MAX_ERRORS, PORT, REMOVE_SUBSCRIBER, SUBSCRIBER, SUBSCRIBER_ID, SUBSCRIBER_TYPE, SUBSCRIPTION_CALLBACK, SUBSCRIPTION_CALLBACK_REPLY, SUBSCRIPTION_REPLY |
Constructor Summary | |
ClientSideSubscriber(DataObject data)
Basic constructor that creates a subscriber object from a DataObject. |
|
ClientSideSubscriber(java.lang.String baseObjectId,
java.lang.String subHostname,
int subPort,
java.lang.String subCallback,
AbstractQueryItem condition,
Attributes attributes)
Creates new ClientSideSubscriber |
|
ClientSideSubscriber(java.lang.String baseObjectId,
java.lang.String subHostname,
java.lang.String subPort,
java.lang.String subCallback,
AbstractQueryItem condition,
Attributes attributes)
Basic constructor that creates a subscriber object. |
Method Summary | |
Attributes |
getAttributes()
Returns the subscription attributes to be returned |
AbstractQueryItem |
getCondition()
Returns the subscription conditions, under which the subscriber will be notified |
void |
setAttributes(Attributes attributes)
Sets the attributes to return to the subscriber |
void |
setCondition(AbstractQueryItem condition)
Sets the subscription conditions, under which the subscriber will be notified |
DataObject |
toDataObject()
This method converts the subscriber info to a DataObject |
java.lang.String |
toString()
|
Methods inherited from class context.arch.subscriber.AbstractSubscriber |
addError, dataObjectToAbstractSubscriber, getBaseObjectId, getErrors, getSubscriberHostName, getSubscriberPort, getSubscriptionCallback, getSubscriptionId, resetErrors, setBaseObjectId, setSubscriberHostname, setSubscriberPort, setSubscriptionCallback, setSubscriptionId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String CLIENT_TYPE
Constructor Detail |
public ClientSideSubscriber(java.lang.String baseObjectId, java.lang.String subHostname, int subPort, java.lang.String subCallback, AbstractQueryItem condition, Attributes attributes)
attributes
- Attributes to return to subscriberpublic ClientSideSubscriber(java.lang.String baseObjectId, java.lang.String subHostname, java.lang.String subPort, java.lang.String subCallback, AbstractQueryItem condition, Attributes attributes)
attributes
- Attributes to return to subscriberpublic ClientSideSubscriber(DataObject data)
data
- DataObject containing the subscriber infoMethod Detail |
public DataObject toDataObject()
toDataObject
in class AbstractSubscriber
public void setCondition(AbstractQueryItem condition)
public AbstractQueryItem getCondition()
public void setAttributes(Attributes attributes)
attributes
- Attributes to return to the subscriberpublic Attributes getAttributes()
public java.lang.String toString()
toString
in class AbstractSubscriber
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |