org.jclouds.privatechef
Interface PatchedChefApi

All Superinterfaces:
org.jclouds.chef.ChefApi

public interface PatchedChefApi
extends org.jclouds.chef.ChefApi

Private chef api seems to miss support for HEAD method in the node resource. This class overrides the ChefApi.nodeExists(String) method to use GET instead of HEAD.

Author:
Ignasi Barrera

Method Summary
 boolean nodeExists(String name)
           
 
Methods inherited from interface org.jclouds.chef.ChefApi
clientExists, commitSandbox, createClient, createClient, createDatabag, createDatabagItem, createNode, createRole, databagExists, databagItemExists, deleteClient, deleteCookbook, deleteDatabag, deleteDatabagItem, deleteNode, deleteRole, generateKeyForClient, getClient, getCookbook, getDatabagItem, getNode, getResourceContents, getRole, getUploadSandboxForChecksums, getVersionsOfCookbook, listClients, listCookbooks, listDatabagItems, listDatabags, listNodes, listRoles, listSearchIndexes, roleExists, searchClients, searchClients, searchDatabag, searchDatabag, searchNodes, searchNodes, searchRoles, searchRoles, updateCookbook, updateDatabagItem, updateNode, updateRole, uploadContent
 

Method Detail

nodeExists

boolean nodeExists(String name)
Specified by:
nodeExists in interface org.jclouds.chef.ChefApi
Returns:
true if the specified node name exists.
Throws:
org.jclouds.rest.AuthorizationException -

"401 Unauthorized" if you are not a recognized user.

"403 Forbidden" if you do not have rights to view the node.



Copyright © 2013 jclouds. All Rights Reserved.