Skip to content

Conversation

wujimin
Copy link
Contributor

@wujimin wujimin commented Jun 27, 2017

No description provided.

@wujimin
Copy link
Contributor Author

wujimin commented Jun 27, 2017

create microservice from microservice definition, and save them in MicroserviceManager

private static final Logger LOGGER = LoggerFactory.getLogger(RegistryUtils.class);

// temp field
private static MicroserviceManager microserviceManager;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not thread safe if there are multiple thread init the microserviceManager.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only be inited when cse start, and only init once.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and all about this field code is temp
all will be changed after the follow PR.

import io.servicecomb.serviceregistry.definition.MicroserviceDefinition;

public class TestPropertiesLoader {
private static MicroserviceManager microserviceManager = new MicroserviceManager();;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

;;

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 1e6a826 on wujimin:create-from-definition into ** on ServiceComb:master**.

@WillemJiang WillemJiang merged commit 8c34ef5 into apache:master Jun 27, 2017
@wujimin wujimin deleted the create-from-definition branch June 28, 2017 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants