public abstract class Resource
extends java.lang.Object
Resource
abstract base class represents a Splunk resource.Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
actions |
protected java.lang.String |
path |
protected Args |
refreshArgs |
protected Service |
service |
protected java.lang.String |
title |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the resource name.
|
java.lang.String |
getPath()
Returns the path to this resource.
|
Service |
getService()
Returns the
Service instance this resource is connected to. |
java.lang.String |
getTitle()
Return the title of this resource, which corresponds to the Atom
<title> element. |
Resource |
invalidate()
Marks the local state of this resource as no longer current.
|
abstract Resource |
refresh()
Refreshes the local state of this resource.
|
Resource |
validate()
Ensures that the local state of the resource is current,
calling
refresh if necessary. |
protected Service service
protected java.lang.String path
protected Args refreshArgs
protected java.util.Map<java.lang.String,java.lang.String> actions
protected java.lang.String title
public java.lang.String getName()
public java.lang.String getPath()
public Service getService()
Service
instance this resource is connected to.Service
instance.public java.lang.String getTitle()
<title>
element.public Resource invalidate()
Resource
instance.public abstract Resource refresh()
Resource
instance.public Resource validate()
refresh
if necessary.Resource
instance.