|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Resource
public abstract class Resource
The Resource
abstract base class represents a Splunk resource.
Field Summary | |
---|---|
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
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |