View Javadoc
1   package org.cyclopsgroup.jmxterm;
2   
3   import java.io.IOException;
4   
5   /**
6    * Identifies a running JVM process
7    * 
8    * @author <a href="mailto:jiaqi.guo@gmail.com">Jiaqi Guo</a>
9    */
10  public interface JavaProcess {
11    /**
12     * @return Display name of process
13     */
14    String getDisplayName();
15  
16    /**
17     * @return System process ID
18     */
19    int getProcessId();
20  
21    /**
22     * @return True if process is JMX manageable
23     */
24    boolean isManageable();
25  
26    /**
27     * Start management agent
28     * 
29     * @throws IOException Thrown when management agent couldn't be started
30     */
31    void startManagementAgent() throws IOException;
32  
33    /**
34     * @return Get connector URL
35     */
36    String toUrl();
37  }