|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceFactoryManagerRemote
Method Summary | |
---|---|
void |
createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits)
Creates a new physical resource. |
void |
createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration)
Creates a new physical resource. |
void |
deleteResource(Subject subject,
int resourceId)
Deletes a physical resource from the agent machine. |
Method Detail |
---|
void createResource(Subject subject, int parentResourceId, int resourceTypeId, String resourceName, Configuration pluginConfiguration, Configuration resourceConfiguration)
CreateDeletePolicy.BOTH
or
CreateDeletePolicy.CREATE_ONLY
. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONFIGURATION
. If this call is made for
a resource type that cannot be created via a configuration, the plugin container will throw an exception.
subject
- user requesting the creationparentResourceId
- parent resource under which the new resource should be createdresourceTypeId
- type of resource to createresourceName
- name of the resource being createdpluginConfiguration
- optional plugin configuration that may be needed in order to create the new resourceresourceConfiguration
- resource configuration for the new resourcevoid createPackageBackedResource(Subject subject, int parentResourceId, int newResourceTypeId, String newResourceName, Configuration pluginConfiguration, String packageName, String packageVersion, Integer architectureId, Configuration deploymentTimeConfiguration, byte[] packageBits)
CreateDeletePolicy.BOTH
or
CreateDeletePolicy.CREATE_ONLY
. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONTENT
. If this call is made for a
resource type that cannot be created via an package, the plugin container will throw an exception.
subject
- user requesting the creationparentResourceId
- parent resource under which the new resource should be creatednewResourceTypeId
- identifies the type of resource being creatednewResourceName
- Ignored, pass null. This is determined from the package.pluginConfiguration
- optional plugin configuration that may be needed in order to create the new
resourcepackageName
- name of the package that will be created as a result of this resource createpackageVersion
- The string version of the package. If null will be set to system timestamp (long)architectureId
- Id of the target architecture of the package, null indicates NoArch (any).deploymentTimeConfiguration
- dictates how the package will be deployedpackageBits
- content of the package to createvoid deleteResource(Subject subject, int resourceId)
subject
- user requesting the creationresourceId
- resource being deleted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |