org.opennms.rancid
Class RWSClientApi
java.lang.Object
org.opennms.rancid.RWSClientApi
public class RWSClientApi
- extends Object
|
Method Summary |
static void |
createBucket(ConnectionProperties cp,
String bucketName)
|
static void |
createOrUpdateRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
|
static void |
createOrUpdateRWSAuthNode(String baseUri,
RancidNodeAuthentication rnodea)
|
static void |
createOrUpdateRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
|
static void |
createRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
|
static void |
createRWSGroup(ConnectionProperties cp,
String group)
|
static void |
createRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
|
static void |
createRWSRancidNode(String baseUri,
RancidNode rnode)
|
static void |
deleteBucket(ConnectionProperties cp,
String bucketName)
|
static void |
deleteBucketItem(ConnectionProperties cp,
String bucketName,
String fileName)
|
static void |
deleteRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
|
static void |
deleteRWSAuthNode(String baseUri,
RancidNodeAuthentication rnodea)
|
static void |
deleteRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
|
static void |
deleteRWSRancidNode(String baseUri,
RancidNode rnode)
|
static RWSBucket |
getBucket(ConnectionProperties cp,
String bucketName)
|
static byte[] |
getBucketItem(ConnectionProperties cp,
String bucketName,
String filename)
|
static RWSResourceList |
getBuckets(ConnectionProperties cp)
|
static RancidNodeAuthentication |
getRWSAuthNode(ConnectionProperties cp,
String devicename)
|
static RancidNodeAuthentication |
getRWSAuthNode(String baseUri,
String devicename)
|
static InventoryNode |
getRWSInventoryNode(ConnectionProperties cp,
RancidNode rancidNode,
String version)
|
static InventoryNode |
getRWSInventoryNode(RancidNode rancidNode,
String baseUri,
String version)
|
static RancidNode |
getRWSRancidNode(ConnectionProperties cp,
String group,
String devicename)
|
static RancidNode |
getRWSRancidNode(String baseUri,
String group,
String devicename)
|
static RancidNode |
getRWSRancidNodeInventory(ConnectionProperties cp,
String group,
String deviceName)
|
static RancidNode |
getRWSRancidNodeInventory(String baseUri,
String group,
String deviceName)
|
static InventoryElement |
getRWSRancidNodeInventoryElement(ConnectionProperties cp,
RancidNode rancidNode,
String version)
|
static List<InventoryElement2> |
getRWSRancidNodeInventoryElement2(ConnectionProperties cp,
RancidNode rancidNode,
String version)
|
static RancidNode |
getRWSRancidNodeTLO(ConnectionProperties cp,
String group,
String devicename)
|
static RWSResourceList |
getRWSResourceConfigList(ConnectionProperties cp,
String group,
String deviceName)
|
static RWSResourceList |
getRWSResourceConfigList(String baseUri,
String group,
String deviceName)
|
static RWSResourceList |
getRWSResourceDeviceList(ConnectionProperties cp,
String group)
|
static RWSResourceList |
getRWSResourceDeviceList(String baseUri,
String group)
|
static RWSResourceList |
getRWSResourceDeviceTypesPatternList(ConnectionProperties cp)
|
static RWSResourceList |
getRWSResourceDeviceTypesPatternList(String baseUri)
|
static RWSResourceList |
getRWSResourceGroupsList(ConnectionProperties cp)
|
static RWSResourceList |
getRWSResourceGroupsList(String baseUri)
|
static RWSResourceList |
getRWSResourceList(ConnectionProperties cp,
String subUri)
|
static RWSResourceList |
getRWSResourceList(String baseUri,
String subUri)
|
static RWSResourceList |
getRWSResourceLoginPatternList(ConnectionProperties cp)
|
static RWSResourceList |
getRWSResourceLoginPatternList(String baseUri)
|
static RWSResourceList |
getRWSResourceRAList(ConnectionProperties cp)
|
static RWSResourceList |
getRWSResourceRAList(String baseUri)
|
static RWSResourceList |
getRWSResourceServicesList(ConnectionProperties cp)
|
static RWSResourceList |
getRWSResourceServicesList(String baseUri)
|
static void |
init()
|
static boolean |
isRWSAvailable(ConnectionProperties cp)
|
static void |
updateBucket(ConnectionProperties cp,
String bucketName,
String fileName,
InputStream io)
|
static void |
updateRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
|
static void |
updateRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
|
static void |
updateRWSRancidNode(String baseUri,
RancidNode rnode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RWSClientApi
public RWSClientApi()
init
public static void init()
isRWSAvailable
public static boolean isRWSAvailable(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceList
public static RWSResourceList getRWSResourceList(ConnectionProperties cp,
String subUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceList
public static RWSResourceList getRWSResourceList(String baseUri,
String subUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceServicesList
public static RWSResourceList getRWSResourceServicesList(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceServicesList
public static RWSResourceList getRWSResourceServicesList(String baseUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceRAList
public static RWSResourceList getRWSResourceRAList(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceRAList
public static RWSResourceList getRWSResourceRAList(String baseUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceGroupsList
public static RWSResourceList getRWSResourceGroupsList(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceGroupsList
public static RWSResourceList getRWSResourceGroupsList(String baseUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceDeviceList
public static RWSResourceList getRWSResourceDeviceList(ConnectionProperties cp,
String group)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceDeviceList
public static RWSResourceList getRWSResourceDeviceList(String baseUri,
String group)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceLoginPatternList
public static RWSResourceList getRWSResourceLoginPatternList(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceLoginPatternList
public static RWSResourceList getRWSResourceLoginPatternList(String baseUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceDeviceTypesPatternList
public static RWSResourceList getRWSResourceDeviceTypesPatternList(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceDeviceTypesPatternList
public static RWSResourceList getRWSResourceDeviceTypesPatternList(String baseUri)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceConfigList
public static RWSResourceList getRWSResourceConfigList(ConnectionProperties cp,
String group,
String deviceName)
throws RancidApiException
- Throws:
RancidApiException
getRWSResourceConfigList
public static RWSResourceList getRWSResourceConfigList(String baseUri,
String group,
String deviceName)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNodeTLO
public static RancidNode getRWSRancidNodeTLO(ConnectionProperties cp,
String group,
String devicename)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNode
public static RancidNode getRWSRancidNode(ConnectionProperties cp,
String group,
String devicename)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNode
public static RancidNode getRWSRancidNode(String baseUri,
String group,
String devicename)
throws RancidApiException
- Throws:
RancidApiException
createRWSGroup
public static void createRWSGroup(ConnectionProperties cp,
String group)
throws RancidApiException
- Throws:
RancidApiException
createRWSRancidNode
public static void createRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
createRWSRancidNode
public static void createRWSRancidNode(String baseUri,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
updateRWSRancidNode
public static void updateRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
updateRWSRancidNode
public static void updateRWSRancidNode(String baseUri,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
createOrUpdateRWSRancidNode
public static void createOrUpdateRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
deleteRWSRancidNode
public static void deleteRWSRancidNode(ConnectionProperties cp,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
deleteRWSRancidNode
public static void deleteRWSRancidNode(String baseUri,
RancidNode rnode)
throws RancidApiException
- Throws:
RancidApiException
getRWSInventoryNode
public static InventoryNode getRWSInventoryNode(ConnectionProperties cp,
RancidNode rancidNode,
String version)
throws RancidApiException
- Throws:
RancidApiException
getRWSInventoryNode
public static InventoryNode getRWSInventoryNode(RancidNode rancidNode,
String baseUri,
String version)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNodeInventory
public static RancidNode getRWSRancidNodeInventory(ConnectionProperties cp,
String group,
String deviceName)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNodeInventory
public static RancidNode getRWSRancidNodeInventory(String baseUri,
String group,
String deviceName)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNodeInventoryElement
public static InventoryElement getRWSRancidNodeInventoryElement(ConnectionProperties cp,
RancidNode rancidNode,
String version)
throws RancidApiException
- Throws:
RancidApiException
getRWSRancidNodeInventoryElement2
public static List<InventoryElement2> getRWSRancidNodeInventoryElement2(ConnectionProperties cp,
RancidNode rancidNode,
String version)
throws RancidApiException
- Throws:
RancidApiException
getRWSAuthNode
public static RancidNodeAuthentication getRWSAuthNode(ConnectionProperties cp,
String devicename)
throws RancidApiException
- Throws:
RancidApiException
getRWSAuthNode
public static RancidNodeAuthentication getRWSAuthNode(String baseUri,
String devicename)
throws RancidApiException
- Throws:
RancidApiException
createRWSAuthNode
public static void createRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
updateRWSAuthNode
public static void updateRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
createOrUpdateRWSAuthNode
public static void createOrUpdateRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
createOrUpdateRWSAuthNode
public static void createOrUpdateRWSAuthNode(String baseUri,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
deleteRWSAuthNode
public static void deleteRWSAuthNode(ConnectionProperties cp,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
deleteRWSAuthNode
public static void deleteRWSAuthNode(String baseUri,
RancidNodeAuthentication rnodea)
throws RancidApiException
- Throws:
RancidApiException
getBuckets
public static RWSResourceList getBuckets(ConnectionProperties cp)
throws RancidApiException
- Throws:
RancidApiException
getBucket
public static RWSBucket getBucket(ConnectionProperties cp,
String bucketName)
throws RancidApiException
- Throws:
RancidApiException
getBucketItem
public static byte[] getBucketItem(ConnectionProperties cp,
String bucketName,
String filename)
throws RancidApiException
- Throws:
RancidApiException
createBucket
public static void createBucket(ConnectionProperties cp,
String bucketName)
throws RancidApiException
- Throws:
RancidApiException
deleteBucket
public static void deleteBucket(ConnectionProperties cp,
String bucketName)
throws RancidApiException
- Throws:
RancidApiException
updateBucket
public static void updateBucket(ConnectionProperties cp,
String bucketName,
String fileName,
InputStream io)
throws RancidApiException
- Throws:
RancidApiException
deleteBucketItem
public static void deleteBucketItem(ConnectionProperties cp,
String bucketName,
String fileName)
throws RancidApiException
- Throws:
RancidApiException
Copyright © 2012. All Rights Reserved.