FileDocCategorySizeDatePackage
InvokeResult.javaAPI DocGlassfish v2 API3189Fri May 04 22:24:52 BST 2007com.sun.cli.jmx.support

InvokeResult

public final class InvokeResult extends Object implements Serializable

Fields Summary
public final ObjectName
mObjectName
public Object
mResult
public Throwable
mThrowable
public static final ResultType
SUCCESS
public static final ResultType
FAILURE
public static final ResultType
NOT_FOUND
Constructors Summary
public InvokeResult(ObjectName name, Object result, Throwable t)

	
		
	       
	
		mObjectName		= name;
		mResult			= result;
		mThrowable		= t;
	
Methods Summary
public com.sun.cli.jmx.support.InvokeResult$ResultTypegetResultType()

		ResultType	result	= NOT_FOUND;
		
		if ( mThrowable == null )
		{
			result	= SUCCESS;
		}
		else
		{
			if ( mThrowable instanceof java.lang.NoSuchMethodException )
			{
				result	= NOT_FOUND;
			}
			else
			{
				result	= FAILURE;
			}
		}
		
		return( result );