public boolean nearNextScheduledShutdown(NSTimestamp rightNow) { long temp; temp = Math.abs(_nextScheduledShutdown.timeIntervalSinceTimestamp(rightNow)); if (temp < halfHourAsSeconds) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("nearNextScheduledShutdown TRUE"); return true; } if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("nearNextScheduledShutdown FALSE"); return false; }
fis.close(); } catch (java.io.IOException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupIO)) { NSLog.debug.appendln("Exception while closing file input stream: " + e.getMessage()); NSLog.debug.appendln(e);
fis.close(); } catch (IOException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupIO)) { NSLog.debug.appendln("Exception while closing file input stream: " + e.getMessage()); NSLog.debug.appendln(e);
if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 0x0L)) { NSLog.debug.appendln("Found a quoted string: " + quotedStringKey + "='" + token + "';");
_configDirectoryPath = _configDirectoryPath + _fS; if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) { NSLog.debug.appendln("configDirectoryPath = " + _configDirectoryPath);
public void run() { setResult(null); _done = false; _doneAndRefreshed = false; String name = getClass().getName(); if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln("<"+name+">: creating computation thread"); } // called to start new thread // We need to catch the possible exceptions too. try { setResult(performAction()); } catch (Exception localException) { _setException(localException); NSLog.err.appendln("<"+getClass().getName()+"> long response thread raised : "+localException.toString()); NSLog.err.appendln("STACK TRACE:"); NSLog.err.appendln(localException); } if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln("<"+name+">: exiting computation thread"); } _done = true; }
private static WOElement _elementWithClass(Class class1, WODeclaration wodeclaration, WOElement woelement) { WOElement woelement1 = WOApplication.application().dynamicElementWithName(class1.getName(), wodeclaration.associations(), woelement, null); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> Created Dynamic Element with name :" + class1.getName()); NSLog.debug.appendln("Declaration : " + wodeclaration); NSLog.debug.appendln("Element : " + woelement1.toString()); } return woelement1; }
Class aClass = _NSUtilities.classWithName(className); if (aClass == null) { if (NSLog.debugLoggingAllowedForLevelAndGroups(2, 128L)) NSLog.debug.appendln(new StringBuilder().append("Unable to find the class ").append(className).append(" in the Java runtime. Unable to validate. Please check your CLASSPATH, or the type for attribute ").append(name()).toString()); return valueP;
String s1 = wodeclaration.type(); if (s1 != null) { if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the java runtime."); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for com.webobjects.appserver._private." + s1 + " ."); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> Will initialize object of class " + s1); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the Compiled Components."); if (NSLog.debugLoggingAllowedForLevelAndGroups(3, 8388608L)) { NSLog.debug.appendln("<WOHTMLWebObjectTag> will look for " + s1 + " in the Frameworks.");
objectValue = dateFormatter.parseObject((value != null) ? value.toString() : ""); } catch (ParseException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln(e); objectValue = numberFormatter.parseObject((value != null) ? value.toString() : ""); } catch (ParseException e) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupWebObjects)) { NSLog.debug.appendln(e);
final WORequest aSyncRequest = syncRequest(aConfig); final _NSThreadsafeMutableArray syncHosts = aConfig.hostErrorArray; if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("Sending sync requests to: " + syncHosts.array());
NSDictionary siteDict = (NSDictionary) (new _JavaMonitorDecoder().decodeRootObject(pathForSiteConfig())); aConfig = new MSiteConfig(siteDict); if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("the SiteConfig is \n" + aConfig.generateSiteConfigXML()); } catch (Throwable ex) {
public WOResponse sendRequestToWotaskd(WORequest aRequest, boolean willChange, boolean isSync) { if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("!@#$!@#$ sendRequestToWotaskd creates a WOHTTPConnection"); WOResponse aResponse = null; if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.err.appendln(localException); isAvailable = false; if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("Cleared sync request for host " + name()); _siteConfig.hostErrorArray.removeObject(this);
if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("calculateNextScheduledShutdown: " + _nextScheduledShutdown);
if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDatabaseAccess)) if (NSLog.debugLoggingAllowedForLevel(NSLog.DebugLevelDetailed)) NSLog.debug.appendln(new RuntimeException("Deprecated implicit bytes->String conversion. Assuming UTF-8 encoding.")); if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDatabaseAccess)) if (NSLog.debugLoggingAllowedForLevel(NSLog.DebugLevelDetailed)) NSLog.debug.appendln(new RuntimeException("Deprecated implicit bytes->String conversion. Assuming UTF-8 encoding."));
try { value = _valueFactoryMethod.invoke(valueFactoryClass()==null?_valueClass:valueFactoryClass(), _NSStringUtilities.bytesForString(str, CharEncoding.UTF_8)); if (!NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDatabaseAccess)) break; if (NSLog.debugLoggingAllowedForLevel(NSLog.DebugLevelDetailed)) try { value = _valueFactoryMethod.invoke(valueFactoryClass()==null?_valueClass:valueFactoryClass(), new NSData(str, CharEncoding.UTF_8)); if (!NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDatabaseAccess)) break; if (NSLog.debugLoggingAllowedForLevel(NSLog.DebugLevelDetailed))
if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog. DebugLevelInformational, NSLog.DebugGroupDeployment)) NSLog.debug.appendln("!@#$!@#$ getSiteConfigFromHostAndPort creates a WOHTTPConnection"); NSDictionary<String, String> monitorRequest = new NSDictionary<>("SITE", "queryWotaskd");
try { value = _valueFactoryMethod.invoke(valueFactoryClass()==null?_valueClass:valueFactoryClass(), _NSStringUtilities.stringForBytes(bytes, CharEncoding.UTF_8)); if (!NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelInformational, NSLog.DebugGroupDatabaseAccess)) break; if (NSLog.debugLoggingAllowedForLevel(NSLog.DebugLevelDetailed))