public class ISClientRequester
extends java.lang.Object
BrokerService
and the gCube
Information System.
Holds the persistent stand-alone resource where stores the status
of monitored gCube Resources.
After a delay the information about the monitored resources is refreshed
by TUpdateGHNProfiles
thread.Constructor and Description |
---|
ISClientRequester() |
Modifier and Type | Method and Description |
---|---|
static Tuple<java.lang.String> |
getRIAndGHN(GCUBEScope queryScope,
java.lang.String riID)
Given an RI identifier and the scope in which it shoud be retrieved,
the IS is queried about the corresponding GHN on which the RI
is actually running.
|
static GHNDescriptor |
getRIOnGHNByID(GCUBEScope queryScope,
java.lang.String ghnID)
Returns the
GHNDescriptor for a given GHN_ID in a given scope. |
static java.util.List<GHNDescriptor> |
getRIOnGHNs(GCUBEScope queryScope)
Returns the list of
GHNDescriptor declared in this scope. |
public static final java.util.List<GHNDescriptor> getRIOnGHNs(GCUBEScope queryScope) throws java.lang.Exception
GHNDescriptor
declared in this scope.queryScope
- the scope in which the query must be executed.GHNDescriptor
elems.java.lang.Exception
- if something goes wrong.public static final Tuple<java.lang.String> getRIAndGHN(GCUBEScope queryScope, java.lang.String riID) throws java.lang.Exception
Given an RI identifier and the scope in which it shoud be retrieved, the IS is queried about the corresponding GHN on which the RI is actually running.
Returns a Tuple
of two elements RI_ID and GHN_ID.
>
queryScope
- the scope of RIriID
- the unique ID of the RunningInstancejava.lang.Exception
- if IS query failspublic static final GHNDescriptor getRIOnGHNByID(GCUBEScope queryScope, java.lang.String ghnID) throws java.lang.Exception
GHNDescriptor
for a given GHN_ID in a given scope.queryScope
- the scope in which the query must be executed.ghnID
- the ghn identifier to lookup.java.lang.Exception
- if something goes wrong.