public abstract class Synchronizable extends EacElement
appName, dataPrefix, eacHost, eacPort, elementId, lockManager, logDir, sslEnabled, workingDir
Constructor and Description |
---|
Synchronizable() |
Modifier and Type | Method and Description |
---|---|
boolean |
isFlagSet(String flagToTest)
Test whether the specified flag is set in the EAC.
|
List<String> |
listFlags()
Retrieves a list of all flags set in the EAC for this application.
|
void |
removeFlag(String flag)
Removes a flag in the EAC.
|
boolean |
setFlag(String flag)
Sets a flag in the EAC.
|
boolean |
waitForFlagSet(String flagToTest,
long maxWaitSeconds)
Polls, waiting for the specified flag to be set.
|
getAppName, getDataPrefix, getEacHost, getEacPort, getElementId, getLockManager, getLogDir, getWorkingDir, isSslEnabled, setAppName, setDataPrefix, setEacHost, setEacPort, setElementId, setLockManager, setLogDir, setSslEnabled, setWorkingDir
public boolean isFlagSet(String flagToTest)
flagToTest
- Name of the flag to test.public List<String> listFlags()
public boolean waitForFlagSet(String flagToTest, long maxWaitSeconds)
flagToTest
- Name of the flag to test.maxWaitSeconds
- Maximum number of seconds to test for the flag.public boolean setFlag(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(String flag) throws EacCommunicationException
flag
- Name of flag to remove.EacCommunicationException
- If a communication error occurs while
retrieving the synchronization port.Copyright © 2014, Oracle and/or its affiliates. All rights reserved.