raccoon.tibco.tibrv.utils
Class TibComponent

java.lang.Object
  extended by raccoon.core.types.AbsComponent
      extended by raccoon.core.types.AbsLoadable
          extended by raccoon.tibco.tibrv.utils.TibComponent
All Implemented Interfaces:
IBaseComponent, ILoadable, ILogable
Direct Known Subclasses:
LedgerViewer

public class TibComponent
extends AbsLoadable

Abstract convenience class for all components that will handle communications with TIB/Rendezvous.

Since:
Raccoon v0.6
Version:
$Id: TibComponent.java,v 1.3 2003/07/01 19:19:57 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
 
Fields inherited from class raccoon.core.types.AbsLoadable
mIsLoaded
 
Fields inherited from class raccoon.core.types.AbsComponent
mIsInError
 
Constructor Summary
TibComponent()
           
 
Method Summary
 void load()
          Invoked by the service manager to start this component once it has been configured.
static int nbSessions()
          Computes the number of sessions currently opened to TIB/Rendezvous.
 void unload()
          Invoked by the service manager to stop this component.
 
Methods inherited from class raccoon.core.types.AbsLoadable
getLog, isInError, isInitialised, isRunning, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TibComponent

public TibComponent()
Method Detail

load

public void load()
          throws LoadableException
Invoked by the service manager to start this component once it has been configured. When extended bare in mind that the member variable mIsLoaded should be set to false and then set to true once all the init code has been performed.

Specified by:
load in interface ILoadable
Overrides:
load in class AbsLoadable
Throws:
LoadableException - if this component isn't initialisable or is already running.

unload

public void unload()
            throws LoadableException
Invoked by the service manager to stop this component. When extended bare in mind that the member variable mIsLoaded should be set to true and then set to false once all the init code has been performed.

Specified by:
unload in interface ILoadable
Overrides:
unload in class AbsLoadable
Throws:
LoadableException - if the composant isn't running or if it isn't an initialisable component.

nbSessions

public static int nbSessions()
                      throws RaccoonException
Computes the number of sessions currently opened to TIB/Rendezvous.

Returns:
the number of sessions currently active.
Throws:
RaccoonException - if the number of sessions couldn't be accessed.


Copyright null null. All Rights Reserved.