Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 65412DBC8 for ; Mon, 20 Aug 2012 06:54:53 +0000 (UTC) Received: (qmail 24327 invoked by uid 500); 20 Aug 2012 06:54:53 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 24251 invoked by uid 500); 20 Aug 2012 06:54:50 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 24225 invoked by uid 99); 20 Aug 2012 06:54:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 06:54:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ng.tuna@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 06:54:43 +0000 Received: by lagv3 with SMTP id v3so2860489lag.6 for ; Sun, 19 Aug 2012 23:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/G6WjEEGOQZkwUH9WDjak/uqvEqS8QlVHZ1cYOdtgVU=; b=iGOJ2B8galiGTx+a2Y/oZrY5/+Xggn0YpN9kLYzVjFPgQiTQ3+m0q0jnq98srVvnUj FuLkVewPRfzURFpznSoLMN09yHgMUhN7SR286hig6wNzbWFTs/W5gMsW29/YK1820jmo urcXPk2RbjOXsB3dlXElrjaC6fc1dtqWjgRxxu+vY7ncRN9sgQi9N3GW9NbZTE6eEPE5 YYCfJzGL1Dl54OUWpfkSUNLwl8GYe+rY4WsNn3ClQBVnLvdgNYNUg8d9lIGWnY1c8wtX 6Q+7dLaVLcAhWwKI6mnHzcYEIYtMjWkLYH2F/fclSvm3SoR2isVViq+3Sar69rS4Etf8 9rIA== MIME-Version: 1.0 Received: by 10.112.103.68 with SMTP id fu4mr5730849lbb.56.1345445661918; Sun, 19 Aug 2012 23:54:21 -0700 (PDT) Received: by 10.112.23.134 with HTTP; Sun, 19 Aug 2012 23:54:21 -0700 (PDT) Date: Mon, 20 Aug 2012 13:54:21 +0700 Message-ID: Subject: [Add plugin to CS] From: Nguyen Anh Tu To: cloudstack-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d0401faa9be45fe04c7acfa28 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0401faa9be45fe04c7acfa28 Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to ask about steps to add a new plugin to CS. I found that plugin is easy way to add new feature / function to my own cloudstack. For testing, I write a new class name: LastFit.java, which extend the HostAllocator interface. Then I pack to JAR file and define it in components.xml. I follow the guide "CloudStack2.2AllocatorImplementationGuide", but CS doesn't realize the new package. I saw to CS 4.0 source code and found that it's a new structure. So I wonder that how I can add a plugin to CS ver 4.0 (or maybe 3.0.5). Any help? Thank so much. -- N.g.U.y.e.N.A.n.H.t.U --f46d0401faa9be45fe04c7acfa28--