|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.trackinganalyst.InternetConnection
public class InternetConnection
Manages an Internet server connection.
The Internet connector is the primary connection object between a Client, usually the AMSWorkspace component of the Tracking Analyst extension to ArcGIS, and the Tracking Server. This object maintains the information needed to communicate with the Tracking Server using the Tracking Message Server Gateway. This connector uses a proprietary gateway service, part of the Tracking Server product, to exchange messages with the Tracking Server.
The internet Connector uses the connection properties to manage all user modifiable features of the connector. Below summarizes the properties, their defaults and descriptions. The Internet Connector will default any property that is not present when setting the connection properties.
Property Name |
Required |
Default Value |
Description |
|
SERVERNAME |
O |
localhost |
Name of Server or IP |
|
AMS_CONNECTION_NAME |
O |
Tracking Connector |
The Name or label of the connection. |
|
CONNECTOR_PORT |
O |
5506 |
The Client port of the tracking server |
|
TMS_CMD_TIMEOUT |
O |
60 |
Command Response Timeout in seconds |
|
TMS_CONNECT_RETRY |
O |
60 |
The time in seconds that the connector waits before it automatically retries a dropped connection. |
| Constructor Summary | |
|---|---|
InternetConnection()
Constructs a InternetConnection using ArcGIS Engine. |
|
InternetConnection(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. InternetConnection theInternetConnection = (InternetConnection) obj; |
|
| Method Summary | |
|---|---|
void |
add_IPlugInEventsListener(_IPlugInEvents theListener)
add_IPlugInEventsListener. |
void |
connect(String bstrUserName,
String bstrPassword)
Creates Internet server connection. |
void |
disableDataDefinition(String bstrDataDefinitionID)
Disables dataset definition for the Internet server connection. |
void |
disconnect()
Disconnects Internet server connection. |
void |
enableDataDefinition(String bstrDataDefinitionID)
Enables data definition for the Internet server connection. |
boolean |
equals(Object o)
Compare this object with another |
String |
getActivityLog()
Indicates error code value for the last Internet server connection. |
static String |
getClsid()
getClsid. |
String |
getConnectionName()
Name of Internet server connection. |
IPropSet |
getConnectionProperties()
Properties for the server connection. |
String |
getConnectionString()
Indicates connection string value. |
IDatasetDef |
getDataSetDefinition(String bstrName)
Gets value for dataset definition for Internet server connection. |
Object |
getDataSetDefinitionList()
Lists values in the dataset definition. |
Object |
getEnabledDataDefinitions()
Indicates whether data definitions are enabled for the Internet server connection. |
int |
getEventReadyHandle()
The handle to the event that is signaled when a message is ready to be received. |
int |
getLastConnectionErrorCode()
Indicates error code value for the last Internet server connection. |
String |
getLastConnectionErrorMessage()
Indicates error code value for the last Internet server connection. |
IMessage |
getMessage(int nTimeOutInMilliseconds)
Gets message via the Internet server connection. |
int |
getMessageCount()
The count of messages ready to retrieve. |
IPlugin |
getPlugIn()
Data link plugin information for the server connection. |
int |
getPortNumber()
Port number used for the Internet server connection. |
Object |
getServerActions(boolean bForEditing)
Actions used on data in the server connection. |
String |
getServerName()
Indicates server name in the Internet server connection. |
String |
getSubletPath()
Value of the sublet path for the Internet server connection. |
String |
getTopicName(String bstrServiceName)
Indicates name for the topic in the Internet server connection. |
ITrackingServiceDef |
getTrackingService(String bstrName)
Gets tracking service information for the Internet server connection. |
Object |
getTrackingServicesList()
Lists tracking services within the Internet server connection. |
String |
getUserName()
Indicates user's name using the Internet server connection. |
int |
hashCode()
the hashcode for this object |
boolean |
isConnected()
Indicates whether the Internet server connection is active. |
boolean |
isEnableDataFiltering()
Indicates whether data filtering is enabled for the Internet server connection. |
boolean |
isHasObjectData(String bstrTrackingService)
Indicates whether a tracking service has complex data to request. |
IMessage |
nextMessage()
Retrieves a message from the server connection. |
void |
remove_IPlugInEventsListener(_IPlugInEvents theListener)
remove_IPlugInEventsListener. |
void |
requestObjectData(String bstrTrackingService)
Requests the Object or static data associated with a Complex Tracking Service. |
void |
returnDataSetDefinition(IDatasetDef piDataSetDef)
Returns value for dataset definition in Internet server connection. |
void |
returnServerActions(boolean bSave,
Object piActionCollection)
Actions used on data in the server connection. |
void |
returnTrackingService(ITrackingServiceDef piTrackingServiceDef)
Returns tracking service information for the Internet server connection. |
IResponseMessage |
sendCommand(ICommandMessage piCmdMsg,
int nTimeOut)
Sends command information via the Internet server connection. |
void |
sendMessage(IMessage piMessage)
Sends message via the Internet server connection. |
void |
setConnectionName(String pbstrConnectionName)
Name of Internet server connection. |
void |
setConnectionProperties(IPropSet ppiProperties)
Properties for the server connection. |
void |
setConnectionString(String pbstrConnectionString)
Indicates connection string value. |
void |
setEnableDataFiltering(boolean pbvVal)
Indicates whether data filtering is enabled for the Internet server connection. |
void |
setPortNumber(int plPortNumber)
Port number used for the Internet server connection. |
void |
setServerName(String pVal)
Indicates server name in the Internet server connection. |
void |
setSubletPath(String pbstrSubletPath)
Value of the sublet path for the Internet server connection. |
void |
setTopicName(String bstrServiceName,
String pbstrTopicName)
Indicates name for the topic in the Internet server connection. |
| 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 InternetConnection()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public InternetConnection(Object obj)
throws IOException
InternetConnection theInternetConnection = (InternetConnection) obj;
obj to InternetConnection.
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 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.
public boolean isConnected()
throws IOException,
AutomationException
isConnected in interface IInternetServerConnectionisConnected 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 IInternetServerConnectiongetServerName 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 IInternetServerConnectionsetServerName 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 IInternetServerConnectiongetUserName 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 IInternetServerConnectionisEnableDataFiltering 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 IInternetServerConnectionsetEnableDataFiltering 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 IInternetServerConnectiongetDataSetDefinitionList 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 IInternetServerConnectiongetEnabledDataDefinitions 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 IInternetServerConnectiongetLastConnectionErrorCode in interface IServerConnectiongetLastConnectionErrorCode in interface ITxDiagnosticsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getLastConnectionErrorMessage()
throws IOException,
AutomationException
getLastConnectionErrorMessage in interface IInternetServerConnectiongetLastConnectionErrorMessage in interface IServerConnectiongetLastConnectionErrorMessage in interface ITxDiagnosticsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getConnectionName()
throws IOException,
AutomationException
getConnectionName in interface IInternetServerConnectiongetConnectionName 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 IInternetServerConnectionsetConnectionName 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 IInternetServerConnectiongetConnectionString 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 IInternetServerConnectionsetConnectionString 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 IInternetServerConnectionconnect 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 IInternetServerConnectiondisconnect 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 IInternetServerConnectionsendMessage 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 IInternetServerConnectiongetMessage 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 IInternetServerConnectionenableDataDefinition 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 IInternetServerConnectiondisableDataDefinition 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 IInternetServerConnectionreturnDataSetDefinition 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 IInternetServerConnectiongetDataSetDefinition 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 IInternetServerConnectionsendCommand 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 Object getTrackingServicesList()
throws IOException,
AutomationException
getTrackingServicesList in interface IInternetServerConnectiongetTrackingServicesList 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 IInternetServerConnectiongetTrackingService 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 IInternetServerConnectionreturnTrackingService 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 String getSubletPath()
throws IOException,
AutomationException
getSubletPath in interface IInternetServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSubletPath(String pbstrSubletPath)
throws IOException,
AutomationException
setSubletPath in interface IInternetServerConnectionpbstrSubletPath - The pbstrSubletPath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTopicName(String bstrServiceName)
throws IOException,
AutomationException
getTopicName in interface IInternetServerConnectionbstrServiceName - The bstrServiceName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTopicName(String bstrServiceName,
String pbstrTopicName)
throws IOException,
AutomationException
setTopicName in interface IInternetServerConnectionbstrServiceName - The bstrServiceName (in)pbstrTopicName - The pbstrTopicName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getPortNumber()
throws IOException,
AutomationException
getPortNumber in interface IInternetServerConnectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setPortNumber(int plPortNumber)
throws IOException,
AutomationException
setPortNumber in interface IInternetServerConnectionplPortNumber - The plPortNumber (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 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 boolean isHasObjectData(String bstrTrackingService)
throws IOException,
AutomationException
isHasObjectData in interface ITrackingServiceComplexDatabstrTrackingService - The bstrTrackingService (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void requestObjectData(String bstrTrackingService)
throws IOException,
AutomationException
requestObjectData in interface ITrackingServiceComplexDatabstrTrackingService - The bstrTrackingService (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getActivityLog()
throws IOException,
AutomationException
getActivityLog in interface ITxDiagnosticsIOException - 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 | ||||||||