Interface Repository

Interface CtsServices::GenericService

The minimal interface that must be implemented by a service component.

Example Java implementation of a service component:

    public class MyService
    {
        private static boolean _stop;
        public void run()
        {
            while (! _stop)
            {
                try
                {
                    // do whatever this service does on each iteration
                    Thread.sleep(10000);
                }
                catch (InterruptedException ie)
                {
                    _stop = true;
                }
            }
        }
        public void start()
        {
            _stop = false;
        }
        public void stop()
        {
            _stop = true;
        }
    }
 

Operation Index

Operations


Generated by Sybase EAServer 5.0