Permalink
Commits on Feb 18, 2011
  1. Prep 1.0.0.Beta6

    dmlloyd committed Feb 18, 2011
  2. Add ChangeModeOnListenerAddedTestCase, to assert scenarios whereas th…

    fl4via committed Feb 18, 2011
    …e mode of a service is changed during its installation, from inside a listenerAdded call.
    
    The listener that changes the mode removes itself from the service. After each test is done, a check is made to make sure no other calls to the listeners were made after it was removed from service.
    Also, fix some typos in ChangeModeTestCase.
  3. Make ServiceControllerImpl.internalSetMode() change the mode only aft…

    fl4via committed Feb 18, 2011
    …er all validations have been performed.
  4. Update commitInstallation code, to garantee that listeners that remov…

    fl4via committed Feb 18, 2011
    …e themselves on installation are no notified of subsequent failure/missing deps.
  5. StartContext.failed method should increment failCount.

    fl4via committed Feb 18, 2011
    This fixes the FIXME issue marked in FailToStartService.
  6. Remove ServiceProperty, Visitor, DependentNotifier and related method…

    fl4via committed Feb 18, 2011
    …s. These classes check for cycles and dependency notifications in an asynchronous manner and are no longer used.
  7. Update the tests to take into account new behavior reg cycles, failed…

    fl4via committed Feb 18, 2011
    …/missing dep notification, child services, and batch targets
    
    More info:
    - new rules for batch target in AbstractServiceTargetTest
    - new test for batch target' sub target in AbstractServiceTargetTest
    - due to race conditions, ChangeModeTestCase.changeFailedToStartPassiveToOnDemand has to account for a new possible outcome
    - DependencyCycleTestCase totaly revamped to expect CircularityDependencyExceptions on service installation
    - ServiceBuilderTestCase cannot getValue of a serviceController before the service is started
    - FailToStartService should throw a StartException until the new found bug in StartContext is fixed
  8. ServiceRegistrationImpl dependentStopped/Started implementations shou…

    fl4via committed Feb 18, 2011
    …ld account for being called with a null instance
  9. ServiceControllerImpl. should notify dependency retrying on START_FAI…

    fl4via committed Feb 18, 2011
    …LED_to_DOWN only if failCount is 0
  10. Move part of service installation code from ServiceContainerImpl to S…

    fl4via committed Feb 18, 2011
    …erviceControllerImpl, and make sure no listeners/dependencies are notified by services whose installation is not commited.
    
    More details:
    - the methods startInstallation, commitInstallation, and rollbackInstallation have been added to ServiceControllerImpl
    - the new substate CANCELLED is also added, to indicate services whose installation has been cancelled
    - notifications from dependents, and dependencies are ignored while the service is in state NEW
    - cycle detection also covers aliases and children
  11. Cascade missing/failed dep notifications to dependents (at ServiceCon…

    fl4via committed Feb 15, 2011
    …trollerImpl); OptionalDependency should make consistent notifications on addDependency and immediateDependencyUninstalled executions.
Commits on Feb 17, 2011
  1. Copyright

    dmlloyd committed Feb 17, 2011
  2. Remove now-useless TrackingServiceTarget, make Delegating* classes fi…

    dmlloyd committed Feb 17, 2011
    …nal to avoid common screwups
Commits on Feb 16, 2011
  1. Enable logging by default

    dmlloyd committed Feb 16, 2011
  2. Log uncaught exceptions

    dmlloyd committed Feb 16, 2011
Commits on Feb 15, 2011
Commits on Feb 13, 2011
  1. Make tests fail more quickly

    dmlloyd committed Feb 13, 2011
Commits on Feb 11, 2011
  1. [MSC-64] ChildTarget subTargets should be instances of ChildTarget as…

    fl4via committed Feb 11, 2011
    … well.
    
    Also, improve test coverage at ChildServiceTargetTestCase.
Commits on Feb 10, 2011
  1. Fixes for tests

    dmlloyd committed Feb 10, 2011
  2. [MSC-64] Add tests for child services.

    fl4via committed Feb 9, 2011
    Also, add a child as a dependent of a ServiceController at ServiceControllerImpl.addChild, and add children to the return value
    of ServiceControllerImpl.getDependents.
  3. [MSC-63] Create new BatchServiceTarget, for batch service removal sup…

    fl4via committed Feb 9, 2011
    …port.
    
    Also, add tests to AbstractServiceTargetTest, the old AbstractDelegatingServiceTargetTest revamped.
    Plus, create BatchServiceTargetTestCase, that runs all tests in AbstractServiceTargetTest against
    a BatchServiceTargetImpl.