|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.ale.server.ReportsGenerator
public class ReportsGenerator
This class generates ec reports. It validates the ec specifications, starts and stops the event cycles and manages the subscribers.
Constructor Summary | |
---|---|
ReportsGenerator(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.ECSpec spec)
Constructor validates the ec specification and sets some parameters. |
Method Summary | |
---|---|
java.lang.String |
getName()
This method returns the name of this reports generator. |
org.fosstrak.ale.xsd.ale.epcglobal.ECReports |
getPollReports()
This method delivers the ec reports which have been generated because of a poll. |
org.fosstrak.ale.xsd.ale.epcglobal.ECSpec |
getSpec()
This method returns the ec specification of this generator. |
ReportsGeneratorState |
getState()
This method returns the state of this report generator. |
java.util.List<java.lang.String> |
getSubscribers()
This method return the notification uris of all the subscribers of this report generator. |
void |
notifySubscribers(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
This method notifies all subscribers of this report generator about the specified ec reports. |
void |
poll()
This method is invoked if somebody polls this report generator. |
void |
run()
This method contains the main loop of the reports generator. |
void |
setState(ReportsGeneratorState state)
This method sets the state of this report generator. |
void |
start()
This method starts the main loop of the report generator. |
void |
stop()
This method stops the main loop of the report generator. |
void |
subscribe(java.lang.String notificationURI)
This method subscribes a notification uri of a subscriber to this report generator. |
void |
unsubscribe(java.lang.String notificationURI)
This method unsubscribes a notification uri of a subscriber from this report generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportsGenerator(java.lang.String name, org.fosstrak.ale.xsd.ale.epcglobal.ECSpec spec) throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse, org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
name
- of this reports generatorspec
- which defines how the reports of this generator should be build
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException
- if the ec specification is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Method Detail |
---|
public org.fosstrak.ale.xsd.ale.epcglobal.ECSpec getSpec()
public void setState(ReportsGeneratorState state)
state
- to setpublic ReportsGeneratorState getState()
public void subscribe(java.lang.String notificationURI) throws org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateSubscriptionExceptionResponse, org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse
notificationURI
- to subscribe
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateSubscriptionException
- if the specified notification uri
is already subscribed
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIException
- if the notification uri is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateSubscriptionExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse
public void unsubscribe(java.lang.String notificationURI) throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchSubscriberExceptionResponse, org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse
notificationURI
- to unsubscribe
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchSubscriberException
- if the specified notification uri is
not yet subscribed
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIException
- if the notification uri is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchSubscriberExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.InvalidURIExceptionResponse
public java.util.List<java.lang.String> getSubscribers()
public void notifySubscribers(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
reports
- to notify the subscribers aboutpublic void poll()
public org.fosstrak.ale.xsd.ale.epcglobal.ECReports getPollReports()
public void start()
public void stop()
public java.lang.String getName()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |