Java Code Examples for com.sun.jdi.connect.Connector.Argument#value()

The following examples show how to use com.sun.jdi.connect.Connector.Argument#value() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AttachingDICookie.java    From netbeans with Apache License 2.0 5 votes vote down vote up
/**
 * Returns port number.
 *
 * @return port number
 */
public int getPortNumber () {
    Argument a = args.get ("port");
    if (a == null) return -1;
    String pn = a.value ();
    if (pn == null) return -1;
    return Integer.parseInt (pn);
}
 
Example 2
Source File: AttachingDICookie.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * Returns name of computer.
 *
 * @return name of computer
 */
public String getHostName () {
    Argument a = args.get ("hostname");
    if (a == null) return null;
    return a.value ();
}
 
Example 3
Source File: AttachingDICookie.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * Returns shared memory block name.
 *
 * @return shared memory block name
 */
public String getSharedMemoryName () {
    Argument a = args.get ("name");
    if (a == null) return null;
    return a.value ();
}
 
Example 4
Source File: LaunchingDICookie.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * Returns command line to be used.
 *
 * @return command line to be used
 */
public String getCommandLine () {
    Argument a = args.get ("command");
    if (a == null) return null;
    return a.value ();
}
 
Example 5
Source File: ListeningDICookie.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * Returns shared memory block name.
 *
 * @return shared memory block name
 */
public String getSharedMemoryName () {
    Argument a = args.get ("name");
    if (a == null) return null;
    return a.value ();
}
 
Example 6
Source File: AttachingDICookie.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**
 * Returns process ID.
 *
 * @return the process ID
 * @since 2.16
 */
public String getProcessID () {
    Argument a = args.get ("pid");
    if (a == null) return null;
    return a.value ();
}