Github user neykov commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/150#discussion_r17233437
  
    --- Diff: 
software/base/src/main/java/brooklyn/entity/brooklynnode/BrooklynEntityMirrorImpl.java
 ---
    @@ -70,10 +74,34 @@ protected void initEnrichers() {}
         @Override
         public void init() {
             super.init();
    -        connectSensors();
    +        connectSensorsAsync();
    +
    +        //start spinning, could take some time before MIRRORED_ENTITY_URL 
is available for first time mirroring
    +        ServiceStateLogic.setExpectedState(this, Lifecycle.STARTING);
    --- End diff --
    
    The entity will mirror all the sensors from the remote entity including the 
SERVICE_STATE_ACTUAL value. It will change to RUNNING as soon as the remote 
entity is RUNNING.
    
    The line changed a bit after testing (directly setting SERVICE_STATE_ACTUAL 
instead of _EXPECTED), but the question is still valid.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to