Class BgpUpdater.AsyncClient

    • Field Summary

      • Fields inherited from class org.apache.thrift.async.TAsyncClient

        ___currentMethod, ___manager, ___protocolFactory, ___transport
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncClient​(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onNotificationSendEvent​(java.lang.String prefix, byte errCode, byte errSubcode, org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      void onStartConfigResyncNotification​(org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      void onUpdatePushRoute​(protocol_type p_type, java.lang.String rd, java.lang.String prefix, int prefixlen, java.lang.String nexthop, long ethtag, java.lang.String esi, java.lang.String macaddress, int l3label, int l2label, java.lang.String routermac, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      void onUpdateWithdrawRoute​(protocol_type p_type, java.lang.String rd, java.lang.String prefix, int prefixlen, java.lang.String nexthop, long ethtag, java.lang.String esi, java.lang.String macaddress, int l3label, int l2label, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      void peerDown​(java.lang.String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      void peerUp​(java.lang.String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler)  
      • Methods inherited from class org.apache.thrift.async.TAsyncClient

        checkReady, getError, getProtocolFactory, getTimeout, hasError, hasTimeout, onComplete, onError, setTimeout
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncClient

        public AsyncClient​(org.apache.thrift.protocol.TProtocolFactory protocolFactory,
                           org.apache.thrift.async.TAsyncClientManager clientManager,
                           org.apache.thrift.transport.TNonblockingTransport transport)
    • Method Detail

      • onUpdatePushRoute

        public void onUpdatePushRoute​(protocol_type p_type,
                                      java.lang.String rd,
                                      java.lang.String prefix,
                                      int prefixlen,
                                      java.lang.String nexthop,
                                      long ethtag,
                                      java.lang.String esi,
                                      java.lang.String macaddress,
                                      int l3label,
                                      int l2label,
                                      java.lang.String routermac,
                                      af_afi afi,
                                      org.apache.thrift.async.AsyncMethodCallback resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        onUpdatePushRoute in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException
      • onUpdateWithdrawRoute

        public void onUpdateWithdrawRoute​(protocol_type p_type,
                                          java.lang.String rd,
                                          java.lang.String prefix,
                                          int prefixlen,
                                          java.lang.String nexthop,
                                          long ethtag,
                                          java.lang.String esi,
                                          java.lang.String macaddress,
                                          int l3label,
                                          int l2label,
                                          af_afi afi,
                                          org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                   throws org.apache.thrift.TException
        Specified by:
        onUpdateWithdrawRoute in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException
      • onStartConfigResyncNotification

        public void onStartConfigResyncNotification​(org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                             throws org.apache.thrift.TException
        Specified by:
        onStartConfigResyncNotification in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException
      • onNotificationSendEvent

        public void onNotificationSendEvent​(java.lang.String prefix,
                                            byte errCode,
                                            byte errSubcode,
                                            org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                     throws org.apache.thrift.TException
        Specified by:
        onNotificationSendEvent in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException
      • peerDown

        public void peerDown​(java.lang.String ipAddress,
                             long asNumber,
                             org.apache.thrift.async.AsyncMethodCallback resultHandler)
                      throws org.apache.thrift.TException
        Specified by:
        peerDown in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException
      • peerUp

        public void peerUp​(java.lang.String ipAddress,
                           long asNumber,
                           org.apache.thrift.async.AsyncMethodCallback resultHandler)
                    throws org.apache.thrift.TException
        Specified by:
        peerUp in interface BgpUpdater.AsyncIface
        Throws:
        org.apache.thrift.TException