|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.AfLockMgr
public class AfLockMgr
The application lock manager.
Constructor Summary | |
---|---|
AfLockMgr()
Constructs a AfLockMgr using ArcGIS Engine. |
|
AfLockMgr(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. AfLockMgr theAfLockMgr = (AfLockMgr) obj; |
Method Summary | |
---|---|
boolean |
checkLock(String fileName,
int lockMgrType)
Indicates if the specified lock type can be sucessfully set on the filename. |
boolean |
clearLock(String fileName,
int lockMgrType)
Clears the specified lock type from the filename. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
hashCode()
the hashcode for this object |
void |
isAlive()
Indicates if a local lock manager process is active. |
boolean |
isGlobalAlive()
Indicates if a global lock manager process is active. |
boolean |
register()
Registers object with the lock manager and starts the lock manager process if it is not running. |
boolean |
setLock(String fileName,
int lockMgrType)
Places the selected lock type on the given filename. |
boolean |
unregister()
Unregisters object from the lock manager and removes all locks set by the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public AfLockMgr() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic AfLockMgr(Object obj) throws IOException
AfLockMgr theAfLockMgr = (AfLockMgr) obj;
obj
to AfLockMgr
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void isAlive() throws IOException, AutomationException
isAlive
in interface IAfLockMgr
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isGlobalAlive() throws IOException, AutomationException
isGlobalAlive
in interface IAfLockMgr
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean register() throws IOException, AutomationException
register
in interface IAfLockMgr
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean unregister() throws IOException, AutomationException
unregister
in interface IAfLockMgr
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean setLock(String fileName, int lockMgrType) throws IOException, AutomationException
setLock
in interface IAfLockMgr
fileName
- The fileName (in)lockMgrType
- A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean checkLock(String fileName, int lockMgrType) throws IOException, AutomationException
checkLock
in interface IAfLockMgr
fileName
- The fileName (in)lockMgrType
- A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean clearLock(String fileName, int lockMgrType) throws IOException, AutomationException
clearLock
in interface IAfLockMgr
fileName
- The fileName (in)lockMgrType
- A com.esri.arcgis.system.esriLockMgrType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |