1 a.dunfey 1.6.8.1 //%2006////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 // IBM Corp.; EMC Corporation, The Open Group.
7 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
11 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
13 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
15 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
20 //
21 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 a.dunfey 1.6.8.1 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
|
94 schuur 1.1
95 The provider interfaces follow the SNIA OpenWBEM APIs
96 Only Instance and Association providers are supported at the moment.
97 SetProperty and GetProperty CIM operations will crash cimserver
98 Jar support is not yet implemented - all classes must be accessable via the CLASSPATH variabe.
99 The Makefiles are not yet Pegasus conforming.
100 cimmofl must be used for provider registration.
101
102 Unloading of idle providers is not supported and Java will increase the memory footprint.
103
104
105 poststarttests
106
107 This installment has a set of tests modelled after wetest/static. All tests work properly except
108 the Property tests. I had to modify "diff" to "diff -w", why that is needed I do not understand.
109
110
111 Building poststarttests:
112
113 cd to .../src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests/Load
114 Issue "make"
115 schuur 1.1
116 This will load a schema to the repository and register the provider.
117
118
119 Running poststarttests:
120
121 cd to .../src/Pegasus/ProviderManager2/JMPI/org/pegasus/jmpi/tests
122 Issue "find -name "*.rsp" -exec rm {} \;" to clean up *.rsp files
123 Issue "make poststarttests"
124
125
126 Samples
127
128 The provider used for posstarttest,
129 .../JMPI/org/pegasus/jmpi/test/JMPI_TestPropertyTypes/JMPI_TestPropertyTest.java is a working
130 example of how to code an JMPI tyle instance provider.
131 This directors also constains the required Makefile.
132
133 .../JMPI/org/pegasus/jmpi/sample contains more samples, one of which is an incomplete CIMClient
134 sample.
135
136 schuur 1.1 Notice that all provider classes must be accessibe via the CASSPATH environment setting.
137
138
139 Provider Registration
140
141 JMPI providers are registered as usual. The Location property in P_ProviderModule has a special format.
142 The format is: <jar-file-name>:<provider-class-name>
143
144 Although jar support is not yet working correctly, this format must be used. You should use cimmofl
145 for registration untill cimmof is prepared for JMPI.
146
147 instance of PG_ProviderModule
148 {
149 Name = "JMPI_TestPropertyTypesModule";
150 Location = "JMPI_TestPropertyTypes.jar:"
151 "org/pegasus/jmpi/tests/JMPI_TestPropertyTypes/JMPI_TestPropertyTypes";
152 Vendor = "Pegasus Community";
153 Version = "2.0.0";
154 InterfaceType = "JMPI";
155 InterfaceVersion = "1.0.0";
156 };
157 schuur 1.1
158
159 Bug reports
160
|