• 大小: 24.07MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-15
  • 语言: 其他
  • 标签: kettle  carte  YAJSW  

资源简介

carte子服务器作为kettle的组成模块,用来远程执行转换和作业。carte是一个轻量级的服务进程,可以支持远程监控,并为转换提供集群的能力。子服务器是集群的最小组成模块,也是一个小型的http服务器,用来接收远程客户端命令,这些命令用于作业和转换的部署、管理和监控。

资源截图

代码片段和文件信息

/*
 * Copyright 2009 Red Hat Inc.
 *
 * Red Hat licenses this file to you under the Apache License version 2.0
 * (the “License“); you may not use this file except in compliance with the
 * License.  You may obtain a copy of the License at:
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License is distributed on an “AS IS“ BASIS WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package io.netty.handler.ipfilter;

import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.StringTokenizer;

/**
 * @author frederic bregier
 */
public abstract class CIDR implements Comparable
{
   /**
    * The base address of the CIDR notation
    */
   protected InetAddress baseAddress;

   /**
    * The mask used in the CIDR notation
    */
   protected int cidrMask;

   /**
    * Create CIDR using the CIDR Notation
    * @param baseAddress
    * @param cidrMask
    * @return the generated CIDR
    * @throws UnknownHostException
    */
   public static CIDR newCIDR(InetAddress baseAddress int cidrMask) throws UnknownHostException
   {
      if (cidrMask < 0)
      {
         throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
      }
      if (baseAddress instanceof Inet4Address)
      {
         if (cidrMask > 32)
         {
            throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
         }
         return new CIDR4((Inet4Address) baseAddress cidrMask);
      }
      // IPv6.
      if (cidrMask > 128)
      {
         throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
      }
      return new CIDR6((Inet6Address) baseAddress cidrMask);
   }

   /**
    * Create CIDR using the normal Notation
    * @param baseAddress
    * @param scidrMask
    * @return the generated CIDR
    * @throws UnknownHostException
    */
   public static CIDR newCIDR(InetAddress baseAddress String scidrMask) throws UnknownHostException
   {
      int cidrMask = getNetMask(scidrMask);
      if (cidrMask < 0)
      {
         throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
      }
      if (baseAddress instanceof Inet4Address)
      {
         if (cidrMask > 32)
         {
            throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
         }
         return new CIDR4((Inet4Address) baseAddress cidrMask);
      }
      cidrMask += 96;
      // IPv6.
      if (cidrMask > 128)
      {
         throw new UnknownHostException(“Invalid mask length used: “ + cidrMask);
      }
      return new CIDR6((Inet6Address) baseAddress cidrMask);
   }

   /

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-01 14:53  yajsw-stable-12.13a\
     目录           0  2018-08-13 02:24  yajsw-stable-12.13a\bat\
     目录           0  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\
     文件           0  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\installServicesManagerServer.bat
     文件         240  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\jnlpDemo.bat
     文件         250  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\remoteLaunchTomcatDemo.bat
     文件         164  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\runscript.bat
     文件          79  2018-08-13 02:24  yajsw-stable-12.13a\bat\demos\testMail.bat
     文件         177  2018-08-13 02:24  yajsw-stable-12.13a\bat\genConfig.bat
     文件          72  2018-08-13 02:24  yajsw-stable-12.13a\bat\installService.bat
     文件          70  2018-08-13 02:24  yajsw-stable-12.13a\bat\queryService.bat
     文件          68  2018-08-13 02:24  yajsw-stable-12.13a\bat\runConsole.bat
     文件          67  2018-08-13 02:24  yajsw-stable-12.13a\bat\runConsoleW.bat
     文件         265  2018-08-13 02:24  yajsw-stable-12.13a\bat\runHelloWorld.bat
     文件         148  2018-08-13 02:24  yajsw-stable-12.13a\bat\runServicesManagerClient.bat
     文件         158  2018-08-13 02:24  yajsw-stable-12.13a\bat\runServicesManagerServer.bat
     文件        1203  2018-08-13 02:24  yajsw-stable-12.13a\bat\setenv.bat
     文件          72  2018-08-13 02:24  yajsw-stable-12.13a\bat\startService.bat
     文件          72  2018-08-13 02:24  yajsw-stable-12.13a\bat\stopService.bat
     文件          72  2018-08-13 02:24  yajsw-stable-12.13a\bat\systemTrayIcon.bat
     文件          65  2018-08-13 02:24  yajsw-stable-12.13a\bat\sytemTrayIconW.bat
     文件          66  2018-08-13 02:24  yajsw-stable-12.13a\bat\uninstallService.bat
     文件         165  2018-08-13 02:24  yajsw-stable-12.13a\bat\wrapper.bat
     文件         112  2018-08-13 02:24  yajsw-stable-12.13a\bat\wrapperW.bat
     目录           0  2018-08-13 02:24  yajsw-stable-12.13a\bin\
     目录           0  2018-08-13 02:24  yajsw-stable-12.13a\bin\demos\
     文件         912  2018-08-13 02:24  yajsw-stable-12.13a\bin\demos\jnlpDemo.sh
     文件         929  2018-08-13 02:24  yajsw-stable-12.13a\bin\demos\remoteLaunchTomcatDemo.sh
     文件         898  2018-08-13 02:24  yajsw-stable-12.13a\bin\genConfig.sh
     文件         724  2018-08-13 02:24  yajsw-stable-12.13a\bin\installDaemon.sh
     文件        3521  2018-08-13 02:24  yajsw-stable-12.13a\bin\installDaemonD.sh
............此处省略998个文件信息

评论

共有 条评论