|
||||||||||
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.core.types.AbsComponentManager raccoon.tibco.tibrv.endpoint.TibrvNucleus
public class TibrvNucleus
The implementation of INucleus
for TIB/Rendezvous.
Field Summary | |
---|---|
static java.lang.String |
PTY_ADMIN_SUBJECT
|
static java.lang.String |
PTY_CONFIG
|
static java.lang.String |
PTY_DAEMON
|
static java.lang.String |
PTY_EMBEDDED_LICENSE
|
static java.lang.String |
PTY_NB_DISPATCHERS
|
static java.lang.String |
PTY_NETWORK
|
static java.lang.String |
PTY_QUEUE_NAME
|
static java.lang.String |
PTY_SERVICE
|
static java.lang.String |
PTY_TRANSPORT_TYPE
|
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 |
Constructor Summary | |
---|---|
TibrvNucleus()
Default constructor required for dynamic instanciation |
Method Summary | |
---|---|
void |
configureParameters()
Configures the various parameters for this component. |
java.lang.String |
getAdminSubject()
|
IConfig |
getConfig()
|
java.lang.String |
getDaemon()
The daemon to which this nucleus is connected. |
java.lang.String |
getDescription()
The description of this Nucleus and the underlying transport. |
java.lang.String |
getEmbeddedLicense()
|
int |
getNbDispatchers()
|
java.lang.String |
getNetwork()
The network parameter of this TIB/Rendezvous transport. |
IPublisher |
getPublisher(java.lang.String pPublisherName)
Retrieves a specific publisher based upon it's logical name. |
java.lang.String |
getQueueName()
The name of the dispatching queue. |
java.lang.String |
getService()
The service being used by this nucleus. |
ISubscriber |
getSubscriber(java.lang.String pSubscriberName)
Retrieves a specific subscriber based upon it's logical name. |
int |
getTransportType()
The transport type used currently (Reliable, Certified, ...) |
void |
load()
Invoked by the service manager to start this component once it has been configured. |
protected IBaseComponent |
loadComponent(java.lang.String pComponentName)
Generates a new instance of ComponentBase , must be implemented
by inheriting classes. |
void |
setAdminSubject(java.lang.String pAdminSubject)
|
void |
setConfig(IConfig pConfig)
|
void |
setDaemon(java.lang.String pDaemon)
Defines the daemon parameter to which this transport is connected. |
void |
setDescription(java.lang.String pDescription)
Defines the description of this nucleus. |
void |
setEmbeddedLicense(java.lang.String pEmbeddedLicense)
|
void |
setNbDispatchers(int pNbDispatchers)
|
void |
setNetwork(java.lang.String pNetwork)
Assigns the network for the TIB/Rendezvous transport. |
void |
setQueueName(java.lang.String pQueueName)
Assigns the name of the queue. |
void |
setService(java.lang.String pService)
Defines the service that this nucleus is to use. |
void |
setTransportType(int pTransportType)
Defines the transport type to be used (Reliable, Certified, ...) |
void |
unload()
Invoked by the service manager to stop this component. |
Methods inherited from class raccoon.core.types.AbsComponentManager |
---|
clear, isLoaded, isLogable, lookup |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
isStable, 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 |
Field Detail |
---|
public static final java.lang.String PTY_CONFIG
public static final java.lang.String PTY_SERVICE
public static final java.lang.String PTY_NETWORK
public static final java.lang.String PTY_DAEMON
public static final java.lang.String PTY_QUEUE_NAME
public static final java.lang.String PTY_TRANSPORT_TYPE
public static final java.lang.String PTY_EMBEDDED_LICENSE
public static final java.lang.String PTY_ADMIN_SUBJECT
public static final java.lang.String PTY_NB_DISPATCHERS
Constructor Detail |
---|
public TibrvNucleus()
Method Detail |
---|
public void configureParameters()
IConfigurableManager
provided during the invocation
of AbsConfigurableLoadable.setConfigurableManager(IConfigurableManager)
.
configureParameters
in interface IConfigurable
configureParameters
in class AbsConfigurableLoadable
public java.lang.String getAdminSubject()
public void setAdminSubject(java.lang.String pAdminSubject) throws ResourceNotFoundException
ResourceNotFoundException
public java.lang.String getEmbeddedLicense()
public void setEmbeddedLicense(java.lang.String pEmbeddedLicense) throws ResourceNotFoundException
ResourceNotFoundException
public int getNbDispatchers()
public void setNbDispatchers(int pNbDispatchers)
public java.lang.String getService()
public void setService(java.lang.String pService) throws RaccoonException, java.lang.IllegalArgumentException, java.lang.InternalError
pService
- a valid TIB/Rendezvous nucleus.
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)
java.lang.InternalError
- if the property pParamName
hasn't been defined.public java.lang.String getNetwork()
public void setNetwork(java.lang.String pNetwork) throws RaccoonException, java.lang.IllegalArgumentException, java.lang.InternalError
pNetwork
- the network parameter.
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)
java.lang.InternalError
- if the property pParamName
hasn't been defined.public java.lang.String getDaemon()
public void setDaemon(java.lang.String pDaemon) throws RaccoonException, java.lang.IllegalArgumentException, java.lang.InternalError
pDaemon
- the daemon for the TIB/Rendezvous transport.
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)
java.lang.InternalError
- if the property pParamName
hasn't been defined.public int getTransportType()
public void setTransportType(int pTransportType) throws RaccoonException, java.lang.IllegalArgumentException, java.lang.InternalError
pTransportType
- the transport type.
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)
java.lang.InternalError
- if the property pParamName
hasn't been defined.public java.lang.String getQueueName()
public void setQueueName(java.lang.String pQueueName) throws RaccoonException, java.lang.IllegalArgumentException, java.lang.InternalError
pQueueName
- the name of the queue.
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)
java.lang.InternalError
- if the property pParamName
hasn't been defined.public void load() throws LoadableException
false
and then set to true
once all the init code has been performed.
load
in interface ILoadable
load
in class AbsComponentManager
LoadableException
- if this component isn't initialisable or is already running.public void unload() throws LoadableException
true
and then set to false
once all the init code has been performed.
unload
in interface ILoadable
unload
in class AbsComponentManager
LoadableException
- if the composant isn't running or if it isn't an initialisable component.public IPublisher getPublisher(java.lang.String pPublisherName) throws RaccoonException
getPublisher
in interface INucleus
pPublisherName
- the logical name of the publisher.
RaccoonException
- if anything goes wrong.public ISubscriber getSubscriber(java.lang.String pSubscriberName) throws RaccoonException
getSubscriber
in interface INucleus
pSubscriberName
- the logical name of the subscriber.
RaccoonException
- if anything goes wrong.protected IBaseComponent loadComponent(java.lang.String pComponentName) throws RaccoonException
ComponentBase
, must be implemented
by inheriting classes.
loadComponent
in class AbsComponentManager
pComponentName
- the desired component instance.
RaccoonException
- if the instanciation failed.public IConfig getConfig()
public void setConfig(IConfig pConfig) throws ResourceNotFoundException
ResourceNotFoundException
public java.lang.String getDescription()
public void setDescription(java.lang.String pDescription)
pDescription
- the description string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |