- /**
- * getDomain - returns a handle of the domain
- *
- *
- * @param d given instance of Domain
- * @param jp_ORTEDomainProp address from C pointer
- * @return handler of the domain
- */
- public boolean destroy()
- {
- if (jORTEDomainADestroy(this.handle)) return true;
- return false;
- }
-
- /**
- * regNewDataType -
- *
- *
- * @param
- * @param
- * @param
- * @param
- * @return
- */
- public
- boolean regNewDataType(String name,
- // serial, deserial,
- long maxlength)
- {
- int b = jORTETypeRegisterAdd(handle, name,
- // serial, deserial,
- maxlength);
- if (b == ORTEConstant.ORTE_BAD_HANDLE)
- {
- System.out.println(":!j: regNewDataType() - bad domain handle!");
- return false;
- }
- if (b == ORTEConstant.ORTE_OK)
- {
- System.out.println(":j: ORTE_OK - regNewDataType()..");
- return true;
- }
-
- return false;
- }
-
-
-
- /**
- * destroyAllRegTypes - destroys all previous registered data types.
- *
- *
- * @return boolean value, False when some error occures, otherwise True
- */
- public
- boolean destroyAllRegTypes()
- {
- if (jORTETypeRegisterDestroyAll(this.handle)) return true;
- return false;
- }
-
-
- /**
- * createSubscription -
- *
- *
- * @param
- * @param
- * @param
- * @param
- * @return
- */
- public
- Subscription createSubscription(int subsmode,
- int substype,
- String topic,
- String typeName,
- int bufflength,
- NtpTime deadline,
- NtpTime minSeparation,
- SubscriptionCallback cb,
- /* recvCallBack */
- /* recvCallBackParam*/
- long multicastIP)
- {
- Subscription s = new Subscription(this,
- subsmode,
- substype,
- topic,
- typeName,
- bufflength,
- deadline,
- minSeparation,
- cb,
- multicastIP);
- return s;
- }
-
-
-
-
- /**
- * createPublication -
- *
- *
- * @param
- * @param
- * @param
- * @param
- * @return
- */
- public
- Publication createPublication (String topic,
- org.ocera.orte.types.MessageData instance,
- NtpTime persistence,
- int strength)
- {
- System.out.println(":j: vytvarim publikaci pro DataType: " + instance.getType());
- Publication p = new Publication(this,
- topic,
- instance,
- persistence,
- strength);
- return p;
- }
-
-
-