Package net.jini.config

Examples of net.jini.config.Configuration


  if (mr == null) {
      throw new TestException(
    "MailboxPullRegistration argument cannot be null");
  }

        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryLeasePreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tmailbox lease preparer: " + preparer);
  Lease proxy =
View Full Code Here


  if (mr == null)
       throw new TestException ("Got null ref for MailboxRegistration object");
  logger.log(Level.INFO,
       "Got reference to MailboxRegistration object: " + mr);
 
        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryRegistrationPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tregistration proxy preparer: " + preparer);
  mr = (MailboxRegistration)preparer.prepareProxy(mr);
View Full Code Here

  if (mr == null)
       throw new TestException ("Got null ref for MailboxPullRegistration object");
  logger.log(Level.INFO,
       "Got reference to MailboxPullRegistration object: " + mr);
 
        Configuration serviceConf = getConfig().getConfiguration();
        ProxyPreparer preparer = new BasicProxyPreparer();
        if (serviceConf instanceof com.sun.jini.qa.harness.QAConfiguration) {
            preparer =
    (ProxyPreparer) serviceConf.getEntry("test",
                 "mercuryRegistrationPreparer",
                 ProxyPreparer.class);
        }
  logger.log(Level.INFO, "\tregistration proxy preparer: " + preparer);
  mr = (MailboxPullRegistration)preparer.prepareProxy(mr);
View Full Code Here

        public LDSEventListener(RegistrationInfo regInfo)
      throws RemoteException
        {
            super();
            this.regInfo = regInfo;
      Configuration c = getConfig().getConfiguration();
      Exporter exporter = QAConfig.getDefaultExporter();
      registrarPreparer = new BasicProxyPreparer();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    try {
        exporter = (Exporter) c.getEntry("test",
                 "fiddlerListenerExporter",
                 Exporter.class);
        registrarPreparer =
      (ProxyPreparer) c.getEntry("test",
               "reggiePreparer",
               ProxyPreparer.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Configuration error", e);
    }
View Full Code Here

    private Object proxy;
    private Object myRef;

    public TesterTransactionManager() throws RemoteException {
  Configuration c = QAConfig.getConfig().getConfiguration();
  context = null;
  try {
      context = (LoginContext) c.getEntry("test",
            "mahaloLoginContext",
            LoginContext.class,
            null);
      if (context != null) {
    logger.log(Level.FINEST, "got a TesterTransactionManager login context");
View Full Code Here

  this.name  = name;
  lock       = new Integer(0);
  lock2      = new Integer(1);
  crashcount = System.currentTimeMillis();
  behavior   = new BitSet(OPERATION_COUNT);
  Configuration c = QAConfig.getConfig().getConfiguration();
  Exporter exporter = QAConfig.getDefaultExporter();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    exporter = (Exporter) c.getEntry("test",
             "transactionParticipantExporter",
             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration Error", e);
      }
View Full Code Here

        String starterConfigFile =
         ( (proto.compareToIgnoreCase("none") == 0) ? "-" :
             sysConfig.getStringConfigVal
                                    ("sharedGroup.starterConfiguration","-") );
        String[] starterConfigOptions = new String[] { starterConfigFile };
        Configuration starterConfig = ConfigurationProvider.getInstance
                                       ( starterConfigOptions,
                                         (this.getClass()).getClassLoader() );
        /* shared VM in which the service(s) will run */
        String sharedVMPolicyFile = policyAll;
        String sharedVMClasspath = sysConfig.getStringConfigVal
View Full Code Here

    public LeaseBackEndImpl(int leaseCount) throws RemoteException {
  owners = new LeaseOwner[leaseCount];
  leases = new TestLease[leaseCount];
  Exporter exporter = QAConfig.getDefaultExporter();
        try {
      Configuration c = QAConfig.getConfig().getConfiguration();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter = (Exporter) c.getEntry("test",
             "leaseExporter",
             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
View Full Code Here

    public LeaseBackEndImpl(int leaseCount) throws RemoteException {
  owners = new LeaseOwner[leaseCount];
  leases = new TestLease[leaseCount];
  Exporter exporter = QAConfig.getDefaultExporter();
        try {
      Configuration c = QAConfig.getConfig().getConfiguration();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter = (Exporter) c.getEntry("test",
             "leaseExporter",
             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
View Full Code Here

     */
    public void addOutriggerLease(Lease lease, boolean unknownOk)
  throws TestException
    {
  ProxyPreparer p = null;
  Configuration c = getConfig().getConfiguration();
  if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
      try {
    p = (ProxyPreparer) c.getEntry("test",
                 "outriggerLeasePreparer",
                 ProxyPreparer.class);
    lease = (Lease) p.prepareProxy(lease);
      } catch (ConfigurationException e) {
    throw new TestException("Configuration error", e);
View Full Code Here

TOP

Related Classes of net.jini.config.Configuration

Copyright © 2018 www.massapicom. 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.