|
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.SocketFarm
public class SocketFarm
Maintains a collection of socket queues for ArcIMS metadata server communication.
| Constructor Summary | |
|---|---|
protected |
SocketFarm()
Default constructor. |
| Method Summary | |
|---|---|
void |
addQueue(String host,
int port,
int tokenSize,
long waitSeconds,
long sleepMillis,
long orphanSeconds,
String windowsServiceName)
Adds a queue of tokens to the collection. |
boolean |
getHasQueues()
Determine if the farm has queues. |
SocketToken |
getToken()
Gets the next available free token. |
void |
lock()
Locks the configured queue collection. |
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 SocketFarm()
| Method Detail |
|---|
public boolean getHasQueues()
public void addQueue(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 token in use
will be considered orphanedwindowsServiceName - windows service name for running Headless Nik
public SocketToken getToken()
throws SocketWaitException,
InterruptedException
SocketWaitException - if too long was spent waiting for a token
InterruptedException - if the thread was interrupted while in sleep modepublic void lock()
public String toString()
toString in class Object
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||