[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cosmos-dev] SDD profile stuff
|
Here is a slightly modified version based on our discussion today. I
defined a HandledType which has a "handler" attribute. All the types
that need "handler" attribute then extend HandledType. cim-profile.xml
shows an example of how this would look.
Bradley Beck
CA, Inc.
Sr Software Architect
Tel: +1-952-232-1720
Bradley.Beck@xxxxxx
-----Original Message-----
From: cosmos-dev-bounces@xxxxxxxxxxx
[mailto:cosmos-dev-bounces@xxxxxxxxxxx] On Behalf Of Jason Losh
Sent: Wednesday, February 04, 2009 2:59 PM
To: Cosmos Dev
Subject: [cosmos-dev] SDD profile stuff
Fodder for our runtime discussion in 3 minutes ... Sorry to send this
out as an attachment. I wanted to post these to the wiki but it is
running extremely slow. I'll get these posted to the wiki once it is
more responsive.
-Jason
<?xml version="1.0" encoding="UTF-8"?>
<cim:CIMProfile xmlns:cim="http://docs.oasis-open.org/sdd/ns/cim-profile"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docs.oasis-open.org/sdd/ns/cim-profile cim-profile.xsd ">
<cim:CIM_OperatingSystem handler="org.cosmos.sdd.runtime.resolvers.cim.operatingsystem">
<cim:OSType>
<cim:Value>Windows XP</cim:Value>
<cim:Value>LINUX</cim:Value>
<cim:Value>Solaris</cim:Value>
<cim:PropertyProvider handler="org.cosmos.sdd.runtime.resolvers.cim.operatingsystem.properties.ostype"/>
</cim:OSType>
<cim:Version>
<cim:PropertyProvider affinity="OSType" handler="org.cosmos.sdd.runtime.resolvers.cim.operatingsystem.osversion"/>
</cim:Version>
<cim:Hosts>CIM_FileSystem</cim:Hosts>
<cim:Hosts>CIM_J2eeJVM</cim:Hosts>
<cim:Hosts>CIM_J2eeApplicationServer</cim:Hosts>
</cim:CIM_OperatingSystem>
<cim:CIM_Processor handler="org.cosmos.sdd.runtime.resolvers.cim.processor">
<cim:Family>
<cim:Value>Pentium(R) brand</cim:Value>
<cim:Value>AMD Athlon(TM) Processor Family</cim:Value>
</cim:Family>
<cim:Hosts>CIM_Process</cim:Hosts>
</cim:CIM_Processor>
<cim:CIM_FileSystem>
<cim:FileSystemType>
<cim:Value>FAT32</cim:Value>
<cim:Value>NTFS</cim:Value>
<cim:PropertyProvider handler="org.cosmos.sdd.runtime.resolvers.cim.filesystem.filesystemtype"/>
</cim:FileSystemType>
<cim:AvailableSpace>
<cim:PropertyProvider/>
</cim:AvailableSpace>
<cim:Hosts>CIM_Directory</cim:Hosts>
</cim:CIM_FileSystem>
<cim:CIM_DatabaseSystem handler="org.cosmos.sdd.runtime.resolvers.cim.databasesystem">
<cim:Name>
<cim:Value>DB2</cim:Value>
<cim:Value>Derby</cim:Value>
<cim:Value>Oracle</cim:Value>
</cim:Name>
<cim:Status>
<cim:Value>OK</cim:Value>
<cim:Value>Starting</cim:Value>
<cim:Value>Stopping</cim:Value>
<cim:PropertyProvider affinity="Name"/>
</cim:Status>
<cim:Hosts>CIM_DatabaseFile</cim:Hosts>
</cim:CIM_DatabaseSystem>
<cim:CIM_J2eeJVM handler="org.cosmos.sdd.runtime.resolvers.cim.j2eejvm">
<cim:JavaVendor>
<cim:Value>Sun</cim:Value>
<cim:Value>IBM</cim:Value>
<cim:Value>BEA</cim:Value>
</cim:JavaVendor>
<cim:JavaVersion>
<cim:PropertyProvider affinity="JavaVendor"/>
</cim:JavaVersion>
<cim:Hosts>CIM_J2eeModule</cim:Hosts>
</cim:CIM_J2eeJVM>
<cim:CIM_Directory handler="org.cosmos.sdd.runtime.resolvers.cim.directory">
<cim:LastModified>
<cim:PropertyProvider/>
</cim:LastModified>
<cim:LastAccessed>
<cim:PropertyProvider/>
</cim:LastAccessed>
<cim:Readable>
<cim:PropertyProvider handler="org.cosmos.sdd.runtime.resolvers.cim.directory.properties.readable"/>
</cim:Readable>
<cim:Writeable>
<cim:PropertyProvider/>
</cim:Writeable>
<cim:Hosts>CIM_File</cim:Hosts>
</cim:CIM_Directory>
<cim:Artifacts handler="org.cosmos.sdd.runtime.operations.artifacts">
<cim:Value>MSI</cim:Value>
<cim:Value>RPM</cim:Value>
<cim:Value>ZIP</cim:Value>
</cim:Artifacts>
</cim:CIMProfile>
Attachment:
cim-profile.xsd
Description: cim-profile.xsd