public class CacheInstance extends Object
| Constructor and Description |
|---|
CacheInstance(ServiceInstance si) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destrory the caching service when no longer needed.
|
Object |
get(ManagedObjectReference mor,
String propName)
Get the value of cached property whose name is propName.
|
Object |
get(ManagedObject mo,
String propName)
Get the value of cached property whose name is propName.
|
Object |
getCopy(ManagedObjectReference mor,
String propName)
Get a copy of the cached property.
|
Object |
getCopy(ManagedObject mo,
String propName)
Get a copy of the cached property.
|
ServiceInstance |
getServiceInstance()
Get the corresponding ServiceInstance
|
boolean |
isReady()
Check if the CacheInstance is ready for retrieval
|
void |
start()
Start the caching service.
|
void |
watch(ManagedObject[] mos,
String[] props)
Add the managed objects and their properties to be watched.
|
void |
watch(PropertyFilterSpec pfs)
Add PropertyFilterSpec for advanced settings
|
public CacheInstance(ServiceInstance si)
public void watch(ManagedObject[] mos, String[] props)
mos - array of managed objects.props - array of properties to watchpublic void watch(PropertyFilterSpec pfs)
pfs - the property filter spec which specifies
the managed objects and properties to watch.public Object getCopy(ManagedObject mo, String propName)
mo - Managed objectpropName - property namepublic Object getCopy(ManagedObjectReference mor, String propName)
mor - Managed object referencepropName - property namepublic Object get(ManagedObject mo, String propName)
mo - Managed object on which the cached property is requestedpropName - Property name, can include "."public Object get(ManagedObjectReference mor, String propName)
mor - Managed object reference pointing to the managed objectpropName - Property namepublic void start()
public void destroy()
public ServiceInstance getServiceInstance()
public boolean isReady()
Copyright © 2011-2012. All Rights Reserved.