|
EAC Toolkit 3.2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.soleng.eac.toolkit.base.EacElement com.endeca.soleng.eac.toolkit.base.Synchronizable
public abstract class Synchronizable
Object from which all synchronized EAC objects extend. This class contains logic associated with accessing the EAC's synchronization service and implements methods for obtaining and releasing locks/flags.
Field Summary |
---|
Fields inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
---|
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir |
Constructor Summary | |
---|---|
Synchronizable()
|
Method Summary | |
---|---|
boolean |
isFlagSet(java.lang.String flagToTest)
Test whether the specified flag is set in the EAC. |
java.util.List<java.lang.String> |
listFlags()
Retrieves a list of all flags set in the EAC for this application. |
void |
removeFlag(java.lang.String flag)
Removes a flag in the EAC. |
boolean |
setFlag(java.lang.String flag)
Sets a flag in the EAC. |
boolean |
waitForFlagSet(java.lang.String flagToTest,
long maxWaitSeconds)
Polls, waiting for the specified flag to be set. |
Methods inherited from class com.endeca.soleng.eac.toolkit.base.EacElement |
---|
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Synchronizable()
Method Detail |
---|
public boolean isFlagSet(java.lang.String flagToTest)
flagToTest
- Name of the flag to test.
public java.util.List<java.lang.String> listFlags()
public boolean waitForFlagSet(java.lang.String flagToTest, long maxWaitSeconds)
flagToTest
- Name of the flag to test.maxWaitSeconds
- Maximum number of seconds to test for the flag.
public boolean setFlag(java.lang.String flag) throws EacCommunicationException, EacSynchronizationException
flag
- Name of flag to set.
EacCommunicationException
- If a communication error occurs while
retrieving the synchronization port.
EacSynchronizationException
- If an error occurs while setting
the flag.public void removeFlag(java.lang.String flag) throws EacCommunicationException
flag
- Name of flag to remove.
EacCommunicationException
- If a communication error occurs while
retrieving the synchronization port.
|
EAC Toolkit 3.2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@VERSION PRODUCT: EAC Toolkit (eacToolkit) VERSION: 3.2.1 BUILD: NONE ARCH_OS: n/a DATE: 2011-11-10T16:21:05-0500