org.glassfish.admin.amx.intf.config
Interface AnonymousElementList

All Known Subinterfaces:
JavaConfig, Profiler

Deprecated. Mixin interface indicating that there is at least one anonymous non-singleton leaf element present eg a <jvm-options>. Supports any number of such elements.

Examples:

 setJVMOptions( new String[] { COLLECTION_OP_REPLACE, "-client", "-Xmx" } // replaces all with these
 setJVMOptions( new String[] { "-client", "-Xmx" }   // adds these
 setJVMOptions( new String[] { COLLECTION_OP_REMOVE, "-client", "-Xmx" }   // removes these
 

@Deprecated
public interface AnonymousElementList


Field Summary
static java.lang.String OP_ADD
          Deprecated. indicates that the values are to be added to the existing ones
static java.lang.String OP_REMOVE
          Deprecated. indicates that the values are to be remove from the existing ones
static java.lang.String OP_REPLACE
          Deprecated. indicates that all values are to be replaced with the specified ones
 
Method Summary
 java.lang.String[] getAnonymousElementList(java.lang.String elementName)
          Deprecated. Return all values of the element list specified by the element name, which must be an anonymous non-singleton simple element eg:
 java.lang.String[] modifyAnonymousElementList(java.lang.String elementName, java.lang.String cmd, java.lang.String[] args)
          Deprecated. Modify the collection as specified.
 

Field Detail

OP_ADD

static final java.lang.String OP_ADD
Deprecated. 
indicates that the values are to be added to the existing ones

See Also:
Constant Field Values

OP_REMOVE

static final java.lang.String OP_REMOVE
Deprecated. 
indicates that the values are to be remove from the existing ones

See Also:
Constant Field Values

OP_REPLACE

static final java.lang.String OP_REPLACE
Deprecated. 
indicates that all values are to be replaced with the specified ones

See Also:
Constant Field Values
Method Detail

getAnonymousElementList

java.lang.String[] getAnonymousElementList(java.lang.String elementName)
Deprecated. 
Return all values of the element list specified by the element name, which must be an anonymous non-singleton simple element eg:
 <jvm-options>--client</jvm-options>
 <jvm-options>-Dfoo=bar</jvm-options>
 

<some-elem>-Dfoo=bar</some-elem> <some-elem>-Dfoo=bar</some-elem> ...

For example getCollection( "JVMOptions" ) for certain AMXConfig that have <jvm-options> elements. This is the generic operation; an AMXConfig can choose to implement an Attribute as well eg getJVMOptions(). Either the AMX Attribute name (if present) may be used, or the XML element name may be used. It is suggested that all such element names have a String[] getter so they can at least be treated as read-only Attributes.


modifyAnonymousElementList

java.lang.String[] modifyAnonymousElementList(java.lang.String elementName,
                                              java.lang.String cmd,
                                              java.lang.String[] args)
Deprecated. 
Modify the collection as specified. To perform a set()-style operation, use modifyCollection(name, COLLECTION_OP_REPLACE, new String[] {...}).

Parameters:
elementName - the name of the collection eg "JVMOptions"
cmd - the operation to perform
args - values used by the command
Returns:
the entire list


Copyright © 2012 GlassFish Community. All Rights Reserved.