|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.jasmine.monitoring.mbeancmd.AbstractCommand
org.ow2.jasmine.monitoring.mbeancmd.commands.MLoad
public class MLoad
Mbean loading facility.
Field Summary | |
---|---|
private org.apache.commons.cli.CommandLine |
commandLine
Command line arguments. |
private java.lang.String |
domain
Domain name. |
private java.net.URL |
mbeanUrl
MBean's URL. |
private javax.management.MBeanServerConnection |
mbscnx
JMX connection to server. |
private static java.lang.String |
MLET_OBJECTNAME_RADIX
Default ObjectName MLet radix. |
private java.lang.String |
mletName
Current MLet name. |
private javax.management.ObjectName |
mleton
The object name based on the command line arguments. |
private org.apache.commons.cli.Options |
options
List of options that should be parsed from the command line. |
private java.lang.String |
server
Server name. |
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand |
---|
arguments, name, simpleDateFormat |
Constructor Summary | |
---|---|
MLoad()
Constructor: calls setOptions() . |
Method Summary | |
---|---|
private void |
deleteMLet()
Deletes the MLet given as command argument. |
void |
exec()
Implementation of inherited abstract method. |
private java.util.Set |
findMletON()
|
private java.lang.String |
getDomain()
Sets the J2EE server's domain and server names into domain
and server . |
private javax.management.ObjectName |
getMletON()
|
private boolean |
isMletON()
|
private java.util.Set |
LoadMBeans()
|
private void |
parseCommandLine(java.lang.String[] args)
Parses the command line arguments into commandLine . |
private void |
setOptions()
Sets all options that are parseable from the command line. |
java.lang.String |
summary()
Implementation of inherited abstract method. |
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.AbstractCommand |
---|
Exit, getHelpDoc, getName, help, setArgs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.apache.commons.cli.Options options
private org.apache.commons.cli.CommandLine commandLine
private javax.management.ObjectName mleton
private static final java.lang.String MLET_OBJECTNAME_RADIX
private java.lang.String mletName
private java.net.URL mbeanUrl
private javax.management.MBeanServerConnection mbscnx
private java.lang.String domain
private java.lang.String server
Constructor Detail |
---|
public MLoad()
setOptions()
.
Method Detail |
---|
private void setOptions()
options
public void exec()
exec
in interface Command
exec
in class AbstractCommand
AbstractCommand.exec()
private java.util.Set LoadMBeans() throws javax.management.InstanceNotFoundException, javax.management.MBeanException, javax.management.ReflectionException, java.io.IOException
javax.management.InstanceNotFoundException
- MBean instance not found.
javax.management.MBeanException
- MBean invocation exception.
javax.management.ReflectionException
- MBean reflection failed.
java.io.IOException
- Connection problem.private void deleteMLet() throws javax.management.InstanceNotFoundException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, java.io.IOException
javax.management.InstanceNotFoundException
- MBean instance not found.
javax.management.MBeanRegistrationException
- MLet registration failed.
javax.management.MalformedObjectNameException
- Object name invalid.
java.io.IOException
- Connection problem.private javax.management.ObjectName getMletON() throws javax.management.MalformedObjectNameException, javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException, javax.management.ReflectionException, javax.management.MBeanException, java.io.IOException
javax.management.MalformedObjectNameException
- Object name invalid.
javax.management.InstanceAlreadyExistsException
- MLet instance already exists.
javax.management.MBeanRegistrationException
- MLet registration failed.
javax.management.NotCompliantMBeanException
- MBean not compliant.
javax.management.ReflectionException
- MBean reflection failed.
javax.management.MBeanException
- MBean invocation exception.
java.io.IOException
- Connection problem.private boolean isMletON() throws java.io.IOException, javax.management.MalformedObjectNameException
java.io.IOException
- Connection problem.
javax.management.MalformedObjectNameException
- Object name invalid.private java.util.Set findMletON() throws java.io.IOException, javax.management.MalformedObjectNameException
java.io.IOException
- Connection problem.
javax.management.MalformedObjectNameException
- Object name invalid.private java.lang.String getDomain() throws java.io.IOException, javax.management.MalformedObjectNameException
domain
and server
.
java.io.IOException
- Connection problem.
javax.management.MalformedObjectNameException
- Object name invalid.private void parseCommandLine(java.lang.String[] args) throws org.apache.commons.cli.ParseException, javax.management.MalformedObjectNameException, java.net.MalformedURLException
commandLine
.
args
- Arguments to parse.
org.apache.commons.cli.ParseException
- If parsing fails.
javax.management.MalformedObjectNameException
- Object name given in the command
line is invalid.
java.net.MalformedURLException
- URL given in the command line is
invalid.public java.lang.String summary()
summary
in interface Command
summary
in class AbstractCommand
AbstractCommand.summary()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |