- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ScheduledThreadPoolExecutor s =
new ScheduledThreadPoolExecutor(corePoolSize)
ThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
String str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
- Smart code suggestions by Codota
}
public void setAsText(String text) throws IllegalArgumentException { try { String prefix = "DeployableUnitID[url="; if (text.startsWith(prefix) && text.charAt(text.length()-1) == ']') { this.setValue(new DeployableUnitID(text.substring(prefix.length(),text.length()-1))); return; } throw new IllegalArgumentException("Must be DeployableUnitID[url=X] where X is the du original URL"); } catch (Throwable ex) { throw new IllegalArgumentException("Must be DeployableUnitID[url=X] where X is the du original URL",ex); } }
@Override public void invoke() throws Exception { getDeploymentMBean().uninstall(new DeployableUnitID(getDuURL())); }
public DeployableUnitID getDeployableUnit(String deploymentUrl) throws NullPointerException, UnrecognizedDeployableUnitException, ManagementException { DeployableUnitID deployableUnitID = new DeployableUnitID(deploymentUrl); boolean duExists = true; try { if (getSleeContainer().getDeployableUnitManagement() .getDeployableUnit(deployableUnitID) == null) { duExists = false; } } catch (Throwable e) { throw new ManagementException(e.getMessage(), e); } if (duExists) { return deployableUnitID; } else { throw new UnrecognizedDeployableUnitException(deploymentUrl); } }
DeployableUnitID deployableUnitID = new DeployableUnitID(url);
DeployableUnitID deployableUnitID = new DeployableUnitID(url);