|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object raccoon.core.types.AbsComponent raccoon.core.types.AbsLoadable raccoon.core.types.AbsConfigurableLoadable raccoon.tibco.tibrv.endpoint.TibrvPublisher
public class TibrvPublisher
The implementation of the IPublisher
interface for TIB/Rendezvous.
Field Summary |
---|
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
mConfigurableManager |
Fields inherited from class raccoon.core.types.AbsLoadable |
---|
mIsLoaded |
Fields inherited from class raccoon.core.types.AbsComponent |
---|
mIsInError |
Fields inherited from interface raccoon.api.eai.endpoint.IPublisher |
---|
EVENT_SUBJECT, NATIVE_PUBLISHER |
Constructor Summary | |
---|---|
TibrvPublisher()
Default constructor, required for dynamic instanciation |
Method Summary | |
---|---|
void |
configureParameters()
Configures the various parameters for this component. |
java.lang.String |
getEventSubject()
Indicates the topic/subject on which the event will be fired. |
java.lang.Object |
getNativePub()
Extracts the native publisher used. |
void |
send(java.lang.Object pJavaBeanToSend)
Sends over the EAI infrastructure a java bean. |
void |
send(java.lang.Object pJavaBeanToSend,
ITracking pTracking)
Sends over the EAI infrastructure a java bean. |
void |
send(java.lang.String pSubject,
java.lang.Object pJavaBeanToSend)
Sends over the EAI infrastructure a java bean on a specific subject. |
void |
send(java.lang.String pSubject,
java.lang.Object pJavaBeanToSend,
ITracking pTracking)
Sends over the EAI infrastructure a java bean. |
java.lang.Object |
sendRequest(java.lang.Object pRequest)
Sends a request over the EAI infrastructure. |
void |
setEventSubject(java.lang.String pEventSubject)
Defines the default publication subject. |
void |
setNativePub(java.lang.Object pPublisher)
Assigns the native publisher to use. |
void |
unload()
Unloads or deactivates the component. |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
isStable, load, setConfigurableManager, setLogger |
Methods inherited from class raccoon.core.types.AbsLoadable |
---|
getLog, isInError, isInitialised, isRunning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TibrvPublisher()
Method Detail |
---|
public void configureParameters()
IConfigurableManager
provided during the
invocation of AbsConfigurableLoadable.setConfigurableManager(raccoon.api.types.IConfigurableManager)
.
configureParameters
in interface IConfigurable
configureParameters
in class AbsConfigurableLoadable
public void setEventSubject(java.lang.String pEventSubject) throws RaccoonException, java.lang.IllegalArgumentException
pEventSubject
- the subject on which messages will be sent if there is no assigned subject.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public java.lang.String getEventSubject()
getEventSubject
in interface IPublisher
public void send(java.lang.Object pJavaBeanToSend) throws RaccoonException
send
in interface IPublisher
pJavaBeanToSend
- the java bean to send.
RaccoonException
- if the java bean couldn't be sent.public void send(java.lang.String pSubject, java.lang.Object pJavaBeanToSend) throws RaccoonException
send
in interface IPublisher
pSubject
- a MOM compliant subject/topic.pJavaBeanToSend
- the java bean to send over the MOM
RaccoonException
- if the message couldn't be sent over the MOMpublic void send(java.lang.Object pJavaBeanToSend, ITracking pTracking) throws RaccoonException
send
in interface IPublisher
pJavaBeanToSend
- the java bean to send.pTracking
- the tracking information to attach to the given message
RaccoonException
- if the java bean couldn't be sent.public void send(java.lang.String pSubject, java.lang.Object pJavaBeanToSend, ITracking pTracking) throws RaccoonException
send
in interface IPublisher
pSubject
- a MOM compliant subject/topic.pJavaBeanToSend
- the java bean to send.pTracking
- the tracking information to attach to the given message
RaccoonException
- if the java bean couldn't be sent.public java.lang.Object sendRequest(java.lang.Object pRequest) throws RaccoonException
sendRequest
in interface IPublisher
pRequest
- the java bean to send that represents the request.
RaccoonException
- if something goes wrongpublic java.lang.Object getNativePub()
getNativePub
in interface IPublisher
public void setNativePub(java.lang.Object pPublisher) throws RaccoonException, java.lang.IllegalArgumentException
setNativePub
in interface IPublisher
pPublisher
- the native publisher to use for a specific MOM.
RaccoonException
- if this component is already running: the component can't be changed.
Error code is ErrorCodes.COMPONENT_INITIALISED
java.lang.IllegalArgumentException
- if the parameter is null
, the message is obtained via
MsgHelper.formatNullParamter(java.lang.String, java.lang.Class)
public void unload() throws java.lang.IllegalStateException, LoadableException
unload
in interface ILoadable
unload
in class AbsLoadable
LoadableException
- if the component couldn't unload itself.
java.lang.IllegalStateException
- if this component isn't in a state to unload itself.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |