Examples of Agent


Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent

  if ( DEBUG ) {
            logger.log(Logger.DEBUG, this.getClass().getName() + ": " +
                "GetJMXConnectorsHandler: " + cmd_props);
        }

        Agent agent = Globals.getAgent();
  ConnectorServerManager csm;
  Vector v = null;
        int status = Status.OK;
        String errMsg = null;

  if (agent != null)  {
      csm = agent.getConnectorServerManager();

      if (csm != null)  {
          v = csm.getConnectorInfo();
      }
  }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent

        try {
            /*
           * Can't really call the JMX notification code at the end of doCommit()
           * because the call to translist.removeTransactionID(id) removes the MBean.
           */
          Agent agent = Globals.getAgent();
          if (agent != null)  {
            agent.notifyTransactionCommit(id);
          }
        } catch (Exception e) {
            logger.log(Logger.WARNING, "JMX agent notify transaction committed failed:"+e.getMessage());
        }

View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent

      /*
       * Can't really call the JMX notification code at the end of doRollback()
       * because the call to translist.removeTransactionID(id) removes the MBean.
       */
      Agent agent = Globals.getAgent();
      if (agent != null)  {
          agent.notifyTransactionRollback(id);
      }
      
        try {
            ts.setState(s);
            cacheSetState(id, ts, con);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent

                }
            }
            translist.updateState(id, s, onephasePrepare, persist);
            prepared = true;
            try {
                Agent agent = Globals.getAgent();
                if (agent != null) agent.notifyTransactionPrepare(id);
            } catch (Throwable t ) {
                logger.log(Logger.WARNING,
                "XXXI18N - JMX agent notify transaction prepared failed: "+t.getMessage());
            }
        } finally {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.management.agent.Agent

        con.sendControlMessage(pkt);

        if (status != Status.OK) {
            IMQService s = (IMQService)con.getService();
      Agent agent = Globals.getAgent();
      if (agent != null)  {
          agent.notifyConnectionReject(s.getName(),
                  username,
                  con.remoteHostString());
      }

            con.closeConnection(true,
                   GoodbyeReason.CON_FATAL_ERROR,
                  Globals.getBrokerResources().getKString(
                  BrokerResources.M_AUTH_FAIL_CLOSE));
        } else  {
            Agent agent = Globals.getAgent();
            if (agent != null)  {
                agent.registerConnection(con.getConnectionUID().longValue());
                agent.notifyConnectionOpen(con.getConnectionUID().longValue());
            }
  }

        return true;
    }
View Full Code Here

Examples of cu.repsystestbed.entities.Agent

          if(feedback.value >= threshold2Satisfy) sij++;
          else sij--;
        }
       
        if(sij<1) sij=0;
        Agent sinkTemp = (Agent)edge.sink;
        if(this.agentIdmapping.get(source.id) > cijMatrix.length || this.agentIdmapping.get(sinkTemp.id) > cijMatrix.length)
          throw new Exception("Array out of bounds exception will occur. Problem with internal id mapping.");
        cijMatrix[this.agentIdmapping.get(source.id)][this.agentIdmapping.get(sinkTemp.id)] = sij;       
      }
    }
View Full Code Here

Examples of cz.cuni.mff.abacs.burglar.logics.objects.agents.Agent

  /** Select an agent to visualize it's intents. */
  public void setIntentSubjectSelected() {
    int mapX = this._selection.getX();
    int mapY = this._selection.getY();
   
    Agent agent = null;
   
    for(BaseObject object : this._map.getObjectsOnPosition(mapX, mapY)){
      if(
        object.isTypeOf(BaseInterface.Type.GUARD) ||
        object.isTypeOf(BaseInterface.Type.BURGLAR)
View Full Code Here

Examples of de.tuclausthal.informatik.winf.mobileagents.agent.Agent

      String agentClassName =
        agentManifest.getMainAttributes().getValue(
          Attributes.Name.MAIN_CLASS);
      Class agentClass = agentLoader.loadClass(agentClassName);
      Agent agent = (Agent) agentClass.newInstance();
      agentInfo.setAgent(agent);
    } else
    {
      // state supplied
      Agent agent = this.deseralizeAgent(data, agentLoader);
      agentInfo.setAgent(agent);
    }
  }
View Full Code Here

Examples of edu.harvard.hul.ois.jhove.Agent

    // I have to pass it to each method, WHY SHOULD I USE a class
    // instance ???
    DataInputStream dstream = getBufferedDataStream (inputStream,
                             _app != null ?
                             _je.getBufferSize () : 0);
    Agent agent = new Agent ("Harvard University Library",
                 AgentType.EDUCATIONAL);
    agent.setAddress ("Engineering Ingegneria Informatica S.p.a., " +
              "Direzione Supporto e Servizi Tecnologici, " +
              "Corso Stati Uniti 23/A, 25100 Padova.");
    agent.setTelephone ("+39 (49) 8283-411");
    agent.setEmail("saint@eng.it");
    _vendor = agent;

    Document doc = new Document ("PNG (Portable Network Graphics): a file format (pronounced \"ping\"), for a lossless, portable, compressed individual computer graphics image transmitted across the Internet. Indexed-colour, greyscale, and truecolour images are supported, with optional transparency",
                   DocumentType.REPORT);
    agent = new Agent ("W3 Consortium",
               AgentType.STANDARD);
    agent.setAddress ("E.M.E.A.: ERCIM, 2004 route des Lucioles, BP 93, 06902 Sophia-Antipolis Cedex, France\nJapan & Korea: Keio University, 5322 Endo, Fujisawa, Kanagawa 252-8520 Japan\nAll other countries: MIT, 32 Vassar Street, Room 32-G515, Cambridge, MA 02139 USA");
    agent.setTelephone ("E.M.E.A. : +33.4.92.38.75.90\nJapan & Korea: +81.466.49.1170\nAll other countries: +1.617.253.2613");
    agent.setWeb ("http://www.w3.org/");
    doc.setAuthor (agent);
    doc.setDate ("2003-11-10");
    doc.setIdentifier (new Identifier ("http://www.w3.org/Graphics/GIF/spec-gif87.txt",
                       IdentifierType.URL));
    _specification.add (doc);
View Full Code Here

Examples of edu.harvard.hul.ois.mets.Agent

            metsHdr.setCREATEDATE(new Date()); // FIXME: CREATEDATE is now:
                                               // maybe should be item create
                                               // date?

            // Agent
            Agent agent = new Agent();
            agent.setROLE(Role.CUSTODIAN);
            agent.setTYPE(Type.ORGANIZATION);

            Name name = new Name();
            name.getContent()
                    .add(
                            new PCData(ConfigurationManager
                                    .getProperty("dspace.name")));
            agent.getContent().add(name);

            metsHdr.getContent().add(agent);

            mets.getContent().add(metsHdr);
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.