There are two phases in writing a service:
The definition phase, when the requirements of the managed resource are defined.
The implementation phase, when the actual software components for the service are developed and tested.
To define a service:
|
Step |
Description |
See... |
|---|---|---|
|
1 |
Understand the managed resource and how to best interact with it. |
|
|
2 |
Design an interface (a set of API function calls and their associated errors, events, and reasons). |
|
|
3 |
Determine the tracing capability for debugging purposes. |
To implement a service:
|
Step |
Description |
See... |
|---|---|---|
|
1 |
Write the service API. |
|
|
2 |
Write the service SPI. |
|
|
3 |
Implement the service manager functions for initialization and shut down. |
|
|
4 |
Implement the service manager functions for command and event processing. |
|
|
5 |
Implement the service manager functions for tracing and error handling. |
|
|
6 |
Implement the service functions that interact with the managed resource. |