|
|
@ -1,13 +1,12 @@ |
|
|
|
package com.fr.plugin.db.redis.ui.pool; |
|
|
|
package com.fr.plugin.db.redis.ui.pool; |
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.api.design.ui.container.BasicPane; |
|
|
|
import com.fanruan.api.design.DesignKit; |
|
|
|
import com.fanruan.api.layout.TableLayoutKit; |
|
|
|
|
|
|
|
import com.fanruan.api.design.util.GUICoreKit; |
|
|
|
|
|
|
|
import com.fanruan.api.design.ui.component.UICheckBox; |
|
|
|
import com.fanruan.api.design.ui.component.UICheckBox; |
|
|
|
import com.fanruan.api.design.ui.component.UILabel; |
|
|
|
|
|
|
|
import com.fanruan.api.design.ui.component.UIIntNumberField; |
|
|
|
import com.fanruan.api.design.ui.component.UIIntNumberField; |
|
|
|
|
|
|
|
import com.fanruan.api.design.ui.component.UILabel; |
|
|
|
import com.fanruan.api.design.ui.component.UINumberField; |
|
|
|
import com.fanruan.api.design.ui.component.UINumberField; |
|
|
|
import com.fanruan.api.design.DesignKit; |
|
|
|
import com.fanruan.api.design.ui.container.BasicPane; |
|
|
|
|
|
|
|
import com.fanruan.api.design.ui.layout.TableLayoutKit; |
|
|
|
import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig; |
|
|
|
import com.fr.plugin.db.redis.core.pool.RedisConnectionPoolConfig; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
@ -55,7 +54,7 @@ public class RedisConnectionPoolConfigPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
double[] rowSize = new double[]{p, p, p, p, p, p}; |
|
|
|
double[] rowSize = new double[]{p, p, p, p, p, p}; |
|
|
|
double[] columnSize = new double[]{p, f}; |
|
|
|
double[] columnSize = new double[]{p, f}; |
|
|
|
add(GUICoreKit.createTableLayoutPane(comps, rowSize, columnSize), BorderLayout.CENTER); |
|
|
|
add(TableLayoutKit.createTableLayoutPane(comps, rowSize, columnSize), BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -73,7 +72,7 @@ public class RedisConnectionPoolConfigPane extends BasicPane { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void update(RedisConnectionPoolConfig config) { |
|
|
|
public void update(RedisConnectionPoolConfig config) { |
|
|
|
config.setMaxTotal((int)maxTotalNumberFiled.getValue()); |
|
|
|
config.setMaxTotal((int) maxTotalNumberFiled.getValue()); |
|
|
|
config.setMaxWait((int) maxWaitNumberField.getValue()); |
|
|
|
config.setMaxWait((int) maxWaitNumberField.getValue()); |
|
|
|
config.setMaxIdle((int) maxIdleNumberField.getValue()); |
|
|
|
config.setMaxIdle((int) maxIdleNumberField.getValue()); |
|
|
|
config.setBlockWhenExhausted(blockWhenExhaustedCheckBox.isSelected()); |
|
|
|
config.setBlockWhenExhausted(blockWhenExhaustedCheckBox.isSelected()); |
|
|
|