Package de.desy.tine.client

Examples of de.desy.tine.client.TLink.attach()


            final TDataType dout = link.dOutput;
            long time = link.getLastTimeStamp();
            //read data for the first time
            cbk.onEvent(new EventData<Object>(getDataObject(dout), time));
            //attach event listener
            int rc = link.attach(TMode.CM_DATACHANGE, new TCallback() {
                @Override
                public void callback(int LinkIndex, int LinkStatus) {
                    if (TErrorList.isLinkSuccess(LinkStatus)) {
                        long time = link.getLastTimeStamp();
                        cbk.onEvent(new EventData<Object>(getDataObject(dout), time));
View Full Code Here


  public static int systemStartGlobalSynchronization()
  {
    if (gSynchronizationStarted) return 0;
    TDataType sdt = new TDataType(gSyncTimeStamp);
    TLink tl = new TLink("/SITE","SYSTIME",sdt,null,TAccess.CA_READ);
    int id = tl.attach(TMode.CM_GLOBAL, new TSyncCallback(), 1000);
    if (id < 0) return -id;
    gSynchronizationStarted = true;
    return 0;
  }
  public static void dumpTime()
View Full Code Here

  public static int systemStartGlobalSynchronization()
  {
    if (gSynchronizationStarted) return 0;
    TDataType sdt = new TDataType(gSyncTimeStamp);
    TLink tl = new TLink("/SITE","SYSTIME",sdt,null,TAccess.CA_READ);
    int id = tl.attach(TMode.CM_GLOBAL, new TSyncCallback(), 1000);
    if (id < 0) return -id;
    gSynchronizationStarted = true;
    return 0;
  }
  public static void dumpTime()
View Full Code Here

    Clog[] clog = new Clog[1];
    clog[0] = new Clog(text,context,tag,caller,priority.ordinal(),status.ordinal());
    TDataType clgt = new TDataType(clog);
   
    TLink tl = new TLink("/SITE/CLOG/Logger","NewEntry",null,clgt,TAccess.CA_WRITE|TAccess.CA_RETRY);
    int id = tl.attach(TMode.CM_SINGLE, instance, 1000);
    return id < 0 ? -id : 0;   
  }
  public static int log(String text)
  {
    ClogPriority priority = ClsLog.ClogPriority.CLOG_PRIORITY_USEFUL;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.