|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.cassini.CDRS.servers.CDRSServerManager
public class CDRSServerManager
Purpose:For starting and shutting down of servers.
<b> Copyright 2002, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge.2002. CASSINI Downlink and Reconciliation Subsystem </b> ============================================================================ <b>Modification History :</b> -------------------- <b>Date Who What</b> ---------------------------------------------------------------------------- 02/16/2002 Raj Initial Release 04/15/2002 Raj Added support for persistent group id usage. 04/17/2002 Raj Make last parameter in ActivationDesc to true (for automatic start of the group if the only object in the group crashes). NEED TO CHANGE IT to false when the bug is fixed in JDK. 05/06/2002 Raj Added support for startup/shutdown of sub-control and shutdown for server. 09/18/2002 Raj Modified call to checkAccess as per changes to CDRSAccessUtils. 03/11/2003 Raj Fix for AR-108963. 03/11/2003 Raj Fix for AR-108961. Also changed to use env variable LOGNAME and not USER. 04/10/2003 Raj Changed the wait time when starting RMID to 10 seconds from 3 seconds. ============================================================================
Constructor Summary | |
---|---|
CDRSServerManager(Properties startUpData)
The constructor |
Method Summary | |
---|---|
void |
cleanup()
Clean up. |
void |
finalize()
|
boolean |
shutDownSC(short serverId)
For sub control shut down. |
boolean |
shutDownServer(short serverId)
For server shut down. |
boolean |
shutDownServer(String serverName)
For server shut down. |
CDRSServerBase |
startCDRSServer(Properties startUpData,
Connection dbConn)
For starting a CDRSServer other then the subcontrol |
CDRSServerBase |
startCDRSServer(short serverId)
For starting the server by id. |
CDRSServerBase |
startCDRSServer(String serverName)
For starting the server by name . |
CDRSServerBase |
startCDRSSubControl(Properties startUpData,
Connection dbConn)
For starting a given subcontrol. |
void |
startCDRSSubControls()
Starts all of the subcontrols that can be started on this host and are not currently running. |
void |
startRMID()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDRSServerManager(Properties startUpData) throws Exception
Exception
Method Detail |
---|
public CDRSServerBase startCDRSServer(String serverName) throws Exception
Exception
public CDRSServerBase startCDRSServer(short serverId) throws Exception
Exception
public CDRSServerBase startCDRSServer(Properties startUpData, Connection dbConn) throws Exception
Exception
public void startCDRSSubControls() throws Exception
Exception
public CDRSServerBase startCDRSSubControl(Properties startUpData, Connection dbConn) throws Exception
startUpData
- This properties specifies at the least the following:
dbusername, dbname, dbservername,id of the server to be started
and name of the server to be registered in the database.dbConn
- A live connection to the database.
Exception
public boolean shutDownServer(String serverName) throws Exception
Exception
public boolean shutDownServer(short serverId) throws Exception
Exception
public boolean shutDownSC(short serverId) throws Exception
Exception
public void startRMID() throws Exception
Exception
public void cleanup() throws Exception
Exception
public void finalize() throws Throwable
finalize
in class Object
Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |