// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package timingexp;

public final class TestRMIReconfigure_Stub
    extends java.rmi.server.RemoteStub
    implements timingexp.TestRMIReconfigureIfc, java.rmi.Remote
{
    private static final java.rmi.server.Operation[] operations = {
	new java.rmi.server.Operation("void setCacheNotVeryUseful(boolean)")
    };
    
    private static final long interfaceHash = -6454172529860618595L;
    
    private static final long serialVersionUID = 2;
    
    private static boolean useNewInvoke;
    private static java.lang.reflect.Method $method_setCacheNotVeryUseful_0;
    
    static {
	try {
	    java.rmi.server.RemoteRef.class.getMethod("invoke",
		new java.lang.Class[] {
		    java.rmi.Remote.class,
		    java.lang.reflect.Method.class,
		    java.lang.Object[].class,
		    long.class
		});
	    useNewInvoke = true;
	    $method_setCacheNotVeryUseful_0 = timingexp.TestRMIReconfigureIfc.class.getMethod("setCacheNotVeryUseful", new java.lang.Class[] {boolean.class});
	} catch (java.lang.NoSuchMethodException e) {
	    useNewInvoke = false;
	}
    }
    
    // constructors
    public TestRMIReconfigure_Stub() {
	super();
    }
    public TestRMIReconfigure_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
    }
    
    // methods from remote interfaces
    
    // implementation of setCacheNotVeryUseful(boolean)
    public void setCacheNotVeryUseful(boolean $param_boolean_1)
	throws java.rmi.RemoteException
    {
	try {
	    if (useNewInvoke) {
		ref.invoke(this, $method_setCacheNotVeryUseful_0, new java.lang.Object[] {new java.lang.Boolean($param_boolean_1)}, -9179332325807985226L);
	    } else {
		java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
		try {
		    java.io.ObjectOutput out = call.getOutputStream();
		    out.writeBoolean($param_boolean_1);
		} catch (java.io.IOException e) {
		    throw new java.rmi.MarshalException("error marshalling arguments", e);
		}
		ref.invoke(call);
		ref.done(call);
	    }
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
}
