Next:
Introduction
Up:
Jtrix: How to write
Previous:
Jtrix: How to write
Contents
Introduction
How to read this document
A very small netlet
Compiling our code
Running the netlet
Creating a netlet descriptor
Summary
High level concepts
Services
Nodes and hosting
Netlets
Binding and service sessions
Nodality
External netlets, launcher, Jnode and bootstrap netlets
Netlet descriptors
Warrants
The service advertisement service (SAS)
Summary
Facets and interfaces
Facets, binding and services
Sessions and servers
Netlet facets
Node facets
Mediation and security
Binding protocols and unsigned data
Conventions, INetlet, INode, IService and IRemote
Interface summary
Packages, JARs, classes and methods
Packages
JARs
Classes and interfaces
org.jtrix.base.FacetHandle
org.jtrix.base.IFacetCollection
org.jtrix.base.IFacetProvider
org.jtrix.base.INetlet
jtrix.base.INode
org.jtrix.base.IRemote
org.jtrix.base.IService
The first netlet in detail
Hello world again
Imports
Implementing INetlet
initialise()
Binding the service
terminate()
bindService()
getFacets()
bindFacet()
Summary
IHelloFacet
Compiling the application
Creating the netlet descriptor
Running the netlet with Jnode
Summary
Writing a service
Recap on services
Discussion of our code
Implementing IHelloFacet
Providing an IService
FacetHandle
How we'll use our service
HelloServer
The main netlet methods
Implementing IHelloFacet
Providing the service
Why we use FacetHandle
Compiling the code
Creating the XML files
Running the code
More discussion on services
Access points' communication
More flexible code: SAS
Expanding ourselves: the hosting service
Summary
Using node facets
Discussion
The netlets
Why do we have node facets?
The classes
Security
The FacetHandle class
Hello2Client
Hello2Provider
Compiling the application
Creating the netlet descriptors
Running the example with Jnode
Summary
A bootstrap netlet
Discussion
Bootstrap netlets
Interfaces for bootstrapping and I/O
About our code
Hello3Client
Compiling the application
Creating the netlet descriptor
Running with Jnode
Summary
Debugging
Standard I/O
Event messages
The Debug class
Miscellaneous tips
Threads
Managing netlet concurrency
Number of threads
Thread reuse
When should thread reuse be avoided?
Mediation timeouts
Asynchronous facets
How to invoke asynchronously
Asynchronous invocation example
Preparing the example
Running the example
What more can we do?
System resources
Networking
File system access
A note on resources
Embedding a non-Jtrix application
The code
Compiling the code
Creating the descriptor
Running the application
Summary
jnode_help.txt
jtrixmaker_help.txt
About this document ...
Next:
Introduction
Up:
Jtrix: How to write
Previous:
Jtrix: How to write
Nik Silver 2002-03-09