public abstract class AbstractRmiDataSink extends AbstractRmiCaster implements RmiDataSink, Initializable
#acceptsData and
#metaData return true, #setData calls
#clearData and #addData, thus only those two methods
have to be implemented.PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static boolean |
DEFBIND
DEfault enables auto-binding.
|
static String |
KEY_BIND
The key in the Map referring to auto-binding on init.
|
ALTERNATEHOST, ALTERNATEPORT, KEY_BINDNAME, KEY_EXPORTPORT, KEY_REGISTRYHOST, KEY_REGISTRYPORTKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRmiDataSink(Map<String,String> prop)
Constructs a new data sink.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init()
On init, we also bind to the registry, if requested
with
KEY_BIND. |
boolean |
rmiAcceptsData(String any)
Returns true.
|
boolean |
rmiAddData(List<VectorG> data)
For small data sets this method suffices to deviate to the
#addData(Map) method. |
boolean |
rmiMetaData(Map<String,? extends Serializable> m)
Returns true.
|
boolean |
rmiSetData(List<VectorG> data)
Sets the data by calling clear and add with the vector list.
|
boolean |
rmiSetData(Map<Object,VectorG> d)
Sets the data by calling clear and then adding the data map.
|
bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, bindToRegistry, casterExit, casterExit, exit, getBindName, getBindName, isValid, unbindFromRegistry, unbindFromRegistrycontainsRemoteProperty, getRemoteProperties, getRemoteProperty, setRemotePropertyclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrmiAddData, rmiClearDatadefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static final String KEY_BIND
private static final boolean DEFBIND
protected AbstractRmiDataSink(Map<String,String> prop) throws RemoteException
RemoteExceptionpublic void init()
KEY_BIND.init in interface Initializablepublic boolean rmiAcceptsData(String any) throws RemoteException
rmiAcceptsData in interface RmiDataSinkRemoteExceptionpublic boolean rmiMetaData(Map<String,? extends Serializable> m) throws RemoteException
rmiMetaData in interface RmiDataSinkRemoteExceptionpublic boolean rmiSetData(List<VectorG> data) throws RemoteException
rmiSetData in interface RmiDataSinkRemoteExceptionpublic boolean rmiAddData(List<VectorG> data) throws RemoteException
#addData(Map) method. On huge data set, you may override this
to increase performance.rmiAddData in interface RmiDataSinkRemoteExceptionpublic boolean rmiSetData(Map<Object,VectorG> d) throws RemoteException
rmiSetData in interface RmiDataSinkRemoteException