Package com.sun.akuma
Class JavaVMArguments
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,List<String>
,RandomAccess
,SequencedCollection<String>
List of arguments for Java VM and application.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaVMArguments
current()
Gets the process argument list of the current process.static void
static JavaVMArguments
of
(int pid) Gets the process argument list of the specified process ID.void
removeSystemProperty
(String name) void
removeTail
(int n) Removes the n items from the end.void
setSystemProperty
(String name, String value) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
JavaVMArguments
public JavaVMArguments() -
JavaVMArguments
-
-
Method Details
-
removeSystemProperty
-
setSystemProperty
-
removeTail
public void removeTail(int n) Removes the n items from the end. Useful for removing all the Java arguments to rebuild them. -
current
Gets the process argument list of the current process.- Throws:
IOException
-
of
Gets the process argument list of the specified process ID.- Parameters:
pid
- -1 to indicate the current process.- Throws:
IOException
-
main
- Throws:
IOException
-