public abstract class Resource extends Object
Resource
abstract base class represents a Splunk resource.Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
actions |
protected String |
path |
protected Args |
refreshArgs |
protected Service |
service |
protected String |
title |
protected Date |
updated |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the resource name.
|
String |
getPath()
Returns the path to this resource.
|
Service |
getService()
Returns the
Service instance this resource is connected to. |
String |
getTitle()
Return the title of this resource, which corresponds to the Atom
<title> element. |
Date |
getUpdated()
Return the last updated time of this resource, which corresponds to the Atom
<updated> 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 String path
protected Args refreshArgs
protected String title
protected Date updated
public String getName()
public String getPath()
public Service getService()
Service
instance this resource is connected to.Service
instance.public String getTitle()
<title>
element.public Date getUpdated()
<updated>
element.public Resource invalidate()
Resource
instance.public abstract Resource refresh()
Resource
instance.public Resource validate()
refresh
if necessary.Resource
instance.Copyright © 2022 Splunk, Inc.. All rights reserved.