|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectequip.data.beans.DataspaceBean
dataspace client JavaBean
| Field Summary | |
protected boolean |
activeFlag
active flag |
protected boolean |
connectedFlag
connected? |
protected DataSession |
connectedMonitorSession
connected session |
protected DataProxy |
dataspace
actual dataspace |
protected java.lang.String |
dataspaceUrl
dataspace URL |
static int |
DEFAULT_LEASE_TIME_S
default (long long) lease - 10 years :-) |
protected GUIDFactory |
guids
GUID factory |
protected java.beans.beancontext.BeanContext |
mBeanContext
bean context |
protected boolean |
retryConnect
async - default no |
| Constructor Summary | |
DataspaceBean()
no arg bean constructor |
|
DataspaceBean(DataProxy ds)
over existing ds bean constructor |
|
| Method Summary | |
void |
add(ItemData item)
add a globally visible item to the dataspace |
DataSession |
addDataspaceEventListener(Event template,
boolean localFlag,
DataspaceEventListener listener)
add an event monitor. |
DataSession |
addDataspaceEventListener(ItemData template,
boolean localFlag,
DataspaceEventListener listener)
add a item monitor. |
void |
addEvent(Event event)
emit an event directly |
void |
addLocal(ItemData item)
add a local-only item to the dataspace |
void |
addPersistent(ItemData item,
Lease lease)
add a (potentially) persistent item to the dataspace, i.e. not process bound, and normally with a Lease (although null is permitted) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
property change api |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
property change api |
void |
addVetoableChangeListener(java.lang.String vetoableName,
java.beans.VetoableChangeListener listener)
vetoable change api |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
vetoable change api |
GUID |
allocateId()
allocated a new GUID for a data item to be published |
ItemData[] |
copyCollect(ItemData template)
copy collect - local only. |
void |
copyCollect(ItemData template,
DataspaceEventListener listener)
copy collect - local only - callback form. |
void |
delete(GUID id)
delete a globally visible item from the dataspace |
void |
deleteLocal(GUID id)
delete a local-only item from the dataspace |
java.beans.beancontext.BeanContext |
getBeanContext()
bean context getter |
DataProxy |
getDataProxy()
return internal DataProxy |
java.lang.String |
getDataspaceUrl()
dataspace Url getter |
ItemData |
getItem(GUID id)
get current value for an item by id - local only. |
protected void |
init()
|
boolean |
isActive()
active getter |
boolean |
isConnected()
active getter |
void |
removeDataspaceEventListener(DataSession session)
remove a previously added event monitor |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
property change api |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
property change api |
void |
removeVetoableChangeListener(java.lang.String vetoableName,
java.beans.VetoableChangeListener listener)
vetoable change api |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
vetoable change api |
protected void |
setActive(boolean activeFlag)
internal active setter |
void |
setBeanContext(java.beans.beancontext.BeanContext beanContext)
bean setter with veto and property events |
protected void |
setConnected(boolean connectedFlag)
internal setter |
void |
setDataspaceUrl(java.lang.String dataspaceUrl)
dataspace Url setter |
void |
setDataspaceUrl(java.lang.String dataspaceUrl,
boolean useDataManager)
dataspace Url setter |
void |
setRetryConnect(boolean r)
async - call BEFORE setDataspaceUrl! |
void |
update(ItemData item)
update an item, globally visible, reliable |
void |
update(ItemData item,
boolean reliableFlag)
update an item, globally visible, optionally reliable |
void |
updateLocal(ItemData item)
update an item, local-only, reliable |
void |
updateLocal(ItemData item,
boolean reliableFlag)
update an item, local-only, optionally reliable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.beans.beancontext.BeanContext mBeanContext
protected java.lang.String dataspaceUrl
protected DataProxy dataspace
protected boolean activeFlag
protected GUIDFactory guids
protected boolean connectedFlag
protected DataSession connectedMonitorSession
protected boolean retryConnect
public static final int DEFAULT_LEASE_TIME_S
| Constructor Detail |
public DataspaceBean()
public DataspaceBean(DataProxy ds)
throws DataspaceInactiveException
| Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface java.beans.beancontext.BeanContextChildpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface java.beans.beancontext.BeanContextChildpublic void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
public void addVetoableChangeListener(java.lang.String vetoableName,
java.beans.VetoableChangeListener listener)
addVetoableChangeListener in interface java.beans.beancontext.BeanContextChildpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
public void removeVetoableChangeListener(java.lang.String vetoableName,
java.beans.VetoableChangeListener listener)
removeVetoableChangeListener in interface java.beans.beancontext.BeanContextChildpublic java.beans.beancontext.BeanContext getBeanContext()
getBeanContext in interface java.beans.beancontext.BeanContextChildpublic void setBeanContext(java.beans.beancontext.BeanContext beanContext)
setBeanContext in interface java.beans.beancontext.BeanContextChildpublic void setRetryConnect(boolean r)
public void setDataspaceUrl(java.lang.String dataspaceUrl)
throws DataspaceInactiveException
DataspaceInactiveException
public void setDataspaceUrl(java.lang.String dataspaceUrl,
boolean useDataManager)
throws DataspaceInactiveException
DataspaceInactiveException
protected void init()
throws DataspaceInactiveException
DataspaceInactiveExceptionpublic java.lang.String getDataspaceUrl()
public boolean isActive()
protected void setActive(boolean activeFlag)
public boolean isConnected()
protected void setConnected(boolean connectedFlag)
public GUID allocateId()
allocateId in interface IDataspace
public void add(ItemData item)
throws DataspaceInactiveException
add in interface IDataspaceDataspaceInactiveException
public void addPersistent(ItemData item,
Lease lease)
throws DataspaceInactiveException
addPersistent in interface IDataspaceDataspaceInactiveException
public void addLocal(ItemData item)
throws DataspaceInactiveException
addLocal in interface IDataspaceDataspaceInactiveException
public void update(ItemData item)
throws DataspaceInactiveException
update in interface IDataspaceDataspaceInactiveException
public void update(ItemData item,
boolean reliableFlag)
throws DataspaceInactiveException
update in interface IDataspaceDataspaceInactiveException
public void updateLocal(ItemData item)
throws DataspaceInactiveException
updateLocal in interface IDataspaceDataspaceInactiveException
public void updateLocal(ItemData item,
boolean reliableFlag)
throws DataspaceInactiveException
updateLocal in interface IDataspaceDataspaceInactiveException
public void delete(GUID id)
throws DataspaceInactiveException
delete in interface IDataspaceDataspaceInactiveException
public void deleteLocal(GUID id)
throws DataspaceInactiveException
deleteLocal in interface IDataspaceDataspaceInactiveException
public void addEvent(Event event)
throws DataspaceInactiveException
addEvent in interface IDataspaceDataspaceInactiveException
public ItemData getItem(GUID id)
throws DataspaceInactiveException
getItem in interface IDataspaceDataspaceInactiveException
public ItemData[] copyCollect(ItemData template)
throws DataspaceInactiveException
copyCollect in interface IDataspaceDataspaceInactiveException
public void copyCollect(ItemData template,
DataspaceEventListener listener)
throws DataspaceInactiveException
copyCollect in interface IDataspaceDataspaceInactiveException
public DataSession addDataspaceEventListener(ItemData template,
boolean localFlag,
DataspaceEventListener listener)
throws DataspaceInactiveException
addDataspaceEventListener in interface IDataspaceDataspaceInactiveException
public DataSession addDataspaceEventListener(Event template,
boolean localFlag,
DataspaceEventListener listener)
throws DataspaceInactiveException
addDataspaceEventListener in interface IDataspaceDataspaceInactiveException
public void removeDataspaceEventListener(DataSession session)
throws DataspaceInactiveException
removeDataspaceEventListener in interface IDataspaceDataspaceInactiveExceptionpublic DataProxy getDataProxy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||