- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.tc.admin.common.XContainer.setBorder()
方法的一些代码示例,展示了XContainer.setBorder()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XContainer.setBorder()
方法的具体详情如下:
包路径:com.tc.admin.common.XContainer
类名称:XContainer
方法名:setBorder
暂无
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private void clearAttributes() {
attributePanel.setBorder(null);
attrTable.setModel(EMPTY_TABLE_MODEL);
}
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
private XContainer createOperationsPanel() {
XContainer panel = new XContainer(new GridBagLayout());
Insets buttonMargin = (Insets) bundle.getObject("button.small.margin");
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = gbc.gridy = 0;
gbc.insets = new Insets(3, 3, 3, 3);
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(enablementButton = new JToggleButton(bundle.getString("disable.region")), gbc);
enablementButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
queryToggleRegionEnabled();
}
});
enablementButton.setMargin(buttonMargin);
gbc.gridy++;
panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries.in.region")), gbc);
flushButton.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent ae) {
queryFlushRegion();
}
});
flushButton.setMargin(buttonMargin);
panel.setBorder(BorderFactory.createTitledBorder(bundle.getString("region.operations")));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private XContainer createOverviewPanel() {
XContainer result = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridx = gbc.gridy = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.insets = new Insets(1, 5, 1, 0);
result.add(overviewLabel = new XLabel(overviewMsg), gbc);
// overviewLabel.setFont((Font) bundle.getObject("message.label.font"));
overviewLabel.setIcon(EhcachePresentationUtils.ALERT_ICON);
result.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
return result;
}
代码示例来源:origin: org.terracotta.modules/tim-quartz-ui
protected XContainer createVuMeterPanel() {
XContainer panel = new XContainer(new BorderLayout());
panel.add(createLegend(), BorderLayout.NORTH);
panel.add(vuMeterPanel = new VuMeterPanel(appContext), BorderLayout.CENTER);
panel.setBorder(BorderFactory.createTitledBorder("Cluster-wide Activity"));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
private XContainer createToolBar() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 1, 3, 0);
gbc.gridx = gbc.gridy = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(enableAllRegionsButton = new JToggleButton(bundle.getString("enable.cache"), ENABLE_CACHE_ICON), gbc);
enableAllRegionsButton.addActionListener(new EnableAllRegionsAction());
gbc.gridx++;
panel.add(disableAllRegionsButton = new JToggleButton(bundle.getString("disable.cache"), DISABLE_CACHE_ICON), gbc);
disableAllRegionsButton.addActionListener(new DisableAllRegionsAction());
gbc.gridx++;
gbc.insets = new Insets(3, 5, 3, 0);
panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries"), CLEAR_CACHE_ICON), gbc);
flushButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
queryFlushCache();
}
});
gbc.gridx++;
// filler
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(new XLabel(), gbc);
panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
private XContainer createToolBar() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 1, 3, 0);
gbc.gridx = gbc.gridy = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(enableAllRegionsButton = new JToggleButton(bundle.getString("enable.cache"), ENABLE_CACHE_ICON), gbc);
enableAllRegionsButton.addActionListener(new EnableAllRegionsAction());
gbc.gridx++;
panel.add(disableAllRegionsButton = new JToggleButton(bundle.getString("disable.cache"), DISABLE_CACHE_ICON), gbc);
disableAllRegionsButton.addActionListener(new DisableAllRegionsAction());
gbc.gridx++;
gbc.insets = new Insets(3, 5, 3, 0);
panel.add(flushButton = new JToggleButton(bundle.getString("evict.all.entries"), CLEAR_CACHE_ICON), gbc);
flushButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
queryFlushCache();
}
});
gbc.gridx++;
// filler
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(new XLabel(), gbc);
panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0
private XContainer createToolBar() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(3, 3, 3, 3);
gbc.gridx = gbc.gridy = 0;
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.HORIZONTAL;
enableAllCachesButton = new JToggleButton(bundle.getString("enable.all.caches"), ENABLE_CACHE_ICON);
panel.add(enableAllCachesButton, gbc);
enableAllCachesButton.addActionListener(new EnableAllCachesAction());
gbc.gridx++;
disableAllCachesButton = new JToggleButton(bundle.getString("disable.all.caches"), DISABLE_CACHE_ICON);
panel.add(disableAllCachesButton, gbc);
disableAllCachesButton.addActionListener(new DisableAllCachesAction());
gbc.gridx++;
clearAllCachesButton = new JToggleButton(bundle.getString("clear.all.caches"), CLEAR_CACHE_ICON);
panel.add(clearAllCachesButton, gbc);
clearAllCachesButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
queryClearAllCaches();
}
});
gbc.gridx++;
// filler
gbc.weightx = 1.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
panel.add(new XLabel(), gbc);
panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-1.7-ui
panel.add(new XLabel(), gbc);
panel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
代码示例来源:origin: org.terracotta.modules/tim-quartz-ui
protected XContainer createPropertiesPanel() {
XContainer panel = new XContainer(new GridBagLayout());
GridBagConstraints gbc = createConstraint();
gbc.weightx = 0.0;
gbc.fill = GridBagConstraints.NONE;
inStandbyModeLabel = addRow(panel, "Standing by:", gbc);
shutdownLabel = addRow(panel, "Shutdown:", gbc);
versionLabel = addRow(panel, "Version:", gbc);
jobStoreClassLabel = addRow(panel, "JobStore type:", gbc);
threadPoolClassLabel = addRow(panel, "ThreadPool type:", gbc);
threadPoolSizeLabel = addRow(panel, "ThreadPool size:", gbc);
panel.setBorder(BorderFactory.createTitledBorder("Properties"));
XContainer result = new XContainer(new GridBagLayout());
result.add(panel, new GridBagConstraints());
return result;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private XContainer createClusteredPanel() {
clusteredCacheTableModel = new XObjectTableModel(IMutableCacheSettings.class, ATTRS, HEADERS);
Iterator<ClusteredCacheModel> cacheModelIter = cacheManagerModel.clusteredCacheModelIterator();
while (cacheModelIter.hasNext()) {
clusteredCacheTableModel.add(cacheModelIter.next().getCacheSettings());
}
clusteredCacheTable = new SettingsTable(clusteredCacheTableModel);
clusteredCacheTable.getColumnModel().getColumn(0).setCellRenderer(new CacheNameRenderer(true));
clusteredCacheTable.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
Point p = e.getPoint();
int col = clusteredCacheTable.columnAtPoint(p);
int row = clusteredCacheTable.rowAtPoint(p);
if (col != -1 && row != -1) {
clusteredCacheTable.editCellAt(row, col, null);
}
}
});
XScrollPane scroller = new XScrollPane(clusteredCacheTable);
XContainer result = new XContainer(new BorderLayout());
result.setBorder(BorderFactory.createTitledBorder("Terracotta-clustered Caches"));
result.add(scroller);
return result;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void valueChanged(ListSelectionEvent e) {
if (e == null || !e.getValueIsAdjusting()) {
nodeInstanceTableModel.clear();
boolean showNodeInstancePanel = false;
CacheManagerInstance cacheManagerInstance = null;
int[] rows = nodeSummaryTable.getSelectedRows();
if (rows.length == 1) {
cacheManagerInstance = (CacheManagerInstance) nodeSummaryTableModel.getObjectAt(rows[0]);
if (cacheManagerInstance.getInstanceCount() > 0) {
for (Iterator<CacheModelInstance> iter = cacheManagerInstance.cacheModelInstanceIter(); iter.hasNext();) {
nodeInstanceTableModel.add(iter.next());
}
nodeInstanceTableModel.fireTableDataChanged();
String title = MessageFormat.format(bundle.getString("node.instance.detail"), cacheManagerModel.getName(),
cacheManagerInstance.getClient());
nodeInstancePanel.setBorder(BorderFactory.createTitledBorder(title));
showNodeInstancePanel = true;
}
}
setNodeInstancePanelVisible(showNodeInstancePanel);
updateActions(nodeSummaryTable);
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting()) {
cacheInstanceTableModel.clear();
boolean showCacheInstancePanel = false;
CacheModel cacheModel = null;
int[] rows = cacheSummaryTable.getSelectedRows();
if (rows.length == 1) {
cacheModel = (CacheModel) cacheSummaryTableModel.getObjectAt(rows[0]);
for (CacheModelInstance cacheModelInstance : cacheModel.cacheModelInstances()) {
cacheInstanceTableModel.add(cacheModelInstance);
}
cacheInstanceTableModel.fireTableDataChanged();
String title = MessageFormat.format(bundle.getString("cache.detail"), cacheModel.getCacheName());
cacheInstancePanel.setBorder(BorderFactory.createTitledBorder(title));
showCacheInstancePanel = true;
}
setCacheInstancePanelVisible(showCacheInstancePanel);
updateActions(cacheSummaryTable);
}
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private XContainer createCacheSummaryPanel() {
final XContainer panel = new XContainer(new BorderLayout());
panel.setBorder(BorderFactory.createTitledBorder(bundle.getString("cache.summary")));
cacheSummaryTableModel = new CacheSummaryTableModel();
cacheSummaryTable = new XObjectTable(cacheSummaryTableModel);
cacheSummaryTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
cacheSummaryTable.getSelectionModel().addListSelectionListener(this);
panel.add(createSelectAllPanel(cacheSummaryTable), BorderLayout.SOUTH);
panel.add(new XScrollPane(cacheSummaryTable));
cacheSummaryTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
JPopupMenu popup = topologyPanel.createPopup();
cacheSummaryTable.setPopupMenu(popup);
popup.addPopupMenuListener(new PopupMenuAdapter() {
@Override
public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
updateActions(cacheSummaryTable);
}
});
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-ui
private XContainer createNodeSummaryPanel() {
XContainer panel = new XContainer(new BorderLayout());
String title = MessageFormat.format(bundle.getString("node.summary"), cacheManagerModel.getName());
panel.setBorder(BorderFactory.createTitledBorder(title));
nodeSummaryTableModel = new NodeSummaryTableModel();
nodeSummaryTable = new XObjectTable(nodeSummaryTableModel);
nodeSummaryTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
nodeSummaryTable.getSelectionModel().addListSelectionListener(this);
panel.add(createSelectAllPanel(nodeSummaryTable), BorderLayout.SOUTH);
panel.add(new XScrollPane(nodeSummaryTable));
nodeSummaryTable.setDefaultRenderer(Boolean.class, new BooleanRenderer());
JPopupMenu popup = topologyPanel.createPopup();
nodeSummaryTable.setPopupMenu(popup);
popup.addPopupMenuListener(new PopupMenuAdapter() {
@Override
public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
updateActions(nodeSummaryTable);
}
});
return panel;
}
代码示例来源:origin: org.terracotta.modules/tim-quartz-ui
jobDetailTree.addMouseListener(treeMouseListener);
centerPanel.add(jobDetailPanel);
jobDetailPanel.setBorder(BorderFactory.createTitledBorder("Job Details"));
triggerTree.addMouseListener(treeMouseListener);
centerPanel.add(triggerPanel);
triggerPanel.setBorder(BorderFactory.createTitledBorder("Triggers"));
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0-hibernate-ui
topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.x-hibernate-ui
topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);
代码示例来源:origin: org.terracotta.modules/tim-hibernate-cache-provider-3.2
topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
代码示例来源:origin: org.terracotta.modules/tim-ehcache-2.0
topPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.black));
panel.add(topPanel, BorderLayout.NORTH);
我想调整我的 Linux 机器中的流量或控制带宽。但是我找不到任何与 Linux 中的 tc 命令功能相关的 API。正如您可能猜到的那样,我正在尝试使用 API 而不是命令。 任何建议都会有所帮助。
正如您在附图中看到的那样,根据 MediaInfo,我的文件中有两个不同的时间码。有没有办法将它们设置为不同的值? 谢谢你。 最佳答案 您可以使用 -timecode ffmpeg 的选项。 我有一个
请在问题中告诉我。我正在基于 CentOS x86_64 构建流量整形器,Linux 版本 2.6.32-431.3.1.el6.x86_64。所以,它有大约 10 个 u32 哈希表,所有的除数都是
我希望添加一组过滤器,这些过滤器会丢弃与参数匹配的数据包。似乎 tc 过滤器不支持基于匹配的丢弃操作,而是基于 qos 参数。有没有人能够放置 tc 下拉过滤器? 到目前为止,我发现的最常见的方法是使
我目前正在使用以下脚本: #!/bin/bash # # tc uses the following units when passed as a parameter. # kbps: Kilob
本文整理了Java中com.tc.util.ZipBuilder类的一些代码示例,展示了ZipBuilder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
我编写了一个脚本,可以让我通过 ts 限制我的带宽。 Ubuntu 18.04.5 LTS 上的工具。 问题是,即使上传速度正确限制在我在脚本上设置的限制,下载速度也不会被限制,我不明白为什么。 链接
我是使用 tc 命令的新手。 我正在编写一个测试脚本来为接口(interface)添加延迟。这是使用python和fabric api完成的 因此脚本将执行以下操作: sudo tc qdisc ad
我正在尝试使用命令 tc 模拟慢速网络链接.我用 netem模拟延迟和丢包,htb 模拟窄带宽,但我发现 netem 中有一个限制选项,这个选项有什么作用?会影响最终带宽吗? 我用谷歌搜索并在 htt
我已经成功安装了 spring 工具套件 n eclipse jee,现在正在设置 Pivotal tc 服务器,但我无法在 eclipse 中找到 Pivotal tc 服务器的安装目录。请帮忙..
我有 Spring Tool Suite (3.9.2.RELEASE),默认情况下它与 Pivotal TC Web 服务器一起提供,它是 Apache Tomcat 的一个变体。据我了解,为了为
我想让流量控制 TC 优先处理流量。例如,我需要 TCP 通过 band0,UDP 通过 band1,其他流量通过 band3。 我按如下方式创建 qdisc: tc qdisc add dev et
我第一次在 C 库中遇到以 .tc 和 .th 结尾的文件( http://www.vlfeat.org/api/files.html ,那里只列出了 .tc 文件。要查看 .th 文件,必须下载其源
很多时候,如果 mysql/mariadb 没有启动,因为像“无法初始化 tc.log”这样的错误,很多人建议删除这个文件。我想知道 mysql 在文件中存储了哪些信息。这是一个二进制文件,我找不到任
我尝试使用此命令为所有数据包添加固定数量的延迟(# tc qdisc add dev eth0 root netem delay 100ms) 输入后显示“找不到设备“eth0” 最佳答案 输入命令
我正在尝试使用 ubuntu 上的 tc 命令模拟来自源端口 7000 的 tcp 数据包的固定时间延迟。我使用的命令是: sudo tc qdisc add dev eth1 root handle
我正在做一个学校项目,在这个项目中我试图模拟缓冲区膨胀的网络现象。这本质上是延迟,由于内存价格便宜,路由器中的缓冲区随着时间的推移变得越来越大。 现在,为了开始这个项目,我已经对 linux“tc”-
我是 linux 的新手,我的目标是使用 tc 命令(或其他命令,如 ifconfig 或 iptables,但我认为我不需要它们)为“eth0”或“lo”创建一个简单的流量控制. 我的内核是 2.6
本文整理了Java中com.tc.admin.common.XScrollPane类的一些代码示例,展示了XScrollPane类的具体用法。这些代码示例主要来源于Github/Stackoverfl
本文整理了Java中com.tc.admin.common.XObjectTable类的一些代码示例,展示了XObjectTable类的具体用法。这些代码示例主要来源于Github/Stackover
我是一名优秀的程序员,十分优秀!