Commit da2796b7 authored by tachkeni's avatar tachkeni

Creation.

parents
# Copyright (C) 1996 - 2000 BULL
# Copyright (C) 1996 - 2000 INRIA
#
# The contents of this file are subject to the Joram Public License,
# as defined by the file JORAM_LICENSE.TXT
#
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License on the Objectweb web site
# (www.objectweb.org).
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
# the specific terms governing rights and limitations under the License.
#
# The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
# fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
# released May 24, 2000.
#
# The Initial Developer of the Original Code is Dyade. The Original Code and
# portions created by Dyade are Copyright Bull and Copyright INRIA.
# All Rights Reserved.
#
PACKAGES = fr
SHIP_LIBRARIES = a3rt.jar nwlogs.jar ogc.jar ocl.jar
build_all: all test ship_all scripts doc_protected doc_private
ship_all: ship_dtd $(SHIP_LIBRARIES:%.jar=ship_%)
a3rt.jar_LIBRARIES = \
a3util.jar \
a3agent.jar \
a3ip.jar \
a3task.jar \
a3ns.jar \
a3config.jar
ocl.jar_LIBRARIES = \
a3model.jar \
a3sconf.jar \
a3generation.jar \
a3dt.jar
ogc.jar_LIBRARIES = \
a3model.jar \
a3editors.jar \
a3sconf.jar \
a3generation.jar \
a3gct.jar \
a3dt.jar \
a3gdt.jar
nwlogs.jar_LIBRARIES = \
a3ar.jar \
a3nwar.jar \
a3nwtest.jar
# ships the H323 plug-in
# builds a single jar file and a single shared library
h323_LIBRARIES = \
a3agent.jar \
a3task.jar \
a3ip.jar \
a3nw.jar \
a3plugin.jar \
a3h323.jar
h323_JNI_LIBRARIES = \
liba3plugin.so \
liba3h323.so
scripts:
cd fr/dyade/aaa/nw/ar; $(MAKE) configs scripts
# collects all the dtd addenda
ship_dtd:
@echo Building $(SHIP)/OCLscript.dtd
@echo '<?xml encoding="US-ASCII"?>' > $(SHIP)/OCLscript.dtd
@extensions="void"; \
for f in `find . -name OCL\*Script.dtd -print`; \
do \
ext=`expr $$f : ".*/OCL\(.*\)Script.dtd"`; \
echo $$ext; \
grep "<!ENTITY % $${ext}Element " $$f > /dev/null || ( \
echo "Missing definition of entity $${ext}Element in $$f."; \
false ); \
echo >> $(SHIP)/OCLscript.dtd; \
echo "<!-- OCLscript dtd extension $$ext -->" \
>> $(SHIP)/OCLscript.dtd; \
cat $$f >> $(SHIP)/OCLscript.dtd; \
extensions="$$extensions | %$${ext}Element;"; \
done; \
echo >> $(SHIP)/OCLscript.dtd; \
echo "<!-- OCLscript dtd list of extensions -->" \
>> $(SHIP)/OCLscript.dtd; \
echo "<!ENTITY % extension '$$extensions'>" \
>> $(SHIP)/OCLscript.dtd; \
cat fr/dyade/aaa/services/generation/OCLscript.dtd >> $(SHIP)/OCLscript.dtd
DOC_LIBS = xerces.jar:swing.jar:swingall.jar:OB.jar:OBNaming.jar:jndi.jar:jms.jar
DYADE_DOC_DIR = /infosystem/www/htdocs/aaa/private/aaadoc
doc_dyade:
cp -rp $(ROOTDIR)/doc_protected $(DYADE_DOC_DIR)/apidoc.new
/bin/rm -fr $(DYADE_DOC_DIR)/apidoc
mv $(DYADE_DOC_DIR)/apidoc.new $(DYADE_DOC_DIR)/apidoc
cp -rp $(ROOTDIR)/doc_private $(DYADE_DOC_DIR)/apidoc_private.new
/bin/rm -fr $(DYADE_DOC_DIR)/apidoc_private
mv $(DYADE_DOC_DIR)/apidoc_private.new $(DYADE_DOC_DIR)/apidoc_private
ship_h323:
-rm -fr $(SHIP)/tmp
-mkdir -p $(SHIP)/tmp/fr
cd $(SHIP)/tmp; \
for j in $(h323_LIBRARIES); do \
jar xf $(LIBDIR://$(DRIVE)%=$(DRIVE):%)/$$j; \
done
cd $(SHIP)/tmp; jar cMf $(SHIP://$(DRIVE)%=$(DRIVE):%)/nwh323.jar *
cp -f $(h323_JNI_LIBRARIES:%=$(LIBDIR)/%) $(SHIP)
cp -f $(SRCDIR)/fr/dyade/aaa/nw/plugin/h323/h323plugin.sh $(SHIP)
-rm -fr $(SHIP)/tmp
$(SHIP_LIBRARIES:%.jar=ship_%): ship_%: $(SHIP)/%.jar
$(SHIP)/a3rt.jar: $(a3rt.jar_LIBRARIES:%=$(LIBDIR)/%)
$(SHIP)/ocl.jar: $(ocl.jar_LIBRARIES:%=$(LIBDIR)/%)
$(SHIP)/ogc.jar: $(ogc.jar_LIBRARIES:%=$(LIBDIR)/%)
$(SHIP)/nwlogs.jar: $(nwlogs.jar_LIBRARIES:%=$(LIBDIR)/%)
$(SHIP_LIBRARIES:%= $(SHIP)/%):
-rm -fr $(SHIP)/tmp
-mkdir -p $(SHIP)/tmp
cd $(SHIP)/tmp; \
for j in $($(@:$(SHIP)/%=%)_LIBRARIES); do \
jar xf $(LIBDIR://$(DRIVE)%=$(DRIVE):%)/$$j; \
done
cd $(SHIP)/tmp; jar cMf $(@://$(DRIVE)%=$(DRIVE):%) *
-rm -fr $(SHIP)/tmp
include $(GENERAL_MK)
# Copyright (C) 1996 - 2000 BULL
# Copyright (C) 1996 - 2000 INRIA
#
# The contents of this file are subject to the Joram Public License,
# as defined by the file JORAM_LICENSE.TXT
#
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License on the Objectweb web site
# (www.objectweb.org).
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
# the specific terms governing rights and limitations under the License.
#
# The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
# fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
# released May 24, 2000.
#
# The Initial Developer of the Original Code is Dyade. The Original Code and
# portions created by Dyade are Copyright Bull and Copyright INRIA.
# All Rights Reserved.
#
PACKAGES = \
dyade
include $(GENERAL_MK)
# Copyright (C) 1996 - 2000 BULL
# Copyright (C) 1996 - 2000 INRIA
#
# The contents of this file are subject to the Joram Public License,
# as defined by the file JORAM_LICENSE.TXT
#
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License on the Objectweb web site
# (www.objectweb.org).
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
# the specific terms governing rights and limitations under the License.
#
# The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
# fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
# released May 24, 2000.
#
# The Initial Developer of the Original Code is Dyade. The Original Code and
# portions created by Dyade are Copyright Bull and Copyright INRIA.
# All Rights Reserved.
#
PACKAGES = \
aaa
include $(GENERAL_MK)
# Copyright (C) 1996 - 2000 BULL
# Copyright (C) 1996 - 2000 INRIA
#
# The contents of this file are subject to the Joram Public License,
# as defined by the file JORAM_LICENSE.TXT
#
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License on the Objectweb web site
# (www.objectweb.org).
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
# the specific terms governing rights and limitations under the License.
#
# The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
# fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
# released May 24, 2000.
#
# The Initial Developer of the Original Code is Dyade. The Original Code and
# portions created by Dyade are Copyright Bull and Copyright INRIA.
# All Rights Reserved.
#
PACKAGES = \
util agent ip proxy config task ns \
model beans services tools \
ar nw mom joram
include $(GENERAL_MK)
This diff is collapsed.
/*
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
*
* The contents of this file are subject to the Joram Public License,
* as defined by the file JORAM_LICENSE.TXT
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License on the Objectweb web site
* (www.objectweb.org).
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific terms governing rights and limitations under the License.
*
* The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
* fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
* released May 24, 2000.
*
* The Initial Developer of the Original Code is Dyade. The Original Code and
* portions created by Dyade are Copyright Bull and Copyright INRIA.
* All Rights Reserved.
*/
package fr.dyade.aaa.agent;
import java.io.*;
import java.net.*;
import java.util.Properties;
/**
* Description of a remote server (A3Node).
* A3Node class is similar to ServerDesc class. This class should
* be used only by the admin agent.
* @version 1.1, 29/7/98
* @author Noel De Palma
*/
public final class A3Node implements Serializable {
public static final String RCS_VERSION="@(#)$Id: A3Node.java,v 1.1.1.1 2000-05-30 11:45:24 tachkeni Exp $";
/**
* Node name.
*/
private String Name;
/**
* Node number.
*/
private int Num;
/**
* Host name.
*/
private String HostName;
/**
* Node port.
*/
private int Port;
/**
* monitored server ?
*/
private boolean administred;
/**
* actually monitored server ?
*/
private boolean admin;
/**
* Server State (active or not);
*/
private boolean active;
public A3Node(){
this(0,"",0,false,Server.ADMINISTRED,false);
}
/**
* Constructs a new node with the specified parameters.
* @param HostName Host Name
* @param Num Node Number
* @param Port Node port
* @param admin monitored server ?
* @param active server active ?
*/
public A3Node(int Num,
String HostName,
int Port,
boolean administred,
boolean admin,
boolean active) {
this(HostName+":" + Port, Num,HostName, Port);
this.administred = administred;
this.admin = admin;
this.active = active;
}
/**
* Constructs a new node with the specified parameters.
* @param Name Server Name
* @param HostName Host Name
* @param Num Node Number
* @param Port Node port
* @param admin monitored server ?
* @param active server active ?
*/
public A3Node(String Name,
int Num,
String HostName,
int Port,
boolean administred,
boolean admin,
boolean active) {
this.Name = Name;
this.Num = Num;
this.HostName = HostName;
this.Port = Port;
this.administred = administred;
this.admin = admin;
this.active = active;
}
/**
* Constructs a new node with the specified parameters.
* @param HostName Host Name
* @param Num Node Number
* @param Port Node port
*/
public A3Node(int Num,
String HostName,
int Port) {
this(HostName+":" + Port, Num,HostName, Port);
}
/**
* Constructs a new node with the specified parameters.
* @param Name Server Name
* @param HostName Host Name
* @param Num Node Number
* @param Port Node port
*/
public A3Node(String Name,
int Num,
String HostName,
int Port) {
this.Name = Name;
this.Num = Num;
this.HostName = HostName;
this.Port = Port;
this.administred = Server.ADMINISTRED;
this.admin = false;
this.active = false;
}
/**
* Return the name of the node.
*/
public String GetName(){
return Name;
}
/**
* Return the number that identifie the node.
*/
public int GetNodeNumber(){
return Num;
}
/**
* Return the name of the Host where the node run.
*/
public String GetHostName(){
return HostName;
}
/**
* Return the Port of the host were the node run.
*/
public int GetPort(){
return Port;
}
/**
* Return true if the server can be administred
*/
public boolean canBeAdmin(){
return administred;
}
/**
* Return true if the server is actually administred
*/
public boolean isAdmin(){
return admin;
}
/**
* Return true if the server is active
*/
public boolean isActive(){
return active;
}
/**
* Return the the node in a string whose can be display.
*/
public String toString(){
return new String("Node : "+Integer.toString(this.GetNodeNumber())+" Name : "+this.GetName()+" Running on : "
+this.GetHostName()+" At port :" +Integer.toString(GetPort()) + ", Administred: "
+ this.admin + ", Active: " + this.active);
}
/**
* Return True if the Remote Server is transient.
*/
public boolean isTransient(){
return (this.Num >= Server.MIN_TRANSIENT_ID);
}
}
/*
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
*
* The contents of this file are subject to the Joram Public License,
* as defined by the file JORAM_LICENSE.TXT
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License on the Objectweb web site
* (www.objectweb.org).
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific terms governing rights and limitations under the License.
*
* The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
* fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
* released May 24, 2000.
*
* The Initial Developer of the Original Code is Dyade. The Original Code and
* portions created by Dyade are Copyright Bull and Copyright INRIA.
* All Rights Reserved.
*/
package fr.dyade.aaa.agent;
import java.util.Properties;
/**
* <code>Notification</code> reporting the current set of properties
* from an A3 agent server.
*
* @author Freyssinet Andr*
* @version v1.0
*
* @see AgentAdmin
* @see AdminRequest
*/
public final class A3ServerProperties extends Notification {
/** RCS version number of this file: $Revision: 1.1.1.1 $ */
public static final String RCS_VERSION="@(#)$Id: A3ServerProperties.java,v 1.1.1.1 2000-05-30 11:45:24 tachkeni Exp $";
/**
* The current system properties.
*/
public Properties system;
/**
* Creates a notification to be sent.
*/
public A3ServerProperties() {
system = System.getProperties();
}
}
/*
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
*
* The contents of this file are subject to the Joram Public License,
* as defined by the file JORAM_LICENSE.TXT
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License on the Objectweb web site
* (www.objectweb.org).
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific terms governing rights and limitations under the License.
*
* The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
* fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
* released May 24, 2000.
*
* The Initial Developer of the Original Code is Dyade. The Original Code and
* portions created by Dyade are Copyright Bull and Copyright INRIA.
* All Rights Reserved.
*/
package fr.dyade.aaa.agent;
public final class A3ServersList extends Notification {
public static final String RCS_VERSION="@(#)$Id: A3ServersList.java,v 1.1.1.1 2000-05-30 11:45:24 tachkeni Exp $";
/**
* A3Node contains informations about an agent server.
*/
public A3Node nodes[];
public A3ServersList() {
int nb = Server.networkServers.length;
if (Server.transientServers != null)
nb += Server.transientServers.length;
nodes = new A3Node[nb];
if (Server.transientServers != null) {
for (int i = Server.a3config.transientServers.length; i-- > 0;) {
nodes[--nb] = new A3Node(
Server.a3config.transientServers[i].name, // node name
Server.a3config.transientServers[i].sid, // server's number
Server.a3config.transientServers[i].hostname,
Server.a3config.transientServers[i].port,
Server.ADMINISTRED,
Server.admin,
Server.a3config.transientServers[i].active);
}
}
for (int i = Server.a3config.networkServers.length; i-- > 0;) {
nodes[--nb] = new A3Node(
Server.a3config.networkServers[i].name, // node name
Server.a3config.networkServers[i].sid, // server's number
Server.a3config.networkServers[i].hostname,
Server.a3config.networkServers[i].port,
Server.ADMINISTRED,
Server.admin,
Server.a3config.networkServers[i].active);
}
}
}
/*
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
*
* The contents of this file are subject to the Joram Public License,
* as defined by the file JORAM_LICENSE.TXT
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License on the Objectweb web site
* (www.objectweb.org).
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific terms governing rights and limitations under the License.
*
* The Original Code is Joram, including the java packages fr.dyade.aaa.agent,
* fr.dyade.aaa.util, fr.dyade.aaa.ip, fr.dyade.aaa.mom, and fr.dyade.aaa.joram,
* released May 24, 2000.
*
* The Initial Developer of the Original Code is Dyade. The Original Code and
* portions created by Dyade are Copyright Bull and Copyright INRIA.
* All Rights Reserved.
*/
package fr.dyade.aaa