Refine search
public void setMaxIdleTime(String maxIdleTime) { try{ this.maxIdleTime = Long.parseLong(maxIdleTime); }catch(NumberFormatException nfe){ DOLUtils.getDefaultLogger().log(Level.WARNING, "invalid maxIdleTime value [ " + maxIdleTime + " ]," + " required long"); } }
public void setMaxIdleTime(String maxIdleTime) { try{ this.maxIdleTime = Long.parseLong(maxIdleTime); }catch(NumberFormatException nfe){ DOLUtils.getDefaultLogger().log(Level.WARNING, "invalid maxIdleTime value [ " + maxIdleTime + " ]," + " required long"); } }
private static void printEntry(ZipEntry e) throws IOException { DOLUtils.getDefaultLogger().log(Level.FINE, e.getName()); }
public Object run() { Set<Principal> pset = fs.getPrincipals(); Principal prin = null; if (pset.size() > 0) { prin = (Principal)pset.iterator().next(); DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment.backend.computeRunAsPrincipal", new Object[] { prin.getName() }); } return (prin != null) ? prin.getName() : null; } });
@Override public Object run() { Set<Principal> pset = fs.getPrincipals(); Principal prin = null; if (pset.size() > 0) { prin = (Principal)pset.iterator().next(); DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment.backend.computeRunAsPrincipal", new Object[] { prin.getName() }); } return (prin != null) ? prin.getName() : null; } });
public void fatalError(SAXParseException spe) throws SAXParseException { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorFailure", new Object[] {errorReportingString , String.valueOf(spe.getLineNumber()), String.valueOf(spe.getColumnNumber()), spe.getLocalizedMessage()}); if (stopOnXMLErrors) { throw spe; } }
public void setLoginTimeout(String loginTimeout) { try{ this.loginTimeout = Long.parseLong(loginTimeout); setLoginTimeoutSet(true); }catch(NumberFormatException nfe){ DOLUtils.getDefaultLogger().log(Level.WARNING, "invalid loginTimeout value [ " + loginTimeout+ " ]," + " required long"); } }
public static void write (Descriptor descriptor, final RootXMLNode node, final File resultFile) throws Exception { if (node==null) { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorMappingFailure", new Object[] {descriptor, null}); return; } if (resultFile.getParent() != null) (new File(resultFile.getParent())).mkdirs(); FileOutputStream out = new FileOutputStream(resultFile); write(descriptor, node, out); out.close(); }
public void error(SAXParseException spe) throws SAXParseException { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorFailure", new Object[] {errorReportingString , String.valueOf(spe.getLineNumber()), String.valueOf(spe.getColumnNumber()), spe.getLocalizedMessage()}); if (stopOnXMLErrors) { throw spe; } }
public void error(SAXParseException spe) throws SAXParseException { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorFailure", new Object[] {errorReportingString , String.valueOf(spe.getLineNumber()), String.valueOf(spe.getColumnNumber()), spe.getLocalizedMessage()}); if (stopOnXMLErrors) { throw spe; } }
public void fatalError(SAXParseException spe) throws SAXParseException { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorFailure", new Object[] {errorReportingString , String.valueOf(spe.getLineNumber()), String.valueOf(spe.getColumnNumber()), spe.getLocalizedMessage()}); if (stopOnXMLErrors) { throw spe; } }
public void setLoginTimeout(String loginTimeout) { try{ this.loginTimeout = Long.parseLong(loginTimeout); setLoginTimeoutSet(true); }catch(NumberFormatException nfe){ DOLUtils.getDefaultLogger().log(Level.WARNING, "invalid loginTimeout value [ " + loginTimeout+ " ]," + " required long"); } }
public void setType(String type) { DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment_dummy_set_type", new Object[] {getName()}); } }
public void setTransactionType(String transactionType) { DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment_dummy_set_trans_type", new Object[] {getName()}); }
@Override public void setTransactionType(String transactionType) { DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment_dummy_set_trans_type", new Object[] {getName()}); }
@Override public void setType(String type) { DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment_dummy_set_type", new Object[] {getName()}); }
/** * @return a new instance of a registered descriptor class for the * supplied XPath */ public static Object getDescriptor(String xmlPath) { try { Class c = getDescriptorClass(xmlPath); if (c!=null) { return c.newInstance(); } } catch (Throwable t) { DOLUtils.getDefaultLogger().log(Level.WARNING, "Error occurred", t); } return null; }
/** * @return a new instance of a registered descriptor class for the * supplied XPath */ public static Object getDescriptor(String xmlPath) { try { Class c = getDescriptorClass(xmlPath); if (c!=null) { return c.newInstance(); } } catch (Throwable t) { DOLUtils.getDefaultLogger().log(Level.WARNING, "Error occurred", t); } return null; }
public static void write (Descriptor descriptor, final RootXMLNode node, final File resultFile) throws Exception { if (node==null) { DOLUtils.getDefaultLogger().log(Level.SEVERE, DOLUtils.INVALID_DESC_MAPPING, new Object[] {descriptor, null}); return; } if (resultFile.getParent() != null) { File f = new File(resultFile.getParent()); if (!f.isDirectory() && !f.mkdirs()) throw new IOException("Cannot create parent directory " + f.getAbsolutePath()); } FileOutputStream out = new FileOutputStream(resultFile); try { write(descriptor, node, out); } finally { out.close(); } }
@Override public void addDescriptor(Object newDescriptor) { if (descriptor == null) { DOLUtils.getDefaultLogger().log(Level.WARNING, "enterprise.deployment.backend.addDescriptorFailure", new Object[] {newDescriptor, this}); return; } if (newDescriptor instanceof ResourcePrincipal) { descriptor.setResourcePrincipal((ResourcePrincipal) newDescriptor); } else if (newDescriptor instanceof MailConfiguration) { // XXX - This special case doesn't seem to be needed since no one // ever uses the value set here. I'm not even sure this case can // ever happen; see MailConfigurationNode. descriptor.setMailConfiguration((MailConfiguration) newDescriptor); } else { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[]{"In " + this + " do not know what to do with " + newDescriptor}); } }