Problem in invoking ping method in BusAttachment with JAVA API in Release 14.06a

asked 2014-12-13 04:18:30 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm interested in the ping methods which are newly added in release 14.06a, so I tried to write my code with Eclipse by using the JAVA API,and I am sure everything else is okay as i have tested, but when I invoke the ping method by a busattachment object, only to find that an unexpected error was occured which reports that there was no ping method declared in the BusAttachment Class.

So I am wondering if there is any change to the ping method or it is just a inner test method now which can not be invoked from release 14.06a

Wish your help,and thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-12-16 15:53:12 -0700

georgen gravatar image

the ping method is not an inner test method it is designed to be used.

How are you invoking it. The ping method looks for a remote peer based on the name of the remote peer. This means us must know the name of the peer you are looking for.

BusAttachment busAttachment;
// some time later after you have discovered a remote device
// using name based or about based discovery. Ping can be used
// to see if that device is still reachable.  You must know its name first.
busAttachment.ping("remote.bus.name.unique.or.wellknown", 1000);
edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2014-12-13 04:18:30 -0700

Seen: 126 times

Last updated: Dec 16 '14