When representing managed data, a QmfData instance is assigned an object identifier @author Fraser Adams
427428429430431432433434435436437
* <p> * I <i>believe</i> that there should only be one entry in the list returned when looking up a specific chema by classId. */ public List<SchemaClass> getSchema(final SchemaClassId classId) { SchemaClass schema = _schemaCache.get(classId); if (schema == SchemaClass.EMPTY_SCHEMA) { return Collections.emptyList(); }
250251252253254255256257258259260
} public void addObject(QmfAgentData object) throws QmfException { SchemaClassId classId = object.getSchemaClassId(); SchemaClass schema = _schemaCache.get(classId); // Try to create an objectName using the set of property names that have been specified as idNames in the schema StringBuilder buf = new StringBuilder(); if (schema != null && schema instanceof SchemaObjectClass) {
15561557155815591560156115621563156415651566
{ List<Map> mapResults = AMQPMessage.getList(response); for (Map content : mapResults) { //new SchemaClassId(content).listValues(); results.add(new SchemaClassId(content)); } } else if (AMQPMessage.isAMQPMap(response)) { // Error responses are returned as MapMessages, though they are being ignored here.
1693169416951696169716981699
* @param className the schema class name we're looking up objects for. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String className) { return getObjects(new SchemaClassId(className)); }
1707170817091710171117121713
* @param timeout overrides the default replyTimeout. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String className, final int timeout) { return getObjects(new SchemaClassId(className), timeout); }
1721172217231724172517261727
* @param agentList if this parameter is supplied then the query is sent to only those Agents. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String className, final List<Agent> agentList) { return getObjects(new SchemaClassId(className), agentList); }
1736173717381739174017411742
* @param agentList if this parameter is supplied then the query is sent to only those Agents. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String className, final int timeout, final List<Agent> agentList) { return getObjects(new SchemaClassId(className), timeout, agentList); }
1750175117521753175417551756
* @param className the schema class name we're looking up objects for. * @return a List of QMF Objects describing that class */ public List<QmfConsoleData> getObjects(final String packageName, final String className) { return getObjects(new SchemaClassId(packageName, className)); }
1765176617671768176917701771
* @param timeout overrides the default replyTimeout. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String packageName, final String className, final int timeout) { return getObjects(new SchemaClassId(packageName, className), timeout); }
1780178117821783178417851786
* @param agentList if this parameter is supplied then the query is sent to only those Agents. * @return a List of QMF Objects describing that class. */ public List<QmfConsoleData> getObjects(final String packageName, final String className, final List<Agent> agentList) { return getObjects(new SchemaClassId(packageName, className), agentList); }