|
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.SocketQueue
public class SocketQueue
Maintains a collection of socket tokens for ArcIMS metadata server communication.
| Constructor Summary | |
|---|---|
protected |
SocketQueue(String host,
int port,
int tokenSize,
long waitSeconds,
long sleepMillis,
long orphanSeconds,
String windowsServiceName)
Constructs the tokens associated with a queue. |
| Method Summary | |
|---|---|
protected SocketToken |
getToken(long startedMillis)
Gets the next available free token. |
protected boolean |
hasBusy()
Returns true if any socket token is in use. |
void |
onSocketConnectionRefused(int tokenId,
String msg,
Exception e)
Call back method on socket connection refused, logs the event and tries to restart windows service |
void |
onSocketIOException(int tokenId,
Exception e)
Call back method on socket IO Exception |
void |
onSocketReadException(String msg)
Call back method on socket wait exceptions |
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 SocketQueue(String host,
int port,
int tokenSize,
long waitSeconds,
long sleepMillis,
long orphanSeconds,
String windowsServiceName)
host - the host nameport - the porttokenSize - the number of tokens to createwaitSeconds - the number of seconds to wait for a tokensleepMillis - the number of milliseconds to sleep while waiting for a tokenorphanSeconds - the number of seconds at which a a token in use
will be considered orphanedwindowsServiceName - windows service name for running Headless Nik| Method Detail |
|---|
protected boolean hasBusy()
protected SocketToken getToken(long startedMillis)
throws SocketWaitException,
InterruptedException
startedMillis - the time at which the client first asked for a token
SocketWaitException - if too long was spent waiting for a token
InterruptedException - if the thread was interrupted while in sleep modepublic String toString()
toString in class Object
public void onSocketConnectionRefused(int tokenId,
String msg,
Exception e)
tokenId - the socket token identifiermsg - the error messagee - the exception object
ApplicationExceptionpublic void onSocketReadException(String msg)
public void onSocketIOException(int tokenId,
Exception e)
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||