|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.businessfacades.reporting.DefaultEventPublicationManager
public class DefaultEventPublicationManager
This is the default implementation of EventPublicationManager.
Event publication is made using 2 differents channels : a synchronous one
that is information messages creation (used by home page and RSS streams)
and an asynchronous one that is JMS message publication.
Field Summary | |
---|---|
static java.lang.String |
ASSEMBLY_PRODUCER_KEY
Constant representing the key within assembly related messages producer is registered |
static java.lang.String |
BUILD_PRODUCER_KEY
Constant representing the key within build related messages producer is registered |
static int |
DEFAULT_MESSAGE_DURATION
Constant representing the default duration of a published message in day. |
static java.lang.String |
DELIVERY_PRODUCER_KEY
Constant representing the key within delivery related messages producer is registered |
static java.lang.String |
DEPLOYMENT_PRODUCER_KEY
Constant representing the key within deployment related messages producer is registered |
Constructor Summary | |
---|---|
DefaultEventPublicationManager()
Creates a new instance of DefaultEventPublicationManager |
Method Summary | |
---|---|
protected Message |
createEventMessageForObject(java.lang.Object object,
Event event,
java.lang.String resourceId)
Create an Event message on Join frontend when a domain model object has raise a specified event. |
void |
publishAssemblyCreationEvent(Assembly assembly)
Publish an event corresponding to an aasembly creation (ie: the aggregation of amny deliverables) |
void |
publishBuildCreationEvent(Build build)
Publish an event corresponding to a build creation (ie: the packaging of components) |
void |
publishDeliveryEvent(Deliverable deliverable)
Publish an event corresponding to a delivery (ie: a deliverable creation) |
void |
publishDeploymentDemandEvent(Deployment deployment)
Publish an event corresponding to the creation of a deployment demand |
void |
publishDeploymentEndEvent(Deployment deployment)
Publish an event corresponding to the end of the deployment realization process |
void |
publishDeploymentPreparationEvent(Deployment deployment)
Publish an event corresponding to the beginning of a deployment preparation |
void |
publishDeploymentRealizationEvent(Deployment deployment)
Publish an event corresponding to the begining of a deployment realization |
void |
setMessageDuration(int duration)
|
void |
setProducersMap(java.util.Map producers)
|
void |
setReportingManager(ReportingManager manager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MESSAGE_DURATION
public static final java.lang.String DELIVERY_PRODUCER_KEY
public static final java.lang.String ASSEMBLY_PRODUCER_KEY
public static final java.lang.String DEPLOYMENT_PRODUCER_KEY
public static final java.lang.String BUILD_PRODUCER_KEY
Constructor Detail |
---|
public DefaultEventPublicationManager()
Method Detail |
---|
public void setMessageDuration(int duration)
duration
- Duration of a published message in daypublic void setProducersMap(java.util.Map producers)
producers
- A map containing all the registered JMS producerspublic void setReportingManager(ReportingManager manager)
manager
- The ReportingManager implementation to usepublic void publishDeliveryEvent(Deliverable deliverable)
publishDeliveryEvent
in interface EventPublicationManager
deliverable
- The deliverable that has just been suppliedpublic void publishBuildCreationEvent(Build build)
publishBuildCreationEvent
in interface EventPublicationManager
build
- The build model object that has just been createdpublic void publishAssemblyCreationEvent(Assembly assembly)
publishAssemblyCreationEvent
in interface EventPublicationManager
assembly
- The assembly model object that has just been createdpublic void publishDeploymentDemandEvent(Deployment deployment)
publishDeploymentDemandEvent
in interface EventPublicationManager
deployment
- The deployment that has just been created and askedpublic void publishDeploymentPreparationEvent(Deployment deployment)
publishDeploymentPreparationEvent
in interface EventPublicationManager
deployment
- The deployment that has been picked for being preparedpublic void publishDeploymentRealizationEvent(Deployment deployment)
publishDeploymentRealizationEvent
in interface EventPublicationManager
deployment
- The deployment that has been picked for being realizedpublic void publishDeploymentEndEvent(Deployment deployment)
publishDeploymentEndEvent
in interface EventPublicationManager
deployment
- The deployment that has just been realizedprotected Message createEventMessageForObject(java.lang.Object object, Event event, java.lang.String resourceId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |