| | |
| | | import com.rtdb.service.impl.ServerImplPool; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowire; |
| | | import org.springframework.beans.factory.annotation.Configurable; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | |
| | | private ServerImpl server; |
| | | |
| | | public void setServer(ServerImpl server) { |
| | | private void setServer(ServerImpl server) { |
| | | this.server = server; |
| | | } |
| | | public ServerImpl getServer() { |
| | |
| | | return server; |
| | | } |
| | | |
| | | public void load(){ |
| | | private void load(){ |
| | | if (server==null){ |
| | | try { |
| | | ServerImplPool pool = new ServerImplPool(_ip, _port, _username, _password, _poolSize, _maxSize); |