oracle.clex.process.controller
Class ConsoleController

java.lang.Object
  |
  +--oracle.clex.process.controller.ConsoleController
All Implemented Interfaces:
Parent, ProcessController, ServiceController

public abstract class ConsoleController
extends java.lang.Object
implements ServiceController

Responsible for starting a Service from a Command Line Interface. Currently, this controller does not support console i/o. It will eventually, though. Right now, it merely starts a Service and that's it.

To run, you must call the start() method from a main thusly:

XXXController controller = new XXXController(); controller.start();


Field Summary
protected  boolean DEBUG
           
protected  java.lang.Object sessionId
           
 
Constructor Summary
ConsoleController()
           
 
Method Summary
 void buildTransitionTable(TransitionTable aTable)
          Does nothing
 java.util.Vector getChildren()
          TO BE IMPLEMENTED.
abstract  Service getConcreteService()
          Returns an instance of the Service which is supported by the implementing Controller subclass.
 java.lang.Object getInfo(java.lang.String key)
          Does nothing, returns null;
 java.lang.Object getInfo(java.lang.String key, Service aService)
          Does nothing returns null
 java.lang.String getName()
          Does nothing returns an empty string.
 Parent getParent()
          Does nothing returns null
 java.util.Vector getParents()
          Does nothing returns null
 java.lang.Object getSessionId(Service aService)
          Returns a unique sessionId for the session under which the specified Service is running.
 void processParameters(Child aChildProcess)
          Does nothing
 void processResults(Child aChildProcess)
          Does nothing
 void start()
           
 void terminate()
          Does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.cle.process.ServiceController
getDefaultControllerResultType
 

Field Detail

DEBUG

protected boolean DEBUG

sessionId

protected java.lang.Object sessionId
Constructor Detail

ConsoleController

public ConsoleController()
Method Detail

getConcreteService

public abstract Service getConcreteService()
Description copied from interface: ServiceController
Returns an instance of the Service which is supported by the implementing Controller subclass.
Specified by:
getConcreteService in interface ServiceController
Following copied from interface: oracle.cle.process.ServiceController
Returns:
Service an instance of a concrete Service

start

public void start()
           throws CLEException

getSessionId

public java.lang.Object getSessionId(Service aService)
Returns a unique sessionId for the session under which the specified Service is running. This method will always return the same Object for a given session.
Specified by:
getSessionId in interface ServiceController

getInfo

public java.lang.Object getInfo(java.lang.String key,
                                Service aService)
Does nothing returns null
Specified by:
getInfo in interface ServiceController

getInfo

public java.lang.Object getInfo(java.lang.String key)
Does nothing, returns null;
Specified by:
getInfo in interface Parent
Following copied from interface: oracle.cle.process.Parent
Parameters:
key - the name of the value
Returns:
Object the infoobject.

buildTransitionTable

public void buildTransitionTable(TransitionTable aTable)
Does nothing
Specified by:
buildTransitionTable in interface Parent

getName

public java.lang.String getName()
Does nothing returns an empty string.
Specified by:
getName in interface Parent

getParent

public Parent getParent()
Does nothing returns null

getParents

public java.util.Vector getParents()
Does nothing returns null
Specified by:
getParents in interface Parent

getChildren

public java.util.Vector getChildren()
TO BE IMPLEMENTED. Returns a empty Vector Required by Parent as of 8/28/2000 (Luis Amat)
Specified by:
getChildren in interface Parent

processParameters

public void processParameters(Child aChildProcess)
Does nothing
Specified by:
processParameters in interface Parent
Following copied from interface: oracle.cle.process.Parent
Parameters:
Child - child on which the processing is made

processResults

public void processResults(Child aChildProcess)
Does nothing
Specified by:
processResults in interface Parent
Following copied from interface: oracle.cle.process.Parent
Parameters:
Child - child on which the processecing is made

terminate

public void terminate()
Does nothing
Specified by:
terminate in interface ServiceController


Copyright © 2003 ORACLE Corp. All Rights Reserved.