|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.trackinganalyst.ServerConnection
public class ServerConnection
Manages connection to Tracking Server.
The Server Connection object serves as a direct interface or connection to the Tracking Server. This connection object uses DCOM to communicate with the Tracking Server. The Tracking Server Manager and Simulator applications use this object as thier communications interface to the Tracking Server system.
The Server Connector uses the connection properties to manage all user modifiable features of the connector. Below summarizes the properties, their defaults and descriptions.
Property Name |
Required |
Default Value |
Description |
|
SERVERNAME |
Y |
localhost |
Name of Server or IP |
|
AMS_CONNECTION_NAME |
Y |
Tracking Connector |
The Name or label of the connection. |
| Constructor Summary | |
|---|---|
ServerConnection()
Constructs a ServerConnection using ArcGIS Engine. |
|
ServerConnection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ServerConnection theServerConnection = (ServerConnection) obj; |
|
| Method Summary | |
|---|---|
void |
add_IPlugInEventsListener(_IPlugInEvents theListener)
add_IPlugInEventsListener. |
void |
connect(String bstrUserName,
String bstrPassword)
Creates connection to the server. |
void |
disableDataDefinition(String bstrDataDefinitionID)
Disables data definition for the server connection. |
void |
disconnect()
Disconnects connection from the server. |
void |
enableDataDefinition(String bstrDataDefinitionID)
Enables data definition for the server connection. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
String |
getConnectionName()
Indicates the name of the connection to the server. |
IPropSet |
getConnectionProperties()
Properties for the server connection. |
String |
getConnectionString()
Connection string value for the server connection. |
IDatasetDef |
getDataSetDefinition(String bstrName)
Gets dataset definition information for the server connection. |
Object |
getDataSetDefinitionList()
Lists the dataset definition information for the connection. |
Object |
getEnabledDataDefinitions()
Indicates which data definitions are enabled. |
int |
getEventReadyHandle()
The handle to the event that is signaled when a message is ready to be received. |
int |
getLastConnectionErrorCode()
Indicates the error code for the last connection to the server. |
String |
getLastConnectionErrorMessage()
Indicates the error message for the last connection to the server. |
IMessage |
getMessage(int nTimeOutInMilliseconds)
Retrieves a message from the server connection. |
int |
getMessageCount()
The count of messages ready to retrieve. |
IPlugin |
getPlugIn()
Data link plugin information for the server connection. |
Object |
getServerActions(boolean bForEditing)
Actions used on data in the server connection. |
String |
getServerName()
Name for the server. |
ITrackingServiceDef |
getTrackingService(String bstrName)
Gets tracking service for the server connection. |
Object |
getTrackingServicesList()
List of tracking services. |
String |
getUserName()
User's login name. |
int |
hashCode()
the hashcode for this object |
boolean |
isConnected()
Indicates whether the server connection is connected. |
boolean |
isEnableDataFiltering()
Indicates whether data filtering is enabled for the connection. |
IMessage |
nextMessage()
Retrieves a message from the server connection. |
void |
remove_IPlugInEventsListener(_IPlugInEvents theListener)
remove_IPlugInEventsListener. |
void |
returnDataSetDefinition(IDatasetDef piDataSetDef)
Returns dataset definition information for the server connection. |
void |
returnServerActions(boolean bSave,
Object piActionCollection)
Actions used on data in the server connection. |
void |
returnTrackingService(ITrackingServiceDef piTrackingServiceDef)
Returns tracking service for the server connection. |
IResponseMessage |
sendCommand(ICommandMessage piCmdMsg,
int nTimeOut)
Sends a command to the server connection. |
void |
sendMessage(IMessage piMessage)
Sends a message through the server connection path. |
void |
setConnectionName(String pbstrConnectionName)
Indicates the name of the connection to the server. |
void |
setConnectionProperties(IPropSet ppiProperties)
Properties for the server connection. |
void |
setConnectionString(String pbstrConnectionString)
Connection string value for the server connection. |
void |
setEnableDataFiltering(boolean pbvVal)
Indicates whether data filtering is enabled for the connection. |
void |
setServerName(String pVal)
Name for the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public ServerConnection()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public ServerConnection(Object obj)
throws IOException
ServerConnection theServerConnection = (ServerConnection) obj;
obj to ServerConnection.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void add_IPlugInEventsListener(_IPlugInEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.trackinganalyst._IPlugInEvents interface.
IOException - If there are communications problems.
public void remove_IPlugInEventsListener(_IPlugInEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.trackinganalyst._IPlugInEvents interface.
IOException - If there are communications problems.
public boolean isConnected()
throws IOException,
AutomationException
isConnected in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getServerName()
throws IOException,
AutomationException
getServerName in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setServerName(String pVal)
throws IOException,
AutomationException
setServerName in interface IServerConnectionpVal - The pVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getUserName()
throws IOException,
AutomationException
getUserName in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isEnableDataFiltering()
throws IOException,
AutomationException
isEnableDataFiltering in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setEnableDataFiltering(boolean pbvVal)
throws IOException,
AutomationException
setEnableDataFiltering in interface IServerConnectionpbvVal - The pbvVal (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getDataSetDefinitionList()
throws IOException,
AutomationException
getDataSetDefinitionList in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getEnabledDataDefinitions()
throws IOException,
AutomationException
getEnabledDataDefinitions in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLastConnectionErrorCode()
throws IOException,
AutomationException
getLastConnectionErrorCode in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getLastConnectionErrorMessage()
throws IOException,
AutomationException
getLastConnectionErrorMessage in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getConnectionName()
throws IOException,
AutomationException
getConnectionName in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionName(String pbstrConnectionName)
throws IOException,
AutomationException
setConnectionName in interface IServerConnectionpbstrConnectionName - The pbstrConnectionName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getConnectionString()
throws IOException,
AutomationException
getConnectionString in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionString(String pbstrConnectionString)
throws IOException,
AutomationException
setConnectionString in interface IServerConnectionpbstrConnectionString - The pbstrConnectionString (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void connect(String bstrUserName,
String bstrPassword)
throws IOException,
AutomationException
connect in interface IServerConnectionbstrUserName - The bstrUserName (in)bstrPassword - The bstrPassword (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void disconnect()
throws IOException,
AutomationException
disconnect in interface IServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void sendMessage(IMessage piMessage)
throws IOException,
AutomationException
sendMessage in interface IServerConnectionpiMessage - A reference to a com.esri.arcgis.trackinganalyst.IMessage (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMessage getMessage(int nTimeOutInMilliseconds)
throws IOException,
AutomationException
getMessage in interface IServerConnectionnTimeOutInMilliseconds - The nTimeOutInMilliseconds (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void enableDataDefinition(String bstrDataDefinitionID)
throws IOException,
AutomationException
enableDataDefinition in interface IServerConnectionbstrDataDefinitionID - The bstrDataDefinitionID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void disableDataDefinition(String bstrDataDefinitionID)
throws IOException,
AutomationException
disableDataDefinition in interface IServerConnectionbstrDataDefinitionID - The bstrDataDefinitionID (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void returnDataSetDefinition(IDatasetDef piDataSetDef)
throws IOException,
AutomationException
returnDataSetDefinition in interface IServerConnectionpiDataSetDef - A reference to a com.esri.arcgis.trackinganalyst.IDatasetDef (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDatasetDef getDataSetDefinition(String bstrName)
throws IOException,
AutomationException
getDataSetDefinition in interface IServerConnectionbstrName - The bstrName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IResponseMessage sendCommand(ICommandMessage piCmdMsg,
int nTimeOut)
throws IOException,
AutomationException
sendCommand in interface IServerConnectionpiCmdMsg - A reference to a com.esri.arcgis.trackinganalyst.ICommandMessage (in)nTimeOut - The nTimeOut (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropSet getConnectionProperties()
throws IOException,
AutomationException
getConnectionProperties in interface IServerConnection2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setConnectionProperties(IPropSet ppiProperties)
throws IOException,
AutomationException
setConnectionProperties in interface IServerConnection2ppiProperties - A reference to a com.esri.arcgis.trackinganalyst.IPropSet (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPlugin getPlugIn()
throws IOException,
AutomationException
getPlugIn in interface IServerConnection2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getTrackingServicesList()
throws IOException,
AutomationException
getTrackingServicesList in interface IServerConnection2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITrackingServiceDef getTrackingService(String bstrName)
throws IOException,
AutomationException
getTrackingService in interface IServerConnection2bstrName - The bstrName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void returnTrackingService(ITrackingServiceDef piTrackingServiceDef)
throws IOException,
AutomationException
returnTrackingService in interface IServerConnection2piTrackingServiceDef - A reference to a com.esri.arcgis.trackinganalyst.ITrackingServiceDef (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getServerActions(boolean bForEditing)
throws IOException,
AutomationException
getServerActions in interface IServerConnection2bForEditing - The bForEditing (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void returnServerActions(boolean bSave,
Object piActionCollection)
throws IOException,
AutomationException
returnServerActions in interface IServerConnection2bSave - The bSave (in)piActionCollection - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMessageCount()
throws IOException,
AutomationException
getMessageCount in interface ITxConnectionMessagesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getEventReadyHandle()
throws IOException,
AutomationException
getEventReadyHandle in interface ITxConnectionMessagesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IMessage nextMessage()
throws IOException,
AutomationException
nextMessage in interface ITxConnectionMessagesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||