Ejemplo n.º 1
0
  /** Get the Transport Metric for a specific Transport Type */
  public TransportMetric getTransportMetric(String protocol, EndpointAddress endpointAddress) {
    for (Iterator i = transportMetrics.iterator(); i.hasNext(); ) {
      TransportMetric transportMetric = (TransportMetric) i.next();
      if (protocol.equals(transportMetric.getProtocol())
          && endpointAddress.equals(transportMetric.getEndpointAddress())) return transportMetric;
    }

    return null;
  }
Ejemplo n.º 2
0
  /** {@inheritDoc} */
  public void serializeTo(Element element) throws DocumentSerializationException {
    for (Iterator i = transportMetrics.iterator(); i.hasNext(); ) {
      TransportMetric transportMetric = (TransportMetric) i.next();

      DocumentSerializableUtilities.addDocumentSerializable(
          element, "transportMetric", transportMetric);
    }
    if (moduleClassID != null) {
      DocumentSerializableUtilities.addString(element, "moduleClassID", moduleClassID.toString());
    }
  }
Ejemplo n.º 3
0
 /**
  * Get a list of ModuleClassIDs for subfilters that could not be deserialized because they weren't
  * registered
  *
  * @see MonitorResources
  * @return Iterator
  */
 public Iterator getUnknownModuleClassIDs() {
   if (unknownModuleClassIDs != null) return unknownModuleClassIDs.iterator();
   else return new LinkedList().iterator();
 }
Ejemplo n.º 4
0
 /** Get all Transport Metrics */
 public Iterator getTransportMetrics() {
   return transportMetrics.iterator();
 }