|
|
@ -14,6 +14,7 @@ |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
package org.apache.dolphinscheduler.remote.config; |
|
|
|
package org.apache.dolphinscheduler.remote.config; |
|
|
|
|
|
|
|
|
|
|
|
import org.apache.dolphinscheduler.remote.utils.Constants; |
|
|
|
import org.apache.dolphinscheduler.remote.utils.Constants; |
|
|
@ -48,6 +49,11 @@ public class NettyClientConfig { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private int receiveBufferSize = 65535; |
|
|
|
private int receiveBufferSize = 65535; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* connect timeout millis |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private int connectTimeoutMillis = 3000; |
|
|
|
|
|
|
|
|
|
|
|
public int getWorkerThreads() { |
|
|
|
public int getWorkerThreads() { |
|
|
|
return workerThreads; |
|
|
|
return workerThreads; |
|
|
|
} |
|
|
|
} |
|
|
@ -88,4 +94,11 @@ public class NettyClientConfig { |
|
|
|
this.receiveBufferSize = receiveBufferSize; |
|
|
|
this.receiveBufferSize = receiveBufferSize; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int getConnectTimeoutMillis() { |
|
|
|
|
|
|
|
return connectTimeoutMillis; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setConnectTimeoutMillis(int connectTimeoutMillis) { |
|
|
|
|
|
|
|
this.connectTimeoutMillis = connectTimeoutMillis; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|