|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.SubscribeCollection
This is the main class that implements the PaP Subscribe functionality. There will be one instance of this class for each independent Subscribe service provider to be used (i.e. the instance of the class is a Subscribe Service Provider). Each Subscribe Service Provider is able to handle multiple clients of the service, and each client is the result of a 'SubscribeRequest' to the provider and is identified by its Subscribe Identifier until the client is cancelled by a 'SubscribeCancel' request to the provider. Different types of events are reported to, and registered by the provider, and these registrations are reported to clients ('SubscribeReport') according to what clients has specified. Registrations has a predefined set of event types to be used, and the format and content of the registrations depends on the event type. The class 'SubscribeRequest' defines the specification of a request for subscription, while the class 'SubscribeRequestServer' defines how each 'SubscribeRequest' shall be served.
| Field Summary | |
private MicroBaseFrame |
bf
Defines trace information window. |
private ActorContext |
context
The defined context for the service. |
private java.util.Hashtable |
subscriptions
Keeps existing client instances |
private int |
unique
Allocate unique identifiers for client instances |
| Constructor Summary | |
SubscribeCollection(ActorContext ctx,
MicroBaseFrame frame)
Initiation of the Subscribe Service Provider instance. |
|
| Method Summary | |
java.lang.String |
addEntry(SubscribeRequest sr)
Create and initiate a new subscribe client instance. |
void |
registerEvent(int et,
GAI sc,
java.lang.String at)
Register an event at all existing subscription clients. |
boolean |
removeEntry(java.lang.String subsID)
Terminate and remove an existing subscription client. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ActorContext context
private int unique
private java.util.Hashtable subscriptions
private MicroBaseFrame bf
| Constructor Detail |
public SubscribeCollection(ActorContext ctx,
MicroBaseFrame frame)
ctx - Defined context for the serviceframe - Debug trace window (temporary)| Method Detail |
public java.lang.String addEntry(SubscribeRequest sr)
sr - The specification of the subscribe request
public boolean removeEntry(java.lang.String subsID)
subsID - The unique identification of the client
public void registerEvent(int et,
GAI sc,
java.lang.String at)
et - Event typesc - Address identifier for the entity the event concernsat - Application specific information
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||