public void close()
    {
        LOGGER.entering(CLASS_NAME, "close");

        synchronized (lock)
        {
            if (serviceAgent != null)
            {
                serviceRegistration.unregister();

                if (LOGGER.isLoggable(Level.FINER)) LOGGER.finer("Service Agent " + this + " stopping...");

                serviceAgent.stop();

                if (LOGGER.isLoggable(Level.FINE)) LOGGER.fine("Service Agent " + this + " stopped successfully");
            }
        }

        LOGGER.exiting(CLASS_NAME, "close");
    }
public void close ( ) { LOGGER . entering ( CLASS_NAME , "close" ) ; synchronized ( lock ) { if ( serviceAgent != null ) { serviceRegistration . unregister ( ) ; if ( LOGGER . isLoggable ( Level . FINER ) ) LOGGER . finer ( "Service Agent " + this + " stopping..." ) ; serviceAgent . stop ( ) ; if ( LOGGER . isLoggable ( Level . FINE ) ) LOGGER . fine ( "Service Agent " + this + " stopped successfully" ) ; } } LOGGER . exiting ( CLASS_NAME , "close" ) ; }
Shuts down the user agent if one exists.