/** * Retrieves all the route entries of the same source field via {@link #rtconfigPort}. * * @see drcl.inet.contract.RTConfig */ public Object retrieveRTEntrySrc(long source) { return RTConfig.retrieve( new RTKey(source, -1, -1, 0, -1, 0), RTConfig.MATCH_WILDCARD, rtconfigPort); }
/** * Retrieves the best (longest matched) route entry of the same destination field via {@link * #rtconfigPort}. * * @see drcl.inet.contract.RTConfig */ public RTEntry retrieveBestRTEntryDest(long destination) { return (RTEntry) RTConfig.retrieve( new RTKey(-1, 0, destination, -1, -1, 0), RTConfig.MATCH_LONGEST, rtconfigPort); }
/** * Retrieves all the route entries via {@link #rtconfigPort}. * * @see drcl.inet.contract.RTConfig */ public RTEntry[] retrieveAllRTEntries() { Object result_ = RTConfig.retrieve(new RTKey(0, 0, 0, 0, 0, 0), RTConfig.MATCH_WILDCARD, rtconfigPort); if (result_ instanceof RTEntry) return new RTEntry[] {(RTEntry) result_}; else return (RTEntry[]) result_; }
/** * Retrieves all the route entries of the same destination field via {@link #rtconfigPort}. * * @see drcl.inet.contract.RTConfig */ public Object retrieveRTEntryDest(long destination) { return RTConfig.retrieve( new RTKey(-1, 0, destination, -1, -1, 0), RTConfig.MATCH_WILDCARD, rtconfigPort); }
/** * Retrieves matched route entries via {@link #rtconfigPort}. * * @see drcl.inet.contract.RTConfig */ public Object retrieveRTEntry(RTKey key_, String type) { return RTConfig.retrieve(key_, type, rtconfigPort); }