Examples of IServerType


Examples of org.eclipse.wst.server.core.IServerType

       * @see org.eclipse.wst.server.core.model.RuntimeLocatorDelegate.IRuntimeSearchListener#runtimeFound(org.eclipse.wst.server.core.IRuntimeWorkingCopy)
       */
      public void runtimeFound(IRuntimeWorkingCopy runtime) {
        String runtimeTypeId = runtime.getRuntimeType().getId();
        String serverTypeId = runtimeTypeId.substring(0, runtimeTypeId.length() - 8);
        IServerType serverType = ServerCore.findServerType(serverTypeId);
        try {
          IServerWorkingCopy server = serverType.createServer(serverTypeId, null, runtime, monitor);
          listener.serverFound(server);
        } catch (Exception ex) {
          Activator.getLogger().error(ex);
        }
      }
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

  }
 
  private static void createFuseServer(File loc, String serverTypeId, String name, String runtimeName) {
    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

  }
 
  private static void createKarafServer(File loc, String serverTypeId, String name, String runtimeName) {
    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

      if( type != null ) {
        if( type.equals(KarafBeanProvider.KARAF_2x) ||
          type.equals(KarafBeanProvider.KARAF_3x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

       * @see org.eclipse.wst.server.core.model.RuntimeLocatorDelegate.IRuntimeSearchListener#runtimeFound(org.eclipse.wst.server.core.IRuntimeWorkingCopy)
       */
      public void runtimeFound(IRuntimeWorkingCopy runtime) {
        String runtimeTypeId = runtime.getRuntimeType().getId();
        String serverTypeId = runtimeTypeId.substring(0, runtimeTypeId.length() - 8);
        IServerType serverType = ServerCore.findServerType(serverTypeId);
        try {
          IServerWorkingCopy server = serverType.createServer(serverTypeId, null, runtime, monitor);
          listener.serverFound(server);
        } catch (Exception e) {
          Activator.getLogger().error(e);
        }
      }
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

      ServerBeanType type = sb.getBeanType();
      if( type != null ) {
        if( type.equals(FuseBeanProvider.FUSE_6x)) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

  }
 
  private static void createServiceMixServer(File loc, String serverTypeId, String name, String runtimeName) {
    if (loc == null || !loc.isDirectory() || serverTypeId == null)
      return;
    IServerType serverType = ServerCore.findServerType(serverTypeId);
    if( serverType == null )
      return;
    IRuntimeType rtType = serverType.getRuntimeType();
    if( rtType == null )
      return;
   
    try {
      IPath locPath = new Path(loc.getAbsolutePath());
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

      if( type != null ) {
        if( type.equals(ServiceMixBeanProvider.SMX_4x) ||
          type.equals(ServiceMixBeanProvider.SMX_5x) ) {
          String serverType = l.getServerAdapterId();
          if( serverType != null ) {
            IServerType t = ServerCore.findServerType(serverType);
            if( t != null ) {
              IRuntimeType rtt = t.getRuntimeType();
              try {
                IRuntimeWorkingCopy runtime = rtt.createRuntime(rtt.getId(), monitor);
                // commented out the naming of the runtime as it seems to break server to runtime links
                runtime.setName(dir.getName());
                runtime.setLocation(new Path(absolutePath));
View Full Code Here

Examples of org.eclipse.wst.server.core.IServerType

       * @see org.eclipse.wst.server.core.model.RuntimeLocatorDelegate.IRuntimeSearchListener#runtimeFound(org.eclipse.wst.server.core.IRuntimeWorkingCopy)
       */
      public void runtimeFound(IRuntimeWorkingCopy runtime) {
        String runtimeTypeId = runtime.getRuntimeType().getId();
        String serverTypeId = runtimeTypeId.substring(0, runtimeTypeId.length() - 8);
        IServerType serverType = ServerCore.findServerType(serverTypeId);
        try {
          IServerWorkingCopy server = serverType.createServer(serverTypeId, null, runtime, monitor);
          listener.serverFound(server);
        } catch (Exception e) {
          Activator.getLogger().error(e);
        }
      }
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.