Commit 62867a39 authored by vikram singh's avatar vikram singh

initial commit

parent 4c38c794
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="false" project-jdk-name="9" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
......@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../" vcs="Git" />
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="dd36efdf-5e36-4796-8a91-0f39bc1c0197" name="Default Changelist" comment="" />
<ignored path="$PROJECT_DIR$/out/" />
<ignored path="$PROJECT_DIR$/.gradle/" />
<ignored path="$PROJECT_DIR$/build/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<list default="true" id="dd36efdf-5e36-4796-8a91-0f39bc1c0197" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
......@@ -375,8 +373,17 @@
<option name="presentableId" value="Default" />
<updated>1585204852696</updated>
</task>
<task id="LOCAL-00001" summary="added specified imports, reallocated the variables to class level and instance variable as per the requirement,Used logger for logging in almost every classes">
<created>1585916421868</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1585916421868</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers />
</component>
<<<<<<< Updated upstream
<component name="ToolWindowManager">
<frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
<editor active="true" />
......@@ -409,6 +416,75 @@
<window_info anchor="right" id="Ant Build" order="7" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="8" weight="0.25" />
</layout>
=======
<component name="VcsManagerConfiguration">
<MESSAGE value="added specified imports, reallocated the variables to class level and instance variable as per the requirement,Used logger for logging in almost every classes" />
<option name="LAST_COMMIT_MESSAGE" value="added specified imports, reallocated the variables to class level and instance variable as per the requirement,Used logger for logging in almost every classes" />
</component>
<component name="WindowStateProjectService">
<state x="320" y="103" key="#Notifications" timestamp="1585916534553">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state x="320" y="103" key="#Notifications/0.23.1440.835@0.23.1440.835" timestamp="1585916534553" />
<state x="320" y="103" key="#Project_Structure" timestamp="1585802015561">
<screen x="0" y="23" width="1440" height="828" />
</state>
<state x="320" y="103" key="#Project_Structure/0.23.1440.828@0.23.1440.828" timestamp="1585802015561" />
<state x="345" y="41" key="CommitChangelistDialog2" timestamp="1585916421399">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state x="345" y="41" key="CommitChangelistDialog2/0.23.1440.835@0.23.1440.835" timestamp="1585916421399" />
<state x="508" y="199" key="FileChooserDialogImpl" timestamp="1585802010975">
<screen x="0" y="23" width="1440" height="828" />
</state>
<state x="508" y="199" key="FileChooserDialogImpl/0.23.1440.828@0.23.1440.828" timestamp="1585802010975" />
<state width="1214" height="133" key="GridCell.Tab.0.bottom" timestamp="1585916595622">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state width="1014" height="60" key="GridCell.Tab.0.bottom/0.23.1440.828@0.23.1440.828" timestamp="1585817878577" />
<state width="1214" height="133" key="GridCell.Tab.0.bottom/0.23.1440.835@0.23.1440.835" timestamp="1585916595622" />
<state width="1214" height="133" key="GridCell.Tab.0.center" timestamp="1585916595621">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state width="1014" height="60" key="GridCell.Tab.0.center/0.23.1440.828@0.23.1440.828" timestamp="1585817878576" />
<state width="1214" height="133" key="GridCell.Tab.0.center/0.23.1440.835@0.23.1440.835" timestamp="1585916595621" />
<state width="1214" height="133" key="GridCell.Tab.0.left" timestamp="1585916595621">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state width="1014" height="60" key="GridCell.Tab.0.left/0.23.1440.828@0.23.1440.828" timestamp="1585817878575" />
<state width="1214" height="133" key="GridCell.Tab.0.left/0.23.1440.835@0.23.1440.835" timestamp="1585916595621" />
<state width="1214" height="133" key="GridCell.Tab.0.right" timestamp="1585916595621">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state width="1014" height="60" key="GridCell.Tab.0.right/0.23.1440.828@0.23.1440.828" timestamp="1585817878577" />
<state width="1214" height="133" key="GridCell.Tab.0.right/0.23.1440.835@0.23.1440.835" timestamp="1585916595621" />
<state x="229" y="77" key="SettingsEditor" timestamp="1585898632950">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state x="229" y="77" key="SettingsEditor/0.23.1440.830@0.23.1440.830" timestamp="1585653874499" />
<state x="229" y="77" key="SettingsEditor/0.23.1440.831@0.23.1440.831" timestamp="1585834968101" />
<state x="229" y="77" key="SettingsEditor/0.23.1440.835@0.23.1440.835" timestamp="1585898632950" />
<state x="572" y="360" key="VCS.ChangelistChooser" timestamp="1585802154099">
<screen x="0" y="23" width="1440" height="828" />
</state>
<state x="572" y="360" key="VCS.ChangelistChooser/0.23.1440.828@0.23.1440.828" timestamp="1585802154099" />
<state x="320" y="178" key="Vcs.Push.Dialog.v2" timestamp="1585916489158">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state x="320" y="178" key="Vcs.Push.Dialog.v2/0.23.1440.835@0.23.1440.835" timestamp="1585916489158" />
<state x="376" y="271" key="com.intellij.ide.util.TipDialog" timestamp="1585717014339">
<screen x="0" y="23" width="1440" height="829" />
</state>
<state x="376" y="271" key="com.intellij.ide.util.TipDialog/0.23.1440.829@0.23.1440.829" timestamp="1585717014339" />
<state x="383" y="200" width="673" height="472" key="find.popup" timestamp="1585898332134">
<screen x="0" y="23" width="1440" height="835" />
</state>
<state x="383" y="200" width="673" height="472" key="find.popup/0.23.1440.835@0.23.1440.835" timestamp="1585898332134" />
<state x="385" y="198" width="670" height="675" key="run.anything.popup" timestamp="1585802589549">
<screen x="0" y="23" width="1440" height="828" />
</state>
<state x="385" y="198" width="670" height="675" key="run.anything.popup/0.23.1440.828@0.23.1440.828" timestamp="1585802589549" />
>>>>>>> Stashed changes
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
......@@ -799,4 +875,4 @@
</state>
</states>
</component>
</project>
\ No newline at end of file
</project>
......@@ -12,5 +12,7 @@ repositories {
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.12'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
#Fri Apr 03 12:57:31 IST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
package com.nisum.java9Features.ProcessAPI;
import lombok.extern.slf4j.Slf4j;
import java.util.logging.Logger;
public class DestroyProcessFromProcessBuilder {
private final static Logger log =Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
static ProcessBuilder pb;
public static void main(String[] args) throws Exception {
ProcessBuilder pb = new ProcessBuilder("java", "sample");
pb= new ProcessBuilder("java", "sample");
Process p = pb.start();
System.out.println("Process Started with id:" + p.pid());
log.info("Process Started with id:" + p.pid());
Thread.sleep(10000);
System.out.println("Destroying the process with id:" + p.pid());
log.info("Destroying the process with id:" + p.pid());
p.destroy();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment