|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource com.splunk.Entity
public class Entity
The Entity
class represents a Splunk entity.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
protected Record |
content
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
toUpdate
|
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Constructor Summary | |
---|---|
Entity(Service service,
java.lang.String path)
Class constructor. |
Method Summary | |
---|---|
protected java.lang.String |
actionPath(java.lang.String action)
Returns the path that corresponds to the requested action. |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
void |
disable()
Disables the entity that is named by this endpoint. |
void |
enable()
Enables the entity that is named by this endpoint. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
protected Record |
getContent()
|
EntityMetadata |
getMetadata()
Returns the metadata (eai:acl) of this entity. |
boolean |
isDisabled()
Indicates whether this entity is disabled. |
boolean |
isEmpty()
|
protected boolean |
isNameChangeAllowed()
Returns whether this entity's name can be changed via update(java.util.Map . |
java.util.Set<java.lang.String> |
keySet()
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
|
Entity |
refresh()
Refreshes the local state of this resource. |
void |
remove()
Removes this entity from its corresponding collection. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
void |
update()
Updates the entity with the accumulated arguments, established by the individual setter methods for each specific entity class. |
void |
update(java.util.Map<java.lang.String,java.lang.Object> args)
Updates the entity with the values you previously set using the setter methods, and any additional specified arguments. |
Entity |
validate()
Ensures that the local state of the resource is current, calling refresh if necessary. |
java.util.Collection<java.lang.Object> |
values()
|
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected Record content
protected java.util.HashMap<java.lang.String,java.lang.Object> toUpdate
Constructor Detail |
---|
public Entity(Service service, java.lang.String path)
service
- The connected Service
instance.path
- The entity's endpoint.Method Detail |
---|
protected java.lang.String actionPath(java.lang.String action)
action
- The requested action.
public void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
public void disable()
public void enable()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
protected Record getContent()
public EntityMetadata getMetadata()
null
if none exist.public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean isDisabled()
true
if this entity is disabled, false
if
enabled.protected boolean isNameChangeAllowed()
update(java.util.Map)
.
Most entity names cannot be changed in this way.
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
public Entity refresh()
refresh
in class Resource
Resource
instance.public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
public void update(java.util.Map<java.lang.String,java.lang.Object> args)
args
- The arguments to update.public void update()
public void remove()
public Entity validate()
refresh
if necessary.
validate
in class Resource
Resource
instance.public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |