org.oddjob.jmx
Class Utils

java.lang.Object
  extended by org.oddjob.jmx.Utils

public class Utils
extends Object

Utilities mainly for method argument manipulation during remote jmx calls.


Constructor Summary
Utils()
           
 
Method Summary
static String[] classArray2StringArray(Class<?>[] classes)
          Convert an array of classes to an array of strings for invoking a JMX operation.
static Serializable export(Object object)
          Convert an object into something that can be sent accross the wire.
static Serializable[] export(Object[] objects)
          Convert an array of objects to Objects that can be sent accross the wire in a remote method call.
static Object[] importResolve(Object[] objects, ObjectNames names)
          Import an array of objects that have come accross the wire.
static Object importResolve(Object object, ObjectNames names)
          Import an object that has come across the wire.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

classArray2StringArray

public static String[] classArray2StringArray(Class<?>[] classes)
Convert an array of classes to an array of strings for invoking a JMX operation.

Parameters:
classes - Array of classes.
Returns:
Array of Strings.

export

public static Serializable[] export(Object[] objects)
                             throws NotSerializableException
Convert an array of objects to Objects that can be sent accross the wire in a remote method call.

Parameters:
objects -
Returns:
Throws:
NotSerializableException

export

public static Serializable export(Object object)
                           throws NotSerializableException
Convert an object into something that can be sent accross the wire.

Parameters:
object -
Returns:
Throws:
NotSerializableException

importResolve

public static Object[] importResolve(Object[] objects,
                                     ObjectNames names)
Import an array of objects that have come accross the wire.

Parameters:
objects -
componentRegistry -
Returns:

importResolve

public static Object importResolve(Object object,
                                   ObjectNames names)
Import an object that has come across the wire.

Parameters:
object -
componentRegistry -
Returns: