com.toremote.gateway.connection
Class AbstractSymLinkList
java.lang.Object
com.toremote.gateway.connection.AbstractSymLinkList
public abstract class AbstractSymLinkList
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATE_FORMAT
protected static final java.lang.String DATE_FORMAT
- See Also:
- Constant Field Values
symlinks
protected java.util.List<SymLink> symlinks
AbstractSymLinkList
public AbstractSymLinkList()
persistent
public abstract boolean persistent()
throws java.io.IOException
- save changes to disk
- Returns:
-
- Throws:
java.io.IOException
cleanExpiredRefs
protected void cleanExpiredRefs()
getSymLink
public SymLink getSymLink(java.lang.String id)
- Parameters:
id
-
- Returns:
- symlink
toJsonTable
public java.lang.String toJsonTable()
add
public boolean add(SymLink link)
throws java.io.IOException
- add symlink, call persistent to save
- Parameters:
link
-
- Returns:
- true if succeeded
- Throws:
java.io.IOException
update
public boolean update(SymLink link)
throws java.io.IOException
- update symlink, call persistent to save
- Parameters:
link
-
- Returns:
- true if succeeded
- Throws:
java.io.IOException
delete
public boolean delete(java.lang.String id)
throws java.io.IOException
- delete symlink, call persistent to save
- Parameters:
id
-
- Returns:
- true if succeeded
- Throws:
java.io.IOException