Difference between revisions of "GHN Manager"
From Gcube Wiki
Manuele.simi (Talk | contribs) (→Operations) |
Manuele.simi (Talk | contribs) (→Introduction) |
||
Line 1: | Line 1: | ||
==== Introduction ==== | ==== Introduction ==== | ||
− | The gHNManager is a gCube Local Service | + | The gHNManager is a gCube Local Service providing an interface for remotely managing the gHN. In particular, the service is responsible for: |
+ | |||
+ | * the management and changes of the scope of the node and the locally deployed service instances according to the [https://wiki.gcore.research-infrastructures.eu/gCube/index.php/Scope_Management Scope Management rules]; | ||
+ | * publishing in the [[Information_System|Information System]] the gCube Resource representing the gHN; | ||
+ | * shutdown and restarting the gHN. | ||
==== Implementation overview ==== | ==== Implementation overview ==== |
Revision as of 15:56, 5 March 2010
Introduction
The gHNManager is a gCube Local Service providing an interface for remotely managing the gHN. In particular, the service is responsible for:
- the management and changes of the scope of the node and the locally deployed service instances according to the Scope Management rules;
- publishing in the Information System the gCube Resource representing the gHN;
- shutdown and restarting the gHN.
Implementation overview
The gHNManager is a stateless service since it manages the state of local GCUBE Resources (node and instances). The service has one port-type providing the operations to manipulate such a state. As it has to be contacted in all the GHN scopes, it is always in all the scopes of the node resources.
Operations
The main functions supported by gHNManager (thanks to the support of the gCube Application Framework and its scope management) are:
- addScope() – takes as input a valid scope expression; the scope is assigned to the gHN
- removeScope() – takes as input a valid scope expression; the scope is removed from the gHN
- addRItoScope() – takes as input a valid scope expression, a service name and a service class; the scope is assigned to the local instance identified by the given name and class.
- removeRIScope() – takes as input a valid scope expression, a service name and a service class; the scope is removed from the local instance identified by the given name and class.
- shutdown()– takes as input a set of non-mandatory options; as basic behavior it shutdowns the gHN, depending on the input options, the gHN state is cleaned and the container is restarted.