edu.sc.seis.cormorant
Class AbstractController

java.lang.Object
  extended by edu.sc.seis.cormorant.AbstractController
All Implemented Interfaces:
Controller
Direct Known Subclasses:
DBProvidingAbstractController, RedirectController

public abstract class AbstractController
extends java.lang.Object
implements Controller

Author:
crotwell Created on Dec 20, 2004

Constructor Summary
AbstractController(java.util.Properties confProps, java.lang.String serverPropName, org.omg.CORBA.ORB orb)
           
 
Method Summary
 org.omg.PortableServer.POA createPOA(org.omg.CORBA.ORB orb)
           
static org.omg.CORBA.Policy[] createPolicy(org.omg.PortableServer.POA poa)
           
 void destroy()
           
 java.lang.String getAlternateServerDNS()
           
 java.lang.String getAlternateServerName()
           
 java.util.Properties getConfigProps()
           
 java.lang.String getInterfaceName()
          Should be overridden if the interface is not one of the standard DHI server types.
 java.lang.String getPropertryPrefix()
           
abstract  org.omg.PortableServer.Servant getServant()
           
 java.lang.String getServerDNS()
           
 java.lang.String getServerName()
           
 java.lang.String getServerPropName()
           
 void start(org.omg.CORBA.ORB orb, edu.sc.seis.fissuresUtil.namingService.FissuresNamingService ns)
           
 void stop(org.omg.CORBA.ORB orb, edu.sc.seis.fissuresUtil.namingService.FissuresNamingService ns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractController

public AbstractController(java.util.Properties confProps,
                          java.lang.String serverPropName,
                          org.omg.CORBA.ORB orb)
Method Detail

start

public void start(org.omg.CORBA.ORB orb,
                  edu.sc.seis.fissuresUtil.namingService.FissuresNamingService ns)
           throws java.lang.Exception
Specified by:
start in interface Controller
Throws:
java.lang.Exception

stop

public void stop(org.omg.CORBA.ORB orb,
                 edu.sc.seis.fissuresUtil.namingService.FissuresNamingService ns)
          throws java.lang.Exception
Specified by:
stop in interface Controller
Throws:
java.lang.Exception

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface Controller
Throws:
java.lang.Exception

getInterfaceName

public java.lang.String getInterfaceName()
Should be overridden if the interface is not one of the standard DHI server types. Currently this includes EventDC, NetworkDC, PlottableDC and DataCenter.


getServant

public abstract org.omg.PortableServer.Servant getServant()

getConfigProps

public java.util.Properties getConfigProps()

getServerPropName

public java.lang.String getServerPropName()
Specified by:
getServerPropName in interface Controller

getPropertryPrefix

public java.lang.String getPropertryPrefix()

getServerDNS

public java.lang.String getServerDNS()

getServerName

public java.lang.String getServerName()

getAlternateServerDNS

public java.lang.String getAlternateServerDNS()

getAlternateServerName

public java.lang.String getAlternateServerName()

createPOA

public org.omg.PortableServer.POA createPOA(org.omg.CORBA.ORB orb)
                                     throws org.omg.CORBA.ORBPackage.InvalidName,
                                            org.omg.PortableServer.POAPackage.AdapterAlreadyExists,
                                            org.omg.PortableServer.POAPackage.InvalidPolicy
Throws:
org.omg.CORBA.ORBPackage.InvalidName
org.omg.PortableServer.POAPackage.AdapterAlreadyExists
org.omg.PortableServer.POAPackage.InvalidPolicy

createPolicy

public static org.omg.CORBA.Policy[] createPolicy(org.omg.PortableServer.POA poa)


Copyright © 2004-2007 Seismology at the University of South Carolina. All Rights Reserved.