Difference between revisions of "Programmatic Administration Interface"
Manuele.simi (Talk | contribs) (→Add an existing Scope) |
Manuele.simi (Talk | contribs) (→Managing a gCube Hosting Node (gHN)) |
||
Line 31: | Line 31: | ||
'''Component(s) to contact''': [[GHN_Manager|gHNManager]] on the gHN | '''Component(s) to contact''': [[GHN_Manager|gHNManager]] on the gHN | ||
− | ''' | + | * '''Name''': [[GHN_Manager|gHNManager]] |
− | ''' | + | :* '''Where''': the Running Instance on the gHN |
− | '''Parameters''': <code>setClean=false</code>, <code>setRestart=false</code> | + | :* '''How to find it (them)''': query on the IS that looks for a RI of the gHNManager running on the gHN |
+ | |||
+ | :* '''Operation(s) to invoke''': [[GHN_Manager#Requesting_the_gHN_shutdown|shutdown]] | ||
+ | |||
+ | :* '''Parameters''': <code>setClean=false</code>, <code>setRestart=false</code> | ||
Line 42: | Line 46: | ||
'''Target''': Restart the node and preserve its state | '''Target''': Restart the node and preserve its state | ||
− | '''Component(s) to contact''': | + | '''Component(s) to contact''': |
− | ''' | + | * '''Name''': [[GHN_Manager|gHNManager]] |
− | ''' | + | :* '''Where''': the Running Instance on the gHN |
− | '''Parameters''': <code>setClean=false</code>, <code>setRestart=true</code> | + | :* '''How to find it''': query on the IS that looks for a RI of the gHNManager running on the gHN |
+ | |||
+ | :* '''Operation to invoke''': [[GHN_Manager#Requesting_the_gHN_restart|shutdown]] | ||
+ | |||
+ | :* '''Parameters''': <code>setClean=false</code>, <code>setRestart=true</code> | ||
Line 55: | Line 63: | ||
'''Target''': Restart the node and clean its actual state | '''Target''': Restart the node and clean its actual state | ||
− | '''Component(s) to contact''': | + | '''Component(s) to contact''': |
− | ''' | + | * '''Name''': [[GHN_Manager|gHNManager]] |
− | ''' | + | :* '''Where''': the Running Instance on the gHN |
− | '''Parameters''': <code>setClean=true</code>, <code>setRestart=true</code> | + | :* '''How to find it''': query on the IS that looks for a RI of the gHNManager running on the gHN |
+ | |||
+ | :* '''Operation to invoke''': [[GHN_Manager#Requesting_the_gHN_restart|shutdown]] | ||
+ | |||
+ | :* '''Parameters''': <code>setClean=true</code>, <code>setRestart=true</code> | ||
Line 69: | Line 81: | ||
'''Component(s) to contact''': | '''Component(s) to contact''': | ||
+ | |||
* '''Name''': [[Resource_Manager|Resource Manager]] | * '''Name''': [[Resource_Manager|Resource Manager]] | ||
− | :* '''Where''': the Running Instance | + | |
+ | :* '''Where''': the Running Instance managing the Scope to add | ||
+ | |||
:* '''How to find it''': query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is <code>/Resource/Profile/Body/Scope/text()=Scope Expression</code>, then extract the service URI from <code>/Resource/Profile/Body/Service/text()</code> | :* '''How to find it''': query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is <code>/Resource/Profile/Body/Scope/text()=Scope Expression</code>, then extract the service URI from <code>/Resource/Profile/Body/Service/text()</code> | ||
+ | |||
:* '''Operation to invoke''': [[Resource_Manager#Request_to_join_a_resource_to_the_scope|addResource]] | :* '''Operation to invoke''': [[Resource_Manager#Request_to_join_a_resource_to_the_scope|addResource]] | ||
− | :* '''Parameters''': | + | |
+ | :* '''Parameters''': the resource identifier, the resource type | ||
+ | |||
=== Add a new Scope === | === Add a new Scope === | ||
Line 79: | Line 97: | ||
'''Target''': Add a scope to a gHN and the related Service Map is not available on the gHN | '''Target''': Add a scope to a gHN and the related Service Map is not available on the gHN | ||
− | '''Component(s) to contact''': | + | '''Component(s) to contact''': |
− | ''' | + | * '''Name''': [[GHN_Manager|gHNManager]] (in case of VO scope) |
− | ''' | + | :* '''Where''': the Running Instance on the gHN |
− | '''Parameters''': | + | :* '''How to find it''': query on the IS that looks for a RI of the gHNManager running on the gHN |
+ | |||
+ | :* '''Operation to invoke''': [[GHN_Manager#Adding_a_new_GCUBEScope_to_the_gHN|addScope]] | ||
+ | |||
+ | :* '''Parameters''': | ||
+ | |||
+ | * '''Name''': [[Resource_Manager|Resource Manager]] | ||
+ | |||
+ | :* '''Where''': the Running Instance managing the Scope to add | ||
+ | |||
+ | :* '''How to find it''': query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is <code>/Resource/Profile/Body/Scope/text()=Scope Expression</code>, then extract the service URI from <code>/Resource/Profile/Body/Service/text()</code> | ||
+ | |||
+ | :* '''Operation to invoke''': [[Resource_Manager#Request_to_join_a_resource_to_the_scope|addResource]] | ||
+ | |||
+ | :* '''Parameters''': | ||
== Managing a Running Instance (RI) == | == Managing a Running Instance (RI) == |
Revision as of 17:01, 20 July 2010
This section describes the programming interfaces that allow to configure, manage and control nodes, services, applications and resources in a gCube infrastructure. As the gCube technology is deployed as a distributed system, there exist several APIs to manage the different areas of the system. This section is a single point of reference for all these APIs by grouping them for their logical purpose.
This section includes the following topics:
Managing a gCube Hosting Node (gHN) | Describes operations related to manage a node of the infrastructure: how to shut it down or restart it (with and without deleting its state), how to add a new scope and remove an existing scope. |
Managing a Running Instance (RI) | Describes operation related to running instance management: how to add a new scope and remove an existing scope, how to deploy and undeploy them |
Adding / Removing a Scope to a gCube Resource (different from gHN and RI) |
Describes how to add and delete scopes to gCube Resources that are not nodes or service's instances. |
Creating / Deleting a gCube Resource (different from gHN and RI) |
Describes how to manage gCube Resources. There are specific actions for each class of resource. |
Editing a gCube Resource | Describes how to change the representation of gCube Resources in the Information System. Depending on the resource type, different components have to be contacted for this. |
Banning a gCube Resource | Describes how to instruct the Information System to exclude certain gCube resource from a given scope. This operation is available for VO-Managers and makes sense especially for nodes and running instances, when the decision to join or not a scope is partially under the control of Site Managers. |
For each of them, a detailed explanation is provided about which component(s) must be contacted for doing what and which are the scope propagation rules.
Managing a gCube Hosting Node (gHN)
Shut down
Target: Shut down the node
Component(s) to contact: gHNManager on the gHN
- Name: gHNManager
- Where: the Running Instance on the gHN
- How to find it (them): query on the IS that looks for a RI of the gHNManager running on the gHN
- Operation(s) to invoke: shutdown
- Parameters:
setClean=false
,setRestart=false
- Parameters:
Restart
Target: Restart the node and preserve its state
Component(s) to contact:
- Name: gHNManager
- Where: the Running Instance on the gHN
- How to find it: query on the IS that looks for a RI of the gHNManager running on the gHN
- Operation to invoke: shutdown
- Parameters:
setClean=false
,setRestart=true
- Parameters:
Restart and Clean
Target: Restart the node and clean its actual state
Component(s) to contact:
- Name: gHNManager
- Where: the Running Instance on the gHN
- How to find it: query on the IS that looks for a RI of the gHNManager running on the gHN
- Operation to invoke: shutdown
- Parameters:
setClean=true
,setRestart=true
- Parameters:
Add an existing Scope
Target: Add a scope to a gHN and the related Service Map is already available on the gHN
Component(s) to contact:
- Name: Resource Manager
- Where: the Running Instance managing the Scope to add
- How to find it: query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is
/Resource/Profile/Body/Scope/text()=Scope Expression
, then extract the service URI from/Resource/Profile/Body/Service/text()
- How to find it: query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is
- Operation to invoke: addResource
- Parameters: the resource identifier, the resource type
Add a new Scope
Target: Add a scope to a gHN and the related Service Map is not available on the gHN
Component(s) to contact:
- Name: gHNManager (in case of VO scope)
- Where: the Running Instance on the gHN
- How to find it: query on the IS that looks for a RI of the gHNManager running on the gHN
- Operation to invoke: addScope
- Parameters:
- Name: Resource Manager
- Where: the Running Instance managing the Scope to add
- How to find it: query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is
/Resource/Profile/Body/Scope/text()=Scope Expression
, then extract the service URI from/Resource/Profile/Body/Service/text()
- How to find it: query on the IS that looks for a RI of the Resource Manager in the new scope or query on the IS that looks for the Generic Resource modeling the scope (the condition is
- Operation to invoke: addResource
- Parameters: