public class TestUsageRecord extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
HALF_DURATION |
static String |
TEST_CALLED_METHOD |
static String |
TEST_CALLER_HOST |
static String |
TEST_CONSUMER_ID |
static String |
TEST_HOST |
static String |
TEST_JOB_NAME |
static UsageRecord.OperationResult |
TEST_JOB_OPERATION_RESULT |
static String |
TEST_JOB_QUALIFIER |
static String |
TEST_PROPERTY_NAME |
static String |
TEST_PROPERTY_VALUE |
static String |
TEST_PROVIDER_URI |
static String |
TEST_RESOUCE_OWNER |
static String |
TEST_RESOUCE_SCOPE |
static String |
TEST_RESOURCE_URI |
static String |
TEST_SCOPE |
static String |
TEST_SERVICE_CLASS |
static String |
TEST_SERVICE_NAME |
static int |
TEST_VMS_USED |
| Constructor and Description |
|---|
TestUsageRecord() |
| Modifier and Type | Method and Description |
|---|---|
static JobUsageRecord |
createTestJobUsageRecordAutomaticScope() |
static JobUsageRecord |
createTestJobUsageRecordExplicitScope() |
static ServiceUsageRecord |
createTestServiceUsageRecordAutomaticScope()
Create a valid #ServiceUsageRecord with scope set automatically.
|
static ServiceUsageRecord |
createTestServiceUsageRecordExplicitScope()
Create a valid #ServiceUsageRecord
|
static StorageUsageRecord |
createTestStorageUsageRecordAutomaticScope()
Create a valid #StorageUsageRecord with scope set automatically.
|
static StorageUsageRecord |
createTestStorageUsageRecordExplicitScope()
Create a valid #StorageUsageRecord
|
static long |
generateRandomLong(long min,
long max)
Generate A Random long in a range between min and max.
|
public static final String TEST_CONSUMER_ID
public static final String TEST_SCOPE
public static final String TEST_SERVICE_CLASS
public static final String TEST_SERVICE_NAME
public static final String TEST_CALLED_METHOD
public static final String TEST_CALLER_HOST
public static final String TEST_HOST
public static final String TEST_PROPERTY_NAME
public static final String TEST_PROPERTY_VALUE
public static final String TEST_JOB_NAME
public static final int TEST_VMS_USED
public static final String TEST_JOB_QUALIFIER
public static final long HALF_DURATION
public static final UsageRecord.OperationResult TEST_JOB_OPERATION_RESULT
public static final String TEST_RESOUCE_OWNER
public static final String TEST_RESOUCE_SCOPE
public static final String TEST_RESOURCE_URI
public static final String TEST_PROVIDER_URI
public static long generateRandomLong(long min,
long max)
public static ServiceUsageRecord createTestServiceUsageRecordExplicitScope() throws InvalidValueException
InvalidValueExceptionpublic static ServiceUsageRecord createTestServiceUsageRecordAutomaticScope()
public static StorageUsageRecord createTestStorageUsageRecordExplicitScope()
public static StorageUsageRecord createTestStorageUsageRecordAutomaticScope()
public static JobUsageRecord createTestJobUsageRecordExplicitScope()
public static JobUsageRecord createTestJobUsageRecordAutomaticScope()
Copyright © 2015. All Rights Reserved.