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 JavaVMArgumentscurrent()Gets the process argument list of the current process.static voidstatic JavaVMArgumentsof(int pid) Gets the process argument list of the specified process ID.voidremoveSystemProperty(String name) voidremoveTail(int n) Removes the n items from the end.voidsetSystemProperty(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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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
-