Präsentation herunterladen
Die Präsentation wird geladen. Bitte warten
Veröffentlicht von:Anne-marie Gierke Geändert vor über 10 Jahren
1
1 Praktikum 3 Betriebssysteme II Stefan Linke M. Serhat Cinar Implementierung einer CDDB-Applikation mit CORBA
2
2 Erzeugung der CDDB Applikation mit CORBA cddb.idl cddb.h server.ccclient.cc idl cddb.idl include cddb.h serverclient mico-c++ server.ccmico-c++ client.cc CDDB_impl CD_impl CDManager ServantActivator extends POA_CDDB extends POA_CD extends
3
3 cddb.idl // -*- c++ -*- interface CD { void setTitel (in string l_titel); string getTitel (); void setInterpret (in string l_interpret); string getInterpret (); void setDatum (in string l_datum); string getDatum (); void setInhalte (in string l_inhalte); string getInhalte (); void setDauer (in string l_dauer); string getDauer (); }; interface CDDB{ CD createCD ( in string name ); void shutdown(); void addToList( in string id); long getListTotal(); string getListAt(in long i); };
4
4 CD_impl class CD_impl : virtual public POA_CD{ public: CD_impl (); void setTitel(const char * l_titel); char * getTitel(); void setInterpret(const char * l_interpret); char * getInterpret(); void setDatum(const char * l_datum); char * getDatum(); void setInhalte(const char * l_inhalte); char * getInhalte(); void setDauer(const char * l_dauer); char * getDauer(); private: CORBA::Long bal; char titel [255]; char interpret [255]; char datum [255]; char inhalte [255]; char dauer [255]; };
5
5 CDDB_impl class CDDB_impl : virtual public POA_CDDB{ public: CDDB_impl (PortableServer::POA_ptr); CD_ptr createCD (const char *); void addToList(const char *); long getListTotal(void); char *getListAt(long); void shutdown (void); private: PortableServer::POA_var mypoa; };
6
6 ORB in der CDDB Applikation CDDB_impl CD_impl
7
7 Vererbungsbeziehungen Stub und Skeleton am Beispiel CD CD CD_stubCD_skel CD_impl CD Objekt
8
8 Invocation of etherealize & incarnate client CDDB_impl shutdown() CDManager finished=true etherealize() client CDDB_impl createCD() CDManager create_referece_with_id() POA incarnate() HD load etherealizeincarnate HD write
Ähnliche Präsentationen
© 2024 SlidePlayer.org Inc.
All rights reserved.