public class DistributedStatusResourceType extends Object implements OnmsResourceType
Modifier and Type | Field and Description |
---|---|
static String |
DISTRIBUTED_DIRECTORY
Constant
DISTRIBUTED_DIRECTORY="distributed" |
static String |
TYPE_NAME |
Constructor and Description |
---|
DistributedStatusResourceType(ResourceStorageDao resourceStorageDao,
LocationMonitorDao locationMonitorDao)
Constructor for DistributedStatusResourceType.
|
Modifier and Type | Method and Description |
---|---|
OnmsResource |
getChildByName(OnmsResource parent,
String name)
Retrieves a child resource with the given name from the parent.
|
String |
getLabel()
getLabel
|
String |
getLinkForResource(OnmsResource resource)
getLinkForResource
|
String |
getName()
getName
|
protected static String |
getResourceName(String locationMonitorId,
String ipAddress) |
List<OnmsResource> |
getResourcesForParent(OnmsResource parent)
Returns the set of resources that are available on the given
parent.
|
boolean |
isResourceTypeOnParent(OnmsResource parent)
Returns true if one on more instances of the resource type
are present on the parent resource.
|
public static final String DISTRIBUTED_DIRECTORY
DISTRIBUTED_DIRECTORY="distributed"
public static final String TYPE_NAME
public DistributedStatusResourceType(ResourceStorageDao resourceStorageDao, LocationMonitorDao locationMonitorDao)
Constructor for DistributedStatusResourceType.
resourceStorageDao
- a ResourceStorageDao
object.locationMonitorDao
- a LocationMonitorDao
object.public String getLabel()
getLabel
getLabel
in interface OnmsResourceType
String
object.public String getName()
getName
getName
in interface OnmsResourceType
String
object.public String getLinkForResource(OnmsResource resource)
getLinkForResource
getLinkForResource
in interface OnmsResourceType
resource
- a OnmsResource
object.String
object.public boolean isResourceTypeOnParent(OnmsResource parent)
isResourceTypeOnParent
in interface OnmsResourceType
public List<OnmsResource> getResourcesForParent(OnmsResource parent)
getResourcesForParent
in interface OnmsResourceType
public OnmsResource getChildByName(OnmsResource parent, String name)
getChildByName
in interface OnmsResourceType
Copyright © 2017. All rights reserved.