com.abiquo.api.resources.JavaResource Class Reference

This class represents a JavaResource, and allows to remotely execute Java classes. More...

Inherits ResourceInstance.

List of all members.

Public Member Functions

 JavaResource ()
 Creates a new JavaResource with the default values.
 JavaResource (ResourceInstance resourceInstance)
 Creates a new JavaResource based on a generic ResourceInstance.
 JavaResource (String localId, InstanceName instanceName, List< Property > propertyList)
 Creates a new JavaResource based on the parameters.
Job executeAttachedInput (String className, String[] args)
 Creates a new Job which once executed, runs the class with the attached arguments.
Job executeAttachedInputAndEmbedded (String className, String[] args, List< Data > lstEmbeddedData)
 Creates a new Job which once executed, runs the the class with the attached arguments and inputs data.

Static Public Member Functions

static JavaResource cast (ResourceInstance resourceInstance)
 Converts a generic ResourceInstance into a new one of type JavaResource.

Static Public Attributes

static final String ID = "JavaResource"
 String containing the identifier for this resource.


Detailed Description

This class represents a JavaResource, and allows to remotely execute Java classes.

Constructor & Destructor Documentation

com.abiquo.api.resources.JavaResource.JavaResource ( ResourceInstance  resourceInstance  ) 

Creates a new JavaResource based on a generic ResourceInstance.

Parameters:
resourceInstance The generic ResourceInstance

com.abiquo.api.resources.JavaResource.JavaResource ( String  localId,
InstanceName  instanceName,
List< Property >  propertyList 
)

Creates a new JavaResource based on the parameters.

Parameters:
localId the local id
instanceName the name
propertyList the property list


Member Function Documentation

static JavaResource com.abiquo.api.resources.JavaResource.cast ( ResourceInstance  resourceInstance  )  [static]

Converts a generic ResourceInstance into a new one of type JavaResource.

Parameters:
resourceInstance The generic ResourceInstance
Returns:
The resultant JavaResource

Job com.abiquo.api.resources.JavaResource.executeAttachedInput ( String  className,
String[]  args 
)

Creates a new Job which once executed, runs the class with the attached arguments.

Parameters:
className The class name
args The arguments
Returns:
The Job containing information about the demand

Job com.abiquo.api.resources.JavaResource.executeAttachedInputAndEmbedded ( String  className,
String[]  args,
List< Data >  lstEmbeddedData 
)

Creates a new Job which once executed, runs the the class with the attached arguments and inputs data.

Parameters:
className the class name
args the arguments
lstEmbeddedData the embedded data list
Returns:
The Job containing information about the demand


Member Data Documentation

final String com.abiquo.api.resources.JavaResource.ID = "JavaResource" [static]

String containing the identifier for this resource.

Note:
To avoid misspellings when provision a resource, you should use this constant ID instead of a manually typed string.


The documentation for this class was generated from the following file:

Generated on Mon Sep 15 20:13:10 2008 for FrameworkAPI by  doxygen 1.5.5