demo
Class PrintEnvControlImpl

java.lang.Object
  |
  +--soaprmi.server.RemoteObject
        |
        +--soaprmi.server.UnicastRemoteObject
              |
              +--demo.PrintEnvControlImpl
All Implemented Interfaces:
samples.idl.control.Control_idl, samples.idl.echo.Parameter_idl, xcat.framework.ccacore.Port, ProvidesParamControl, xcat.framework.ccacore.ProvidesPort, javax.naming.Referenceable, soaprmi.Remote, soaprmi.server.RemoteRef

public class PrintEnvControlImpl
extends soaprmi.server.UnicastRemoteObject
implements ProvidesParamControl

Implementation of the ProvidesParamControl interface. Extends soaprmi.UnicastRemoteObject.


Fields inherited from class soaprmi.server.RemoteObject
port
 
Constructor Summary
PrintEnvControlImpl(PrintEnvComponent _pec)
          Must explicitly call the superclass constructor as this is a remote object.
 
Method Summary
 int kill()
          Method defined by the Control_idl interface.
 int sendParameter(java.lang.Object[] param)
          Method defined by the Parameter_idl interface.
 int start()
          Method defined by the Control_idl interface.
 
Methods inherited from class soaprmi.server.UnicastRemoteObject
exportObject, exportObject, exportObject, exportObject, exportObject, exportObject, exportObject, exportObject, getDefaultServices, setDefaultServices
 
Methods inherited from class soaprmi.server.RemoteObject
equals, getReference, getSoapRMIPort, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrintEnvControlImpl

public PrintEnvControlImpl(PrintEnvComponent _pec)
                    throws soaprmi.RemoteException
Must explicitly call the superclass constructor as this is a remote object.
Parameters:
_pec - reference to the underlying component (PrintEnvComponent).
Method Detail

start

public int start()
Method defined by the Control_idl interface. Routine for starting a component. In the case of PrintEnvComponent, this method simply returns 0.
Specified by:
start in interface samples.idl.control.Control_idl

kill

public int kill()
Method defined by the Control_idl interface. Routine for shutting down the JVM in which the component is running. Spins off a separate thread which sleeps a few seconds before calling System.exit, in order to avoid race conditions.
Specified by:
kill in interface samples.idl.control.Control_idl

sendParameter

public int sendParameter(java.lang.Object[] param)
Method defined by the Parameter_idl interface. Routine for passing in parameters. Here implemented to call the component's "init" method.
Specified by:
sendParameter in interface samples.idl.echo.Parameter_idl
Parameters:
param - an array of Objects representing the arguments of the method to be called. In this implementation, it is assumed that there is only one: an array of Strings.