Examples of stopService()


Examples of atg.nucleus.Nucleus.stopService()

                try {
                    final Nucleus nucleus = (Nucleus) FieldUtils.readField(field, testInstance, true);
                    logger.info("Found Nucleus: {}.", nucleus.getAbsoluteName());
                    if (nucleus.isRunning()) {
                        logger.info("Stopping Nucleus.");
                        nucleus.stopService();
                    }
                } catch (IllegalAccessException e) {
                    logger.catching(e);
                    logger.error("Can't access test instance's Nucleus. Strange.");
                } catch (ServiceException e) {
View Full Code Here

Examples of atg.nucleus.Nucleus.stopService()

            assertTrue(
                    "Test component did not start up cleanly.", testComponent.isCleanStart
            );

        } finally {
            n.stopService();
            assertNotNull(testComponent);
            assertFalse(
                    "Test component did not shut down cleanly.", testComponent.isCleanStart
            );
            testComponent = null;
View Full Code Here

Examples of atg.nucleus.Nucleus.stopService()

            // Make sure it's the same component we added
            assertEquals(component, result);
            assertEquals(component2, result2);
        } finally {
            if (n != null) {
                n.stopService();
            }
        }
    }

    /**
 
View Full Code Here

Examples of atg.nucleus.Nucleus.stopService()

            rollback = false;
        } finally {
            // End the transaction, rollback on error
            td.end(rollback);
            // shut down Nucleus
            n.stopService();
            // Shut down HSQLDB
            db.shutdown();
        }
    }
}
View Full Code Here

Examples of atg.nucleus.Nucleus.stopService()

                    + " in your class. It must take an atg.adapter.gsa.GSARepository as the only parameter."
            );
        } finally {
            // if it were null a NPE would have occurred at the earlier dereference
            //if(n != null)
            n.stopService();
        }
    }


    /**
 
View Full Code Here

Examples of com.vmware.vim25.mo.HostServiceSystem.stopService()

    for(int i=0; ss!=null && i<ss.length; i++)
    {
      printService(ss[i]);
      if(ss[i].isRunning())
      {
        hss.stopService(ss[i].getKey());
        System.out.println("Service stopped.");
      }
      else
      {
        hss.startService(ss[i].getKey());
View Full Code Here

Examples of net.sf.joafip.util.PersistantDataRecordIdentifierSet.stopService()

    } catch (ObjectIODataCorruptedException exception) {
      throw new StoreDataCorruptedException(exception);
    } finally {
      if (toPreserveSet != null) {
        try {
          toPreserveSet.stopService(true);
        } catch (Exception exception) {
          // ignore error
          LOGGER.error("closing set", exception);
        }
      }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.stopService()

//                if (RegistryBasedProcessStoreImpl.isUpdatingBPELPackage) {
//                    axisService.addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
//                    axisService.getAxisServiceGroup().addParameter(new Parameter(CarbonConstants.PRESERVE_SERVICE_HISTORY_PARAM, "true"));
//                }
                    // now, stop the service
                    axisConfig.stopService(axisServiceName);
                    // calling removeServiceGroup() is workaround to AXIS2-4314.
                    //  It happens that Axis2 creates one group per service you add with AxisConfiguration.addService().
                    // See this.createService()
                    // Once this issue is fixed (hopully in Axis2-1.5), we can use removeService() again.
                    axisConfig.removeServiceGroup(axisServiceName);
View Full Code Here

Examples of org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.stopService()

            return toDataSource(service.getDataContext(), location);
        }
        finally {
            // make sure we cleanup after ourselves...
            try {
                service.stopService();
            }
            catch (Throwable th) {
                // ignore..
            }
        }
View Full Code Here

Examples of org.apache.cayenne.pref.HSQLEmbeddedPreferenceService.stopService()

            return toDataSource(service.getDataContext(), location);
        }
        finally {
            // make sure we cleanup after ourselves...
            try {
                service.stopService();
            }
            catch (Throwable th) {
                // ignore..
            }
        }
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.