e-speak Tutorial
112 pages
English

e-speak Tutorial

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
112 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Tutorial
Release A.03.14.00
August 2001 COPYRIGHT NOTICE
© 2001 HEWLETT-PACKARD COMPANY
To anyone who acknowledges that this document is provided "AS IS" WITH NO EXPRESS OR
IMPLIED WARRANTY: permission to copy, modify, and distribute this document for any purpose is
hereby granted without fee, provided that the above copyright notice and this notice appear in all
copies, and that the name of Hewlett-Packard Company not be used in advertising or publicity
pertaining to distribution of this document without specific, written prior permission. Hewlett-
Packard Company makes no representations about the suitability of this document for any purpose.
Windows and Windows NT are registered trademarks of Microsoft Corporation. Java and all Java-
based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Linux is a trademark
of Linus Torvalds. All other trademarks are the properties of their respective owners. Contents
Chapter 1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Prerequisite Skills and/or Experience . . . . . . . . . . . . . . .2
Tutorial Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Basic Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Configuring the Tutorial for a Multi-User System . . . . .5
Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Sujets

Informations

Publié par
Nombre de lectures 167
Langue English

Extrait

Tutorial Release A.03.14.00 August 2001 COPYRIGHT NOTICE © 2001 HEWLETT-PACKARD COMPANY To anyone who acknowledges that this document is provided "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY: permission to copy, modify, and distribute this document for any purpose is hereby granted without fee, provided that the above copyright notice and this notice appear in all copies, and that the name of Hewlett-Packard Company not be used in advertising or publicity pertaining to distribution of this document without specific, written prior permission. Hewlett- Packard Company makes no representations about the suitability of this document for any purpose. Windows and Windows NT are registered trademarks of Microsoft Corporation. Java and all Java- based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Linux is a trademark of Linus Torvalds. All other trademarks are the properties of their respective owners. Contents Chapter 1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Prerequisite Skills and/or Experience . . . . . . . . . . . . . . .2 Tutorial Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Basic Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Configuring the Tutorial for a Multi-User System . . . . .5 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 E-speak Tutorial Files . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Open Three Command Prompt Windows . . . . . . . . . . . 15 Start the Process Manager . . . . . . . . . . . . . . . . . . . . . . . 16 Start the e-speak Desktop . . . . . . . . . . . . . . . . . . . . . . . . 16 Start the e-speak Core . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Verify that the Core is Running . . . . . . . . . . . . . . . . . . . 19 Additional Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Chapter 2 Basic Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Identify the Service Requirements . . . . . . . . . . . . . . . . . 22 Identify a Service Contract and Service Vocabulary . . 22 Implement the Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Implement the Service Deployer . . . . . . . . . . . . . . . . . . 23 Release A.03.14.00, August 2001 i Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Define the Service Contract . . . . . . . . . . . . . . . . . . . . . . 25 Implement the Service . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Implement the Service Deployer . . . . . . . . . . . . . . . . . . 27 Establish a Connection to e-speak . . . . . . . . . . . . . 27 Create a Service Description . . . . . . . . . . . . . . . . . . 28 Create a Service Element and Set the Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Register, Advertise, and Start the Service . . . . . . . 29 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 30 Run the Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Test the Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Chapter 3 Basic Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Create a Connection to e-speak . . . . . . . . . . . . . . . . . . . 34 Locate the Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Invoke the Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 36 Run the Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Verify that the Client is Connected to the Core . . . . . . 36 Verify that the Client can Interact with a Service . . . . 36 Run Multiple Services . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 ii Release A.03.14.00, August 2001 Chapter 4 Managed Services . . . . . . . . . . . . . . . . . . . . . . . . . 39 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Build a Desktop-Managed Service . . . . . . . . . . . . . . . . . 40 Implement the DefaultManagedServiceIntf Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Register the Class as Desktop-Manageable . . . . . . 41 Set the Initial State . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Allow Property Modifications . . . . . . . . . . . . . . . . . 43 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 43 Start a Managed Service . . . . . . . . . . . . . . . . . . . . . . . . . 44 Verify That the Service is Running . . . . . . . . . . . . . . . . 45 Pause the Managed Service . . . . . . . . . . . . . . . . . . . . . . 45 Reset the Service Invocation Counter . . . . . . . . . . . . . 46 Remove and Restart a Managed Service . . . . . . . . . . . . 46 Edit Service Configuration at Runtime . . . . . . . . . . . . . 47 Stop the Managed Service (Optional) . . . . . . . . . . . . . . 48 Chapter 5 Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Event Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Creating an Event Distributor . . . . . . . . . . . . . . . . . . . . 51 Create an Events Listener/Subscriber . . . . . . . . . . . . . . 51 Creatent Publisher . . . . . . . . . . . . . . . . . . . . . . . 53 Register as an Event Publisher . . . . . . . . . . . . . . . . 53 Release A.03.14.00, August 2001 iii Publish an Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 54 Start the Events Distributor . . . . . . . . . . . . . . . . . . . . . . 54 Verify That the Events Distributor is Running . . . . . . . 55 Start the Events Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Start ths Service . . . . . . . . . . . . . . . . . . . . . . . . . 55 Generate Additional Event Messages . . . . . . . . . . . . . . 56 Stop the Events Service (Optional) . . . . . . . . . . . . . . . . 56 Chapter 6 Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Managing Bindings Using Folders . . . . . . . . . . . . . . . . . 58 Creating Folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Creating Transient Folders . . . . . . . . . . . . . . . . . . . . 58 Creating Persistent Folders . . . . . . . . . . . . . . . . . . . 59 Naming Found Services . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Removing Services From Folders . . . . . . . . . . . . . . . . . 60 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 60 Start the Folder Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Save a Service Object in a Folder . . . . . . . . . . . . . . . . . . 61 Save a Service Object under an Alias . . . . . . . . . . . . . . 62 Delete an Alias From Your Folder . . . . . . . . . . . . . . . . . 63 Service Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 iv Release A.03.14.00, August 2001 Stop the Folders Client (Optional) . . . . . . . . . . . . . . . . 64 Chapter 7 Threads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Implementing ESRunnable . . . . . . . . . . . . . . . . . . . . . . . 66 Using ESThread/ESRunnable . . . . . . . . . . . . . . . . . . . . . 68 Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Compile the Code (Optional) . . . . . . . . . . . . . . . . . . . . . 68 Start the Threads Client . . . . . . . . . . . . . . . . . . . . . . . . . 69 Display Results from All Currently-Running Services 69 Stop the Threads Client (Optional) . . . . . . . . . . . . . . . . 69 Chapter 8 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 The Security Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 About the PSE Manager . . . . . . . . . . . . . . . . . . . . . . . . . 72 Method Tag Used in Certificates . . . . . . . . . . . . . . . . . . 73 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Certificates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Demonstration . . . . . . . . . . . . . . . . . . . . . . .
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents