jclouds / legacy-jclouds

https://jclouds.apache.org
466 stars 217 forks source link

add support to get instance creation datetime from compute api (NodeMetadata? ) #1497

Open hackndoes opened 11 years ago

hackndoes commented 11 years ago

There is a need to get the creation datetime of an instance using the compute api for generic cross cloud provider support.

demobox commented 11 years ago

Note that for e.g. EC2 RunningInstance already has launchTime information. Initial questions from me would be:

abayer commented 11 years ago

fwiw, I tend to think this is worthwhile - EC2, OpenStack Nova and CloudStack all have a launch time (or created time) field. It would need to be Nullable, given how many of the other APIs don't have it (i.e., vcloud, byon, cloudservers...), but it seems reasonable to add it to NodeMetadata when possible.

demobox commented 11 years ago

EC2, OpenStack Nova and CloudStack all have a launch time

Seems like the current "big guns", indeed... ;-)

Do we do @Nullable launchTime or Optional<...> launchTime in NodeMetadata nowadays? @adriancole ?

codefromthecrypt commented 11 years ago

I could go either way since the class already has nullable fields. Personally, I prefer Optional.