OW2 Consortium elastic-grid

Rev

Rev 150 | Rev 205 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 150 Rev 182
1
/**
1
/**
2
 * Copyright (C) 2007-2008 Elastic Grid, LLC.
-
 
3
 * 
-
 
4
 * This file is part of Elastic Grid.
-
 
5
 * 
-
 
6
 * Elastic Grid is free software: you can redistribute it and/or modify
-
 
7
 * it under the terms of the GNU Lesser General Public License as
-
 
8
 * published by the Free Software Foundation, either version 3 of the
-
 
9
 * License, or any later version.
-
 
10
 * 
-
 
11
 * Elastic Grid is distributed in the hope that it will be useful,
-
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
-
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
14
 * GNU General Public License for more details.
-
 
15
 * 
-
 
16
 * You should have received a copy of the GNU Lesser General Public License
-
 
17
 * along with Elastic Grid.  If not, see <http://www.gnu.org/licenses/>.
-
 
-
 
2
 * Elastic Grid
-
 
3
 * Copyright (C) 2007-2008 Elastic Grid, LLC.
-
 
4
 * 
-
 
5
 * This program is free software: you can redistribute it and/or modify
-
 
6
 * it under the terms of the GNU Affero General Public License as
-
 
7
 * published by the Free Software Foundation, either version 3 of the
-
 
8
 * License, or (at your option) any later version.
-
 
9
 * 
-
 
10
 * This program is distributed in the hope that it will be useful,
-
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
-
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
13
 * GNU Affero General Public License for more details.
-
 
14
 * 
-
 
15
 * You should have received a copy of the GNU Affero General Public License
-
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
17
 */
19

18

20
package com.elasticgrid.platforms.lan.discovery
19
package com.elasticgrid.platforms.lan.discovery
21

20

22
import net.jini.core.lookup.ServiceItem
21
import net.jini.core.lookup.ServiceItem
23
import net.jini.lookup.ServiceItemFilter
22
import net.jini.lookup.ServiceItemFilter
24

23

25
public class MonitorGroupFilter implements ServiceItemFilter {
24
public class MonitorGroupFilter implements ServiceItemFilter {
26
  def String clusterName
25
  def String clusterName
27

26

28
  def MonitorGroupFilter(clusterName) {
27
  def MonitorGroupFilter(clusterName) {
29
    this.clusterName = clusterName;
28
    this.clusterName = clusterName;
30
  }
29
  }
31

30

32
  boolean check(ServiceItem item) {
31
  boolean check(ServiceItem item) {
33
//    def ProvisionMonitor monitor = item.service.admin
32
//    def ProvisionMonitor monitor = item.service.admin
34
//    def ServiceElement serviceElement = cybernode.serviceElement
33
//    def ServiceElement serviceElement = cybernode.serviceElement
35
//    def ServiceBeanConfig config = serviceElement.serviceBeanConfig
34
//    def ServiceBeanConfig config = serviceElement.serviceBeanConfig
36
//    return config.groups.find { it == clusterName } != null
35
//    return config.groups.find { it == clusterName } != null
37
    return true
36
    return true
38
  }
37
  }
39
}
38
}
40

39

41
Generated by GNU enscript 1.6.4.
40
Generated by GNU enscript 1.6.4.
42

41

43

42