|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.aims.mtier.model.admin.SdeServer
public class SdeServer
Implements a bean for registering an ArcSDE service.
Constructor Summary | |
---|---|
SdeServer()
|
Method Summary | |
---|---|
String |
compressSde(ConnectionProxy connection)
Compresses - Removes all states that are not referenced by a version and flushes all records in delta tables back to base data if their stateid preceeds the stateid of any version. |
String |
getConnectionsNumber()
Returns the count of connections to this ArcSDE server. |
String |
getDescription()
Retrieves the previously set ArcSDE service description. |
String |
getInstanceName()
Returns the name of this ArcSDE instance. |
String |
getName()
Returns the name string of this ArcSDE server. |
String |
getPassword()
Returns the password string associated with this ArcSDE server. |
String |
getPort()
Returns an ArcSDE server port value. |
String |
getRelease()
Returns a string containing the ArcSDE release number. |
String |
getSdeAdminDatabase()
Returns the name string of the Admin database. |
String |
getStatus()
Returns the status of the current ArcSDE Server. |
String |
pauseService(ConnectionProxy connection)
This method pauses a service and prevents it from setting up new connections. |
String |
resumeService(ConnectionProxy connection)
Resumes a paused service. |
SdeStatus |
sdeServerStatus(ConnectionProxy connection,
SdeServer service)
Returns the status properties of a current ArcSDE service. |
void |
setConnectionsNumber(String numcons)
Sets the given value as the number of connections. |
void |
setDescription(String description)
Sets an user defined description of an ArcSDE Service. |
void |
setInstanceName(String instancename)
Sets the name of an instance with given string. |
void |
setName(String name)
Sets the name of the ArcSDE server with given string. |
void |
setPassword(String password)
Sets the password for this ArcSDE server with given string. |
void |
setPort(String port)
Sets an ArcSDE server port with given string. |
void |
setRelease(String release)
Sets the ArcSDE release number with given string. |
void |
setSdeAdminDatabase(String sdeAdminDatabase)
Sets the database with given name string as an Admin database. |
void |
setStatus(String status)
Sets the status of the current ArcSDE Server with given string. |
String |
shutdownService(ConnectionProxy connection)
Shuts down a running ArcSDE service. |
String |
startService(ConnectionProxy connection)
Starts an ArcSDE service. |
String |
terminateSdeConnection(ConnectionProxy connection,
String pid)
Terminates an ArcSDE Server connection using the given pid . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SdeServer()
Method Detail |
---|
public void setName(String name)
name
- the name string of the ArcSDE serverpublic String getName()
public void setPort(String port)
port
- the ArcSDE server port numberpublic String getPort()
public void setPassword(String password)
public String getPassword()
public String getStatus()
public void setStatus(String status)
status
- the ArcSDE Server status - RUNNING, SHUTDOWN, PAUSEDpublic void setInstanceName(String instancename)
This example entry, esri_sde 5151/tcp
, can be
found in the file:
$SDEHOME/etc/services.sde
, on UNIX and,
%SDEHOME\etc/services.sde
, on Windows.
public String getInstanceName()
public void setDescription(String description)
description
- the string that describes the ArcSDE service.public String getDescription()
public void setSdeAdminDatabase(String sdeAdminDatabase)
public String getSdeAdminDatabase()
public void setRelease(String release)
public String getRelease()
public void setConnectionsNumber(String numcons)
public String getConnectionsNumber()
public SdeStatus sdeServerStatus(ConnectionProxy connection, SdeServer service) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
public String startService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
jni sdejavautil lib
. It must be
present in $SDEHOME/bin
or %sdehome%\bin
.
Example:
//create the SdeServer bean and assign its properties
SdeServer sdeserver=new SdeServer();
sdeserver.setName("Zaphod");
sdeserver.setPort("5151");
sdeserver.setInstanceName("esri_sde");
sdeserver.setDescription("standby server for assessor");
//add to app server catalog
sdeserver.addSdeServer(connectionproxy)
//get status and start if necessary
SdeStatus serverStatus=server.getSdeStatus(connectionproxy,this);
if (serverStatus.getStatus().equalsIgnoreCase("SHUTDOWN")) {
server.startService(connectionproxy,"sde.password"); }
connection
- the ConnectionProxy object
ConnectionParameterException,
- if the parameters used to
initialize a MetadataConnectionProxy
contain errors
AuthenticationException,
- if the ConnectionProxy
cannot
validate the user and/or the password supplied
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- if an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- if an ERROR or WARNING response is received.
SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
public String shutdownService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
connection
- the ConnectionProxy object
ConnectionParameterException,
- if the parameters used to
initialize a MetadataConnectionProxy
contain errors
AuthenticationException,
- if the ConnectionProxy
cannot
validate the user and/or the password supplied
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- if an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- if an ERROR or WARNING response is received.
SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
public String pauseService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
connection
- the ConnectionProxy object
ConnectionParameterException,
- if the parameters used to
initialize a MetadataConnectionProxy
contain errors
AuthenticationException,
- if the ConnectionProxy
cannot
validate the user and/or the password supplied
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- if an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- if an ERROR or WARNING response is received.
SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
public String resumeService(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
connection
- the ConnectionProxy object
ConnectionParameterException,
- if the parameters used to
initialize a MetadataConnectionProxy
contain errors
AuthenticationException,
- if the ConnectionProxy
cannot
validate the user and/or the password supplied
UnableToPingEsrimapException,
- when trying to construct a
BaseEsrimap and the code is unable to ping the ESRIMAP.
AXLAttributeException,
- if an error occurs during reading
or writing an AXL attribute.
ErrorAndWarningException,
- if an ERROR or WARNING response is received.
SAXException
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
public String compressSde(ConnectionProxy connection) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
stateid
preceeds the stateid
of any version.
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
public String terminateSdeConnection(ConnectionProxy connection, String pid) throws ConnectionParameterException, AuthenticationException, com.esri.aims.mtier.io.http.UnableToPingEsrimapException, com.esri.aims.mtier.model.axl.AXLAttributeException, com.esri.aims.mtier.model.axl.ErrorAndWarningException, SAXException
pid
.
If no pid
is specified, all SDE connections will be terminated.
To get an SDE pid
, use the SdeConnections
class:
//get all connections
SdeConnections cnns = new SdeConnections();
cnns.getSdeConnections(connectionproxy, sdeserver);
SdeConnection cnn = cnns.getSdeConnection(1);
sdeserver.terminateSdeConnection(connection,cnn.getPid());
connection
- the ConnectionProxy objectpid
- the SDE identifier
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |