Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.fudaa.dodico.objet
Class CDodico  view CDodico download CDodico.java

java.lang.Object
  extended byorg.fudaa.dodico.objet.CDodico

public final class CDodico
extends java.lang.Object

Une classe generale et utilitaire pour Corba et Dodico.

Version:
$Revision: 1.36 $ $Date: 2002/04/29 16:07:13 $ by $Author: deniger $

Field Summary
static int BAD_CONTEXT
          Codes d'erreurs.
static int BAD_INV_ORDER
           
static int BAD_OPERATION
           
static int BAD_PARAM
           
static int BAD_TYPECODE
           
static int COMM_FAILURE
           
static int DATA_CONVERSION
           
static int FREE_MEM
           
static int IMP_LIMIT
           
static int INITIALIZE
           
static int INTERNAL
           
static int INTF_REPOS
           
static int INV_FLAG
           
static int INV_IDENT
           
static int INV_OBJREF
           
static int INVALID_TRANSACTION
           
private static IUsine localUsine_
          Reference l'usine locale utilisee.
private static boolean mailExceptionsEnabled_
           
static int MARSHAL
           
private static boolean networkExceptionsEnabled_
           
static int NO_IMPLEMENT
           
static int NO_MEMORY
           
static int NO_PERMISSION
           
static int NO_RESOURCES
           
static int NO_RESPONSE
           
static int OBJ_ADAPTER
           
static int OBJECT_NOT_EXIST
           
private static org.omg.CORBA.ORB orb_
          L'orb utilisee.
static int PERSIST_STORE
           
private static IGestionnaireMessages sGM
           
private static IHorloge sH
           
static int TRANSACTION_REQUIRED
           
static int TRANSACTION_ROLLEDBACK
           
static int TRANSIENT
           
static int UNKNOWN
           
 
Constructor Summary
CDodico()
           
 
Method Summary
static void affiche(IObjet o)
          Affiche des informations sur un objet Corba.
static java.lang.String[] corbaInterfaces(java.lang.Class classe)
          Renvoie la liste des interfaces Corba sous la forme d'un tableau de chaines.
private static void corbaInterfaces0(java.lang.Class classe, java.util.Vector v)
           
static java.lang.String corbaModule(java.lang.Class classe)
          Renvoie le module Corba sous la forme d'une chaine.
static IUsine creeUsineLocale()
           
static void emailer(java.lang.String _from, java.lang.String _to, java.lang.String _subject, java.lang.String _texte)
           
static void exception_axel(java.lang.Object _o, java.lang.Exception _e)
           
static void exception_axel(java.lang.Object _o, java.lang.String _s, int _t)
           
static void exception(java.lang.Exception _e)
          Autre forme prenant une exception a faire suivre.
static void exception(java.lang.Object _o, java.lang.Exception _e)
          Autre forme prenant une exception a faire suivre.
static void exception(java.lang.Object _o, java.lang.String _s)
          Autre forme sans typage, UNKNOWN par defaut.
static void exception(java.lang.Object _o, java.lang.String _s, int _t)
          Centralise et redistribue les exceptions et messages.
static void exception(java.lang.String _s)
          Autre forme sans typage et sans objet d'origine.
static void exception(java.lang.String _s, int _t)
          Autre forme sans objet d'origine.
static org.omg.CORBA.Object findServerByInterface(java.lang.String _interface)
           
static org.omg.CORBA.Object findServerByInterface(java.lang.String _interface, long _delai)
          Renvoie un objet correspondant a l'interface.
static org.omg.CORBA.Object findServerByName(java.lang.String _nom)
           
static org.omg.CORBA.Object findServerByName(java.lang.String _nom, long _delai)
          Renvoie un objet correspondant au nom.
static java.lang.String[] findServerNames(java.lang.String _interface, long _delai)
           
static IUsine findUsine()
           
static IUsine findUsine(int _time)
           
static java.lang.String generateName(java.lang.String _interface)
          A partir du nom de l'interface _interface, de l'hote et du temps en millisecondes, une chaine est generee.
static org.omg.CORBA.ORB getORB()
          L'ORB utilise pour la machine virtuelle en cours.
static int getTimeInS()
           
static boolean isMailExceptionsEnabled()
           
static boolean isNetworkExceptionsEnabled()
           
static java.lang.String objectToString(java.lang.Object o)
          Retourne une representation d'un objet sous forme de chaine.
static void rebind(java.lang.String _name, org.omg.CORBA.Object _o)
           
static void setMailExceptionsEnabled(boolean _v)
           
static void setNetworkExceptionsEnabled(boolean _v)
           
static void unbind(java.lang.String _name, org.omg.CORBA.Object _o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BAD_CONTEXT

public static final int BAD_CONTEXT
Codes d'erreurs.

See Also:
Constant Field Values

BAD_INV_ORDER

public static final int BAD_INV_ORDER
See Also:
Constant Field Values

BAD_OPERATION

public static final int BAD_OPERATION
See Also:
Constant Field Values

BAD_PARAM

public static final int BAD_PARAM
See Also:
Constant Field Values

BAD_TYPECODE

public static final int BAD_TYPECODE
See Also:
Constant Field Values

COMM_FAILURE

public static final int COMM_FAILURE
See Also:
Constant Field Values

DATA_CONVERSION

public static final int DATA_CONVERSION
See Also:
Constant Field Values

FREE_MEM

public static final int FREE_MEM
See Also:
Constant Field Values

IMP_LIMIT

public static final int IMP_LIMIT
See Also:
Constant Field Values

INITIALIZE

public static final int INITIALIZE
See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values

INTF_REPOS

public static final int INTF_REPOS
See Also:
Constant Field Values

INVALID_TRANSACTION

public static final int INVALID_TRANSACTION
See Also:
Constant Field Values

INV_FLAG

public static final int INV_FLAG
See Also:
Constant Field Values

INV_IDENT

public static final int INV_IDENT
See Also:
Constant Field Values

INV_OBJREF

public static final int INV_OBJREF
See Also:
Constant Field Values

MARSHAL

public static final int MARSHAL
See Also:
Constant Field Values

NO_IMPLEMENT

public static final int NO_IMPLEMENT
See Also:
Constant Field Values

NO_MEMORY

public static final int NO_MEMORY
See Also:
Constant Field Values

NO_PERMISSION

public static final int NO_PERMISSION
See Also:
Constant Field Values

NO_RESOURCES

public static final int NO_RESOURCES
See Also:
Constant Field Values

NO_RESPONSE

public static final int NO_RESPONSE
See Also:
Constant Field Values

OBJECT_NOT_EXIST

public static final int OBJECT_NOT_EXIST
See Also:
Constant Field Values

OBJ_ADAPTER

public static final int OBJ_ADAPTER
See Also:
Constant Field Values

PERSIST_STORE

public static final int PERSIST_STORE
See Also:
Constant Field Values

TRANSACTION_REQUIRED

public static final int TRANSACTION_REQUIRED
See Also:
Constant Field Values

TRANSACTION_ROLLEDBACK

public static final int TRANSACTION_ROLLEDBACK
See Also:
Constant Field Values

TRANSIENT

public static final int TRANSIENT
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

orb_

private static org.omg.CORBA.ORB orb_
L'orb utilisee.


localUsine_

private static IUsine localUsine_
Reference l'usine locale utilisee. Est nulle, si la connexion se fait a distance.


networkExceptionsEnabled_

private static boolean networkExceptionsEnabled_

mailExceptionsEnabled_

private static boolean mailExceptionsEnabled_

sGM

private static IGestionnaireMessages sGM

sH

private static IHorloge sH
Constructor Detail

CDodico

public CDodico()
Method Detail

getORB

public static final org.omg.CORBA.ORB getORB()
L'ORB utilise pour la machine virtuelle en cours. Si la variable interne (orb_) referancant l'ORB utilise est nulle, un nouvel ORB est initialise sur le port "14000".


generateName

public static final java.lang.String generateName(java.lang.String _interface)
A partir du nom de l'interface _interface, de l'hote et du temps en millisecondes, une chaine est generee. Si le nom de l'hote ne peut etre trouve, la chaine "unknown" sera utilisee. Par exemple:
si la methode est appele sur la machine de nom hote a l'instant 99812345678 millisecondes avec comme parametre _interface=::code::ICalculCode, le resultat obtenu est:
-ICalculCode-hote-12345678


rebind

public static final void rebind(java.lang.String _name,
                                org.omg.CORBA.Object _o)

unbind

public static final void unbind(java.lang.String _name,
                                org.omg.CORBA.Object _o)

findUsine

public static final IUsine findUsine(int _time)

findUsine

public static final IUsine findUsine()

creeUsineLocale

public static final IUsine creeUsineLocale()

findServerNames

public static final java.lang.String[] findServerNames(java.lang.String _interface,
                                                       long _delai)

findServerByInterface

public static final org.omg.CORBA.Object findServerByInterface(java.lang.String _interface,
                                                               long _delai)
Renvoie un objet correspondant a l'interface. En general un serveur. Le nom d'interface doit etre pleinement qualifie comme par exemple "::objet::IObjet".


findServerByInterface

public static final org.omg.CORBA.Object findServerByInterface(java.lang.String _interface)

findServerByName

public static final org.omg.CORBA.Object findServerByName(java.lang.String _nom,
                                                          long _delai)
Renvoie un objet correspondant au nom. En general un serveur. Le nom d'interface doit etre pleinement qualifie comme par exemple "::objet::IObjet".


findServerByName

public static final org.omg.CORBA.Object findServerByName(java.lang.String _nom)

corbaModule

public static final java.lang.String corbaModule(java.lang.Class classe)
Renvoie le module Corba sous la forme d'une chaine. Comme par exemple "::objet"


corbaInterfaces

public static final java.lang.String[] corbaInterfaces(java.lang.Class classe)
Renvoie la liste des interfaces Corba sous la forme d'un tableau de chaines. Comme par exemple { "::objet::IObjet", "::mathematiques::IVecteurReel" }


corbaInterfaces0

private static final void corbaInterfaces0(java.lang.Class classe,
                                           java.util.Vector v)

objectToString

public static final java.lang.String objectToString(java.lang.Object o)
Retourne une representation d'un objet sous forme de chaine.


affiche

public static final void affiche(IObjet o)
Affiche des informations sur un objet Corba. Impression sur la sortie Standard (System.out). Methode utilisee pour les tests exclusivement.


emailer

public static final void emailer(java.lang.String _from,
                                 java.lang.String _to,
                                 java.lang.String _subject,
                                 java.lang.String _texte)

isNetworkExceptionsEnabled

public static boolean isNetworkExceptionsEnabled()

setNetworkExceptionsEnabled

public static void setNetworkExceptionsEnabled(boolean _v)

isMailExceptionsEnabled

public static boolean isMailExceptionsEnabled()

setMailExceptionsEnabled

public static void setMailExceptionsEnabled(boolean _v)

exception

public static final void exception(java.lang.Object _o,
                                   java.lang.String _s,
                                   int _t)
Centralise et redistribue les exceptions et messages. Les exceptions sont annotees, affichees sur System.err, enregistrees dans dodico-exceptions.bsv, envoyees au serveur de messages et relancees sous forme Corba.


exception_axel

public static final void exception_axel(java.lang.Object _o,
                                        java.lang.Exception _e)

exception_axel

public static final void exception_axel(java.lang.Object _o,
                                        java.lang.String _s,
                                        int _t)

exception

public static final void exception(java.lang.Object _o,
                                   java.lang.String _s)
Autre forme sans typage, UNKNOWN par defaut.


exception

public static final void exception(java.lang.String _s,
                                   int _t)
Autre forme sans objet d'origine.


exception

public static final void exception(java.lang.String _s)
Autre forme sans typage et sans objet d'origine.


exception

public static final void exception(java.lang.Object _o,
                                   java.lang.Exception _e)
Autre forme prenant une exception a faire suivre.


exception

public static final void exception(java.lang.Exception _e)
Autre forme prenant une exception a faire suivre.


getTimeInS

public static int getTimeInS()