I think the piece you might be missing is the ServerAsyncApi [1]. The methods in ServerAsyncApi map to the methods in ServerApi. The annotations on the methods in ServerAsyncApi are processed by the RestAnnotationProcessor.
Everett [1] https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/features/ServerAsyncApi.java#L224-225 On Feb 28, 2014, at 1:07 AM, Jeffrey Nguyen (jeffrngu) <jeffr...@cisco.com> wrote: > > > Hi Andrew, > > Thank you for the pointers on how ServerApi is implemented. I'm still > having trouble understanding how each of the methods defined in ServerApi > class is translated into Rest calls to the underline OpenStack. > > Take the ServerApi.create() method as an example. How is the invocation > to this method mapped into a Rest call in RestAnnotationProcessor? I > know what the request and response for this particular Rest API looks like > based on the test code. However, I don't really see the connection > between ServerApi and RestAnnotationProcessor. It looks like > ContextBuilder is also involved. > > Could you or someone on the @Dev mailing list shed some lights on this? > > Thanks, > -Jeffrey > > On 2/27/14 2:52 PM, "Jeffrey Nguyen (jeffrngu)" <jeffr...@cisco.com> wrote: > >> Thanks Andrew for the quick reply. >> >> JCLOUDS-416 seems to deal with the ability to assign a list of private >> network UUIDs to a template via the networks() method. I'm aware of this >> new enhancement in 1.7.1 and already using it. >> >> What I'm trying to do is be able to specify a private IP address for each >> of those network UUIDs. What I observe now is for each of the network >> UUIDs I specify, when I create a new node, OpenStack assigns a random IP >> for that particular network. I want to be able to tell jCloud/OpenStack >> to use a fixed private IP address. >> >> It looks like jClouds currently does not support this, so I'm trying to >> see what's involved to add that feature. >> >> Any pointer on how to go about doing that? >> >> Thanks, >> -Jeffrey >> >> >> On 2/27/14 2:27 PM, "Andrew Phillips" <aphill...@qrmedia.com> wrote: >> >>>> I'm trying to see if it's possible to modify the create() method so >>>> that I can inject the list of private IP addresses instead of taking >>>> random values assigned by OpenStack. >>> >>> I think JCLOUDS-416 [1] might help you, if I am understanding your >>> question correctly..? >>> >>> ap >>> >>> [1] https://issues.apache.org/jira/browse/JCLOUDS-416 >> >