public void terminate(){
  listeners.clear();
  lookupDisc.terminate();
  locatorDisc.terminate();
  if (dynamicLocatorDisc != null)   dynamicLocatorDisc.terminate();
}

public void terminate ( ) { listeners . clear ( ) ; lookupDisc . terminate ( ) ; locatorDisc . terminate ( ) ; if ( dynamicLocatorDisc != null ) dynamicLocatorDisc . terminate ( ) ; }
terminates all threads , ending all discovery processing being performed by the current instance of this class . < p > after this method has been invoked , no new lookup services will be discovered , and the effect of any new operations performed on the current instance of this class are undefined .
