Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Data Services Developer's Guide Oracle Solaris Cluster 4.1 |
1. Overview of Resource Management
3. Resource Management API Reference
6. Data Service Development Library
8. Sample DSDL Resource Type Implementation
9. Oracle Solaris Cluster Agent Builder
12. Cluster Reconfiguration Notification Protocol
13. Security for Data Services
A. Sample Data Service Code Listings
Resource Type Registration File Listing
Monitor_start Method Code Listing
Monitor_stop Method Code Listing
Monitor_check Method Code Listing
B. DSDL Sample Resource Type Code Listings
C. Requirements for Non-Cluster-Aware Applications
D. Document Type Definitions for the CRNP
The gettime utility is a C program that is used by the PROBE program to track the elapsed time between restarts of the probe. You must compile this program and place it in the same directory as the callback methods, that is, the directory pointed to by the RT_basedir property.
Example A-4 gettime.c Utility Program
# This utility program, used by the probe method of the data service, tracks # the elapsed time in seconds from a known reference point (epoch point). It # must be compiled and placed in the same directory as the data service callback # methods (RT_basedir). #pragma ident “@(#)gettime.c 1.1 12/01/24” #include <stdio.h> #include <sys/types.h> #include <time.h> main() { printf(“%d\n”, time(0)); exit(0); }