Commits on Mar 11, 2011
  1. Prep 1.0.0.Beta7

    dmlloyd committed Mar 11, 2011
Commits on Mar 9, 2011
  1. [MSC-73] Add more race condition tests, and fix StopRequestedToUpTran…

    Also, start using BMUnit Byteman plugin for JUnit whenever possible.
    fl4via committed Mar 8, 2011
  2. [MSC-73] Tests for classes that have recently been added to the proje…

    …ct, and also to test some specific scenarios in old classes.
    fl4via committed Mar 8, 2011
  3. [MSC-74] Fix: ServiceName.commonAncestorOf returns null if one of the…

    … involved names is a prefix of the other one.
    fl4via committed Mar 8, 2011
  4. [MSC-72] At StatContextImpl.failed: check for a null reason; if the r…

    …eason is null, create a new StartException and proceed.
    fl4via committed Mar 8, 2011
  5. [MSC-71] At ServiceContainer.detectCycle sync block: move the check f…

    …or a null instance from the end to the beginning of the block
    fl4via committed Mar 8, 2011
  6. [MSC-69] Update pieces of code that are unreachable in ServiceControl…

    More info:
    - failCount will never be larger than 0 during the START_FAILED_to_DOWN transition
    - dependencyFailureCleared will never be called on a service in the NEW state
    - getDependencies is never called
    - also, a service in the NEW state can be requested to transition when its initialMode is set
    fl4via committed Mar 8, 2011
  7. [MSC-68] Split ServiceControllerImpl.injections into injections and o…

    …utInjections. The second group of injections contains outward injections, that will be performed after the service starts, with injection errors failing to affect the service state.
    fl4via committed Mar 8, 2011
Commits on Mar 3, 2011
Commits on Feb 24, 2011
Commits on Feb 18, 2011
  1. Next is 1.0.0.Beta7

    dmlloyd committed Feb 18, 2011
  2. Prep 1.0.0.Beta6

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

    …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.
    fl4via committed Feb 18, 2011
  4. Make ServiceControllerImpl.internalSetMode() change the mode only aft…

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

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

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

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

    …/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
    fl4via committed Feb 18, 2011
  9. ServiceRegistrationImpl dependentStopped/Started implementations shou…

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

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

    …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
    fl4via committed Feb 18, 2011
  12. Cascade missing/failed dep notifications to dependents (at ServiceCon…

    …trollerImpl); OptionalDependency should make consistent notifications on addDependency and immediateDependencyUninstalled executions.
    fl4via committed Feb 15, 2011
  13. Remove unused Translator stuff

    dmlloyd committed Feb 18, 2011
Commits on Feb 17, 2011
  1. Copyright

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

    …nal to avoid common screwups
    dmlloyd committed Feb 17, 2011
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