|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.domain.model.DomainModel
public class DomainModel
Broker domain model. This is the local representation of a remote broker domain model.
Field Summary | |
---|---|
(package private) Map<String,QpidPackage> |
_packages
Here the known packages of the remote broker are stored. |
Constructor Summary | |
---|---|
DomainModel(UUID brokerId)
Builds a new domain model with the given broker identifier. |
Method Summary | |
---|---|
void |
addConfigurationRawData(String packageName,
String className,
Binary classHash,
Binary objectId,
byte[] rawData)
Adds the given configuration data (raw format) to this domain model. |
void |
addEventRawData(String packageName,
String eventName,
Binary eventHash,
byte[] rawData,
long currentTimestamp,
int severity)
|
void |
addEventSchema(String packageName,
String className,
Binary classHash,
List<Map<String,Object>> arguments)
Adds the specified schema to this domain model. |
void |
addInstrumentationRawData(String packageName,
String className,
Binary classHash,
Binary objectId,
byte[] rawData)
Adds the given instrumentation data (raw format) to this domain model. |
void |
addSchema(String packageName,
String className,
Binary classHash,
List<Map<String,Object>> properties,
List<Map<String,Object>> statistics,
List<MethodOrEventDataTransferObject> methods)
Adds the specified schema to this domain model. |
(package private) boolean |
containsPackage(String packageName)
Returns true if a package with the specified name already exists on this domain model. |
UUID |
getBrokerId()
Returns the identifier of the broker associated with this domain model. |
Date |
getLastRefreshDate()
Returns the last refresh date. |
(package private) IMethodInvocationListener |
getMethodInvocationListener()
|
(package private) QpidPackage |
getPackageByName(String packageName)
Gets the package with the specified name. |
void |
releaseResources()
Releases all the resources kept by domain model entitiies. |
void |
removeObjectInstance(String packageName,
String className,
Binary classHash,
Binary objectId)
Removes the object instance associated to the given parameters. |
void |
setMethodInvocationListener(IMethodInvocationListener listener)
|
void |
updateLastRefreshDate()
Updates the last refresh date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Map<String,QpidPackage> _packages
Constructor Detail |
---|
public DomainModel(UUID brokerId)
brokerId
- the broker identifier.Method Detail |
---|
public UUID getBrokerId()
public void addSchema(String packageName, String className, Binary classHash, List<Map<String,Object>> properties, List<Map<String,Object>> statistics, List<MethodOrEventDataTransferObject> methods) throws UnableToBuildFeatureException
packageName
- the package name.className
- the class name.classHash
- the class schema hash.properties
- the class properties.statistics
- the class statistics.methods
- the class methods.
UnableToBuildFeatureException
public void updateLastRefreshDate()
public Date getLastRefreshDate()
public void addEventSchema(String packageName, String className, Binary classHash, List<Map<String,Object>> arguments) throws UnableToBuildFeatureException
packageName
- the package name.className
- the class name.classHash
- the class schema hash.properties
- the class properties.statistics
- the class statistics.methods
- the class methods.
UnableToBuildFeatureException
QpidPackage getPackageByName(String packageName)
packageName
- the name of the package.
boolean containsPackage(String packageName)
packageName
- the name of the package.
public void addInstrumentationRawData(String packageName, String className, Binary classHash, Binary objectId, byte[] rawData)
packageName
- the name of the ower package.className
- the name of the owner class.classHash
- the schema hash for this class.objectId
- the object instance identifier.rawData
- the instrumentation data.public void addEventRawData(String packageName, String eventName, Binary eventHash, byte[] rawData, long currentTimestamp, int severity)
public void addConfigurationRawData(String packageName, String className, Binary classHash, Binary objectId, byte[] rawData)
packageName
- the name of the ower package.className
- the name of the owner class.classHash
- the schema hash for this class.objectId
- the object instance identifier.rawData
- the configuration data.public void removeObjectInstance(String packageName, String className, Binary classHash, Binary objectId)
packageName
- the owner package.className
- the class definition of the object instance.classHash
- the class hashobjectId
- the object identifier.public void releaseResources()
public void setMethodInvocationListener(IMethodInvocationListener listener)
IMethodInvocationListener getMethodInvocationListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |