CreateJCloudsContainerOptions opts = args.withUser(args.getUser(), args.getPassword(), "admin").build();
FabricPlugin.getLogger().debug("Compute Service: " + opts.getComputeService());
// finally create the image
final CreateJCloudsContainerMetadata metadata = provider.create(opts, new CreationStateListener() {
@Override
public void onStateChange(String message) {
monitor.subTask(message);
}
});
// on failure we don't add the cloud image to the navigator
Throwable failure = metadata.getFailure();
if (failure != null) {
return new Status(Status.ERROR, FabricPlugin.PLUGIN_ID, "Failed to create Fabric: " + fabricName, failure);
}
// now extract the public IP from the meta data
final StringBuilder urisBuilder = new StringBuilder();
for(String address:metadata.getPublicAddresses()) {
urisBuilder.append(address).append(",");
}
final CreateJCloudsContainerOptions.Builder arguments = args;
Viewers.async(new Runnable() {