Download presentation
Presentation is loading. Please wait.
Published byAngel Park Modified over 8 years ago
1
Kelly Davis and Tom Goodale How to Write an Adaptor Kelly Davis and Tom Gooldale kdavis@aei.mpg.dekdavis@aei.mpg.de and goodale@aei.mpg.degoodale@aei.mpg.de AEI-MPG
2
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
3
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
4
Kelly Davis and Tom Goodale Introduction What is an Adaptor? An adaptor is a software component which adapts the interface of a one software component to the interface expected by a second software component.
5
Kelly Davis and Tom Goodale Introduction What is an Adaptor? An adaptor is a software component which adapts the interface of a one software component to the interface expected by a second software component.
6
Kelly Davis and Tom Goodale Introduction How are Adaptors used in GAT? GAT = Client CPIClass = Target GATAdaptor = Adaptor GATAdaptee = Adaptee
7
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
8
Kelly Davis and Tom Goodale Cpi Classes What are Cpi Classes? CpiClasses are abstract classes that present to GAT a well defined interface and thus allow for the existence of GATAdaptors
9
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
10
Kelly Davis and Tom Goodale File Management FileCpi LogicalFileCpi FileCpi - Abstract class that one must extend to provide the File capability. LogicalFileCpi - Abstract class that one must extend to provide the LogicalFile capability.
11
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
12
Kelly Davis and Tom Goodale Collection Management CollectionCpi CollectionCpi - Abstract class that one must extend to provide the Collection capability.
13
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
14
Kelly Davis and Tom Goodale Resource Management ResourceBrokerCpi ResourceBrokerCpi - Abstract class that one must extend to provide the ResourceBroker capability.
15
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
16
Kelly Davis and Tom Goodale Peer-to-Peer Interaction StreamCpi StreamCpi - Abstract class that one must extend to provide the Stream capability.
17
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
18
Kelly Davis and Tom Goodale Job Management SimpleJobCpi CheckpointableSimpleJobCpi SimpleJobCpi - Abstract class that one must extend to provide the SimpleJob capability. checkpointableSimpleJobCpi - Abstract class that one must extend to provide the CheckpointableSimpleJob capability.
19
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
20
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
21
Kelly Davis and Tom Goodale Implement the CPI Functions
22
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
23
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
24
Kelly Davis and Tom Goodale Create Manifest: Java Standard Attributes Manifest-Version Created-By Extension-Name Implementation-Title … GAT Attributes FileCpi-class FileCpi-schema Manifest-Version: 1.0 Created-By: 1.4.1_01 (Apple Computer, Inc.) Extension-Name: org.gridlab.gat.adaptors.file Implementation-Title: MyFirstAdaptor Implementation-Version: 1.0 Implementation-Vendor: GridLab Implementation-Vendor-Id: org.gridlab Implementation-URL: http://www.gridlab.org/file.jar Sealed: true FileCpi-class: org.gridlab.gat.adaptors.file.MyFileCpi FileCpi-schema: httpg
25
Kelly Davis and Tom Goodale Create Manifest: C Standard Attributes Manifest-Version Created-By Extension-Name Implementation-Title … GAT Attributes GAT-SO GAT-FileCpi-Constructor GAT-FileCpi-Equals … Manifest-Version: 1.0 Created-By: 1.4.1_01 (Apple Computer, Inc.) Extension-Name: MyFileCpi Implementation-Title: MyFirstAdaptor Implementation-Version: 1.0 Implementation-Vendor: GridLab Implementation-Vendor-Id: org.gridlab Implementation-URL: http://www.gridlab.org/file.jarhttp://www.gridlab.org/file.jar FileCpi-schema: httpg GAT-SO: file.so GAT-FileCpi-Constructor: MyFileCpi_Constructor GAT-FileCpi-Equals: MyFileCpi_Equals …
26
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
27
Kelly Davis and Tom Goodale Jar Manifest and Shared Object Java C >ls MANIFEST.MF org >jar cmf MANIFEST.MF file.jar org/ >ls MANIFEST.MF file.so >jar cmf MANIFEST.MF file.jar file.so
28
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
29
Kelly Davis and Tom Goodale Sign the jar Java and C >jarsigner file.jar kdavis
30
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
31
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
32
Kelly Davis and Tom Goodale Install the Signed jar Java C lib/ext [in the JRE] jre/lib/ext [in the Java 2 SDK] lib/ext [in the GAT install dir]
33
Kelly Davis and Tom Goodale Outline Introduction Cpi Classes File Management Collection Management Resource Management Peer-to-Peer Interaction Job Management Implementing a Provider Implement the Cpi functions Create a shared object Create a Manifest Jar the Manifest and shared object Sign the jar Integrating a Provider Install the signed jar Off to the races!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.