From kato-commits-return-999-apmail-incubator-kato-commits-archive=incubator.apache.org@incubator.apache.org Tue Dec 22 22:57:58 2009 Return-Path: Delivered-To: apmail-incubator-kato-commits-archive@minotaur.apache.org Received: (qmail 52587 invoked from network); 22 Dec 2009 22:57:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 22:57:58 -0000 Received: (qmail 4534 invoked by uid 500); 22 Dec 2009 22:57:58 -0000 Delivered-To: apmail-incubator-kato-commits-archive@incubator.apache.org Received: (qmail 4520 invoked by uid 500); 22 Dec 2009 22:57:58 -0000 Mailing-List: contact kato-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: kato-dev@incubator.apache.org Delivered-To: mailing list kato-commits@incubator.apache.org Received: (qmail 4510 invoked by uid 99); 22 Dec 2009 22:57:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 22:57:58 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 22:57:51 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0BE6E23889EC; Tue, 22 Dec 2009 22:57:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r893335 - in /incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm: ./ spi/delegates/ Date: Tue, 22 Dec 2009 22:57:30 -0000 To: kato-commits@incubator.apache.org From: spoole@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091222225731.0BE6E23889EC@eris.apache.org> Author: spoole Date: Tue Dec 22 22:57:29 2009 New Revision: 893335 URL: http://svn.apache.org/viewvc?rev=893335&view=rev Log: added missing licence files to new Java code Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpFactory.java Tue Dec 22 22:57:29 2009 @@ -11,16 +11,27 @@ * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm; -import java.io.File; -import java.io.IOException; import java.util.Collection; import java.util.Collections; import java.util.Map; import java.util.TreeMap; -import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities; +import javax.tools.diagnostics.vm.spi.delegates.JavaDumpDelegate; import javax.tools.diagnostics.vm.spi.delegates.HProfSignalTriggeredDumpDelegate; import javax.tools.diagnostics.vm.spi.delegates.IBMSPIBasedHeapDumpDelegate; import javax.tools.diagnostics.vm.spi.delegates.IBMSPIBasedSystemDumpDelegate; @@ -111,7 +122,7 @@ DumpFactory d=new DumpFactory(); d.loadStandardInitiators(); if(d.availableInitiators.isEmpty()) { - d.addInitiator(new DummyDelegate()); + d.addInitiator(new JavaDumpDelegate()); } defaultDumpFactory=d; @@ -252,60 +263,6 @@ } - private static class DummyDelegate implements DumpInitiatorDelegate { - - /* - * (non-Javadoc) - * - * @see javax.tools.diagnostics.vm.DumpInitiatorDelegate#dump() - */ - - private boolean createDump() throws IOException { - - File dumpFile=new File("kato.dump.placebo"); - return dumpFile.createNewFile(); - - - } - - public boolean available() { - return true; - } - - @Override - public DumpHandle createDumpHandle() { - return new DumpHandle() { - - @Override - public boolean dump() throws IOException { - return createDump(); - } - }; - } - - @Override - public DumpHandle createDumpHandle(DumpDescriptor descriptor) { - return new DumpHandle() { - - @Override - public boolean dump() throws IOException { - return createDump(); - } - }; - } - - @Override - public DumpInitiatorCapabilities getCapabilities() { - return new DumpInitiatorCapabilities() { - }; - } - - @Override - public String getDumpType() { - return "kato.dump.placebo"; - } - } - } Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractIBMSPIBasedDumpInitiatorDelegate.java Tue Dec 22 22:57:29 2009 @@ -1,3 +1,16 @@ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm.spi.delegates; import java.io.IOException; Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/AbstractSignalBasedDumpInitiatorDelegate.java Tue Dec 22 22:57:29 2009 @@ -1,3 +1,16 @@ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm.spi.delegates; import java.io.IOException; Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/HProfSignalTriggeredDumpDelegate.java Tue Dec 22 22:57:29 2009 @@ -1,3 +1,16 @@ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm.spi.delegates; import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities; Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedHeapDumpDelegate.java Tue Dec 22 22:57:29 2009 @@ -1,3 +1,16 @@ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm.spi.delegates; import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities; Modified: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java?rev=893335&r1=893334&r2=893335&view=diff ============================================================================== --- incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java (original) +++ incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/IBMSPIBasedSystemDumpDelegate.java Tue Dec 22 22:57:29 2009 @@ -1,3 +1,16 @@ +/******************************************************************************* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + ******************************************************************************/ package javax.tools.diagnostics.vm.spi.delegates; import javax.tools.diagnostics.vm.spi.DumpInitiatorCapabilities;