|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.catalog.arcims.SocketToken
public class SocketToken
Represents a token for socket based communication with an ArcIMS metadata server.
Constructor Summary | |
---|---|
protected |
SocketToken(SocketQueue parent,
String host,
int port,
int id,
long orphanSeconds)
Constructs a token. |
Method Summary | |
---|---|
protected void |
checkOut()
Checks out the token. |
String |
getHost()
Gets host name of Socket |
SocketQueue |
getParent()
Gets parent refecnce of Socket |
int |
getPort()
Gets the port number of Socket |
protected boolean |
isInUse()
Method to check if the token is in use |
protected boolean |
isOrphaned()
Method to check if the token is orphaned. |
void |
onSocketConnectionRefused(Exception e,
String command)
Call back method on socket connection refused |
void |
onSocketIOException(Exception e)
Call back method on socket connection refused |
void |
release()
Releases the token. |
String |
toString()
Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SocketToken(SocketQueue parent, String host, int port, int id, long orphanSeconds)
parent
- the parent reference to the socket tokenhost
- the host nameport
- the portid
- the unique identifierorphanSeconds
- the number of seconds at which a a token in use
will be considered orphanedMethod Detail |
---|
public String getHost()
public int getPort()
public SocketQueue getParent()
protected boolean isOrphaned()
protected boolean isInUse()
protected void checkOut()
public void release()
public String toString()
toString
in class Object
public void onSocketConnectionRefused(Exception e, String command)
e
- the exception objectpublic void onSocketIOException(Exception e)
e
- the exception object
|
ArcGIS Server Geoportal extension 10
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |