public class NetricsRecOp
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NetricsRecOp.Op
This defines the known record operations.
|
| Modifier and Type | Method and Description |
|---|---|
static NetricsRecOp |
Add(NetricsRecord rec)
Create an Add Record Operation.
|
static NetricsRecOp |
Del(NetricsRecord rec)
Create a Delete Record Operation.
|
static NetricsRecOp |
Del(java.lang.String key)
Create a Delete Record Operation given a record key.
|
static NetricsRecOp |
Del(java.lang.String key,
java.lang.String parent_key)
Create a Delete Record Operation given a record key and parent key.
|
java.lang.String |
getKey()
Get the record key of the record being operated on.
|
NetricsRecOp.Op |
getOperation()
Get the operation code for this Record Operation.
|
java.lang.String |
getParentKey()
Get the parent key of the record being operated on.
|
NetricsRecord |
getRecord()
Get the record being operated on by this operation.
|
static NetricsRecOp |
Rpl(NetricsRecord rec)
Create a Replace Record Operation.
|
java.lang.String |
toString()
Return a human readable form of this operation.
|
static NetricsRecOp |
Upd(NetricsRecord rec)
Create an Update Record Operation.
|
public static NetricsRecOp Add(NetricsRecord rec) throws java.lang.IllegalArgumentException
rec - the record to be added.java.lang.IllegalArgumentException - if rec is null.public static NetricsRecOp Upd(NetricsRecord rec) throws java.lang.IllegalArgumentException
rec - the record to be updated.java.lang.IllegalArgumentException - if rec is null.public static NetricsRecOp Rpl(NetricsRecord rec) throws java.lang.IllegalArgumentException
rec - the record to be replaced.java.lang.IllegalArgumentException - if rec is null.public static NetricsRecOp Del(NetricsRecord rec) throws java.lang.IllegalArgumentException
rec - the record to be deleted.java.lang.IllegalArgumentException - if rec is null.public static NetricsRecOp Del(java.lang.String key) throws java.lang.IllegalArgumentException
A record delete operation deletes an existing record in the TIBCO Patterns table. It is an error if a record with the same key doesn't exist. If the do max work flag is set the error is quietly ignored.
A delete operation only needs a record key value. This method creates a delete operation given only the key, instead of a full record.
key - the key of the record to be deleted.java.lang.IllegalArgumentException - if key is null or zero length.public static NetricsRecOp Del(java.lang.String key, java.lang.String parent_key) throws java.lang.IllegalArgumentException
A record delete operation deletes an existing record in the TIBCO Patterns table. It is an error if a record with the same key doesn't exist. If the do max work flag is set the error is quietly ignored.
A delete operation only needs a record key value. This method creates a delete operation for a child record given the key, and parent key. If parent_key is null or empty this creates a delete on a standard record.
key - the key of the child record to be deleted.parent_key - the parent key of the child record.java.lang.IllegalArgumentException - if key is null or zero length.public NetricsRecOp.Op getOperation()
public NetricsRecord getRecord()
public java.lang.String getKey()
public java.lang.String getParentKey()
public java.lang.String toString()
toString in class java.lang.Object