com.sun.grid.jgrid.proxy
Interface DRMAdapter


public interface DRMAdapter

This class represents an abstraction layer for native communications with a DRM.

Since:
0.1

Method Summary
 void connect(java.lang.String initializationString)
          This method establishes a connection with the underlying DRM.
 void disconnect()
          This method disconnects from the underlying DRM.
 void submitJob(java.lang.String skeleton, java.lang.String jobId)
          This method submits a job to the underlying DRM
 

Method Detail

connect

public void connect(java.lang.String initializationString)
             throws DRMException
This method establishes a connection with the underlying DRM.

Parameters:
initializationString - An implementation specific initialization string
Throws:
DRMException - thrown when an error occurs connecting to the DRM

submitJob

public void submitJob(java.lang.String skeleton,
                      java.lang.String jobId)
               throws DRMException
This method submits a job to the underlying DRM

Parameters:
skeleton - the job native compute peer
jobId - the JGrid id of the job
Throws:
DRMException - thrown when there's an error submitting the job to the DRM

disconnect

public void disconnect()
                throws DRMException
This method disconnects from the underlying DRM.

Throws:
DRMException - thrown when there is an error disconnecting from the DRM