Java Code Examples for org.springframework.cloud.service.common.MysqlServiceInfo#MYSQL_SCHEME

The following examples show how to use org.springframework.cloud.service.common.MysqlServiceInfo#MYSQL_SCHEME . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MysqlServiceInfoCreator.java    From spring-cloud-lattice with Apache License 2.0 5 votes vote down vote up
@Override
public MysqlServiceInfo createServiceInfo(Process process) {
	ActualLRPResponse actual = process.getFirstActual();
	String scheme = "jdbc:"+ MysqlServiceInfo.MYSQL_SCHEME;
	String address = actual.getAddress();
	int port = actual.getPorts()[0].getHostPort();
	String username = "root";
	String password = findRequiredEnvVar(process, "MYSQL_ROOT_PASSWORD");
	String path = findEnvVar(process, "MYSQL_DATABASE_NAME", "test");

	return new MysqlServiceInfo(actual.getInstanceGuid(), constructJdbcUrl(scheme, address, port, username, password, path));
}
 
Example 2
Source File: MysqlServiceInfoCreator.java    From spring-cloud-connectors with Apache License 2.0 4 votes vote down vote up
public MysqlServiceInfoCreator() {
	// the literal in the tag is CloudFoundry-specific
	super(new Tags("mysql"), MysqlServiceInfo.MYSQL_SCHEME);
}
 
Example 3
Source File: MysqlServiceInfoCreator.java    From spring-cloud-connectors with Apache License 2.0 4 votes vote down vote up
public MysqlServiceInfoCreator() {
	super(MysqlServiceInfo.MYSQL_SCHEME);
}
 
Example 4
Source File: MysqlServiceInfoCreator.java    From spring-cloud-connectors with Apache License 2.0 4 votes vote down vote up
public MysqlServiceInfoCreator() {
	super(MysqlServiceInfo.MYSQL_SCHEME);
}
 
Example 5
Source File: HerokuConnectorMysqlServiceTest.java    From spring-cloud-connectors with Apache License 2.0 4 votes vote down vote up
public HerokuConnectorMysqlServiceTest() {
	super(MysqlServiceInfo.MYSQL_SCHEME);
}