public int getConnectorPeerId(String connectorName) { InOutputAttribute connector = omiscidService.findConnector(connectorName); if (connector == null) { throw new UnknownConnector("Unknown connector: '" + connectorName + "'"); } return connector.getPeerId(); }
public String getConnectorDescription(String connectorName) throws UnknownConnector { checkedUpdateDescription(); InOutputAttribute connector = omiscidService.findConnector(connectorName); if (connector == null) { throw new UnknownConnector("Unknown connector '" + connectorName + "'"); } return connector.getDescription(); }
public Iterable<Integer> getPeers(String connectorName) { omiscidService.requeryCompleteDescription(); InOutputAttribute connector = omiscidService.findConnector(connectorName); if (connector == null) { throw new UnknownConnector("Unknown connector: '" + connectorName + "'"); } Vector<Integer> peers = new Vector<Integer>(connector.getPeerVector()); return peers; }