Resource.Factory, Resource.NoSuchResourceException, Resource.ResourceEntry, Resource.Tools
Constructor and Description |
---|
TimerServiceResource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
Resource |
getChild(PathElement element)
Get a single child of this resource with the given address.
|
Set<Resource.ResourceEntry> |
getChildren(String childType)
Get the children for a given type.
|
Set<String> |
getChildrenNames(String childType)
Get the children names for a given type.
|
Set<String> |
getChildTypes()
Get a list of registered child types for this resource.
|
org.jboss.dmr.ModelNode |
getModel()
Get the local model.
|
boolean |
hasChild(PathElement element)
Determine whether this resource has a child with the given address.
|
boolean |
hasChildren(String childType)
Determine whether this resource has any child of a given type.
|
boolean |
isModelDefined()
Determine whether the model of this resource is defined.
|
boolean |
isProxy() |
boolean |
isRuntime() |
Resource |
navigate(PathAddress address)
Navigate the resource tree.
|
void |
registerChild(PathElement address,
Resource resource)
Register a child resource.
|
Resource |
removeChild(PathElement address)
Remove a child resource.
|
Resource |
requireChild(PathElement element)
Get a single child of this resource with the given address.
|
void |
timerCreated(String id) |
void |
timerRemoved(String id) |
void |
writeModel(org.jboss.dmr.ModelNode newModel)
Write the model.
|
public org.jboss.dmr.ModelNode getModel()
Resource
getModel
in interface Resource
Resource.getModel()
public void writeModel(org.jboss.dmr.ModelNode newModel)
Resource
writeModel
in interface Resource
newModel
- Resource.writeModel(org.jboss.dmr.ModelNode)
public boolean isModelDefined()
Resource
isModelDefined
in interface Resource
Resource.isModelDefined()
public boolean hasChild(PathElement element)
Resource
PathElement
has
a wildcard as value, it will determine whether this resource has any resources of a given type.hasChild
in interface Resource
element
- Resource.hasChild(org.jboss.as.controller.PathElement)
public Resource getChild(PathElement element)
Resource
null
.getChild
in interface Resource
element
- Resource.getChild(org.jboss.as.controller.PathElement)
public Resource requireChild(PathElement element)
Resource
requireChild
in interface Resource
element
- Resource.requireChild(org.jboss.as.controller.PathElement)
public boolean hasChildren(String childType)
Resource
hasChildren
in interface Resource
childType
- Resource.hasChildren(java.lang.String)
public Resource navigate(PathAddress address)
Resource
navigate
in interface Resource
address
- Resource.navigate(org.jboss.as.controller.PathAddress)
public Set<String> getChildTypes()
Resource
getChildTypes
in interface Resource
Resource.getChildTypes()
public Set<String> getChildrenNames(String childType)
Resource
getChildrenNames
in interface Resource
childType
- Resource.getChildrenNames(java.lang.String)
public Set<Resource.ResourceEntry> getChildren(String childType)
Resource
getChildren
in interface Resource
childType
- Resource.getChildren(java.lang.String)
public void registerChild(PathElement address, Resource resource)
Resource
registerChild
in interface Resource
address
- resource
- Resource.registerChild(org.jboss.as.controller.PathElement,
org.jboss.as.controller.registry.Resource)
public Resource removeChild(PathElement address)
Resource
removeChild
in interface Resource
address
- Resource.removeChild(org.jboss.as.controller.PathElement)
public boolean isRuntime()
isRuntime
in interface Resource
Resource.isRuntime()
public boolean isProxy()
isProxy
in interface Resource
Resource.isProxy()
public Resource clone()
clone
in interface Resource
clone
in class Object
Resource.clone()
public void timerCreated(String id)
public void timerRemoved(String id)
Copyright © 2015 JBoss by Red Hat. All rights reserved.