Hi,

In our project we are trying to write a generic piece of code across cloud
vendors to fetch instance details. The current way to achieve this is by
making a context (the attributes to which might vary depending on the
provider) and then using the  getComputeService(). The problem comes when
we need to access provider specific details. Is there a way in JClouds 1.6
and above, through which we can achieve this while keeping the code generic?

For Example:
ComputeServiceContext context =
ContextBuilder.newBuilder("aws-ec2").credentials("identifier",
"credentials") .buildView(ComputeServiceContext.class);

To get the list of nodes:
context.getComputeService().listNodes();

Here the nodes will be represented using NodeMetaData having standard
attributes which hold true for all the cloud providers. What if I wish to
access say aws-ec2 specific attributes without compromising on the generic
code which hold true across vendors?

-- 
Thanks and Regards,
Shruti Mehra

Reply via email to