rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
hostDescriptionMenuItem_actionPerformed(e);
setHostDescription();
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
hostLocationMenuItem_actionPerformed(e);
setHostLocation();
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
hostTypeMenuItem_actionPerformed(e);
setHostType();
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
describeNodeMenuItem_actionPerformed(hostTree);
setNodeDescription(hostTree);
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
cmdLineNodeMenuItem_actionPerformed(hostTree);
setNodeCommandLine((DefaultMutableTreeNode)hostTree.getLastSelectedPathComponent());
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
globalCmdLineMenuItem_actionPerformed();
setGlobalCommandLine();
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
deleteNodeInHostMenuItem_actionPerformed(e);
deleteNodesFromTree(hostTree);
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
newNodeMenuItem_actionPerformed(e);
createUnassignedNode();
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
JMenuItem describeNodeMenuItem = new JMenuItem(DESCRIPTION_MENU_ITEM);
JMenuItem describeNodeMenuItem = new JMenuItem(DESCRIBE_MENU_ITEM);
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
describeNodeMenuItem_actionPerformed(nodeTree);
setNodeDescription(nodeTree);
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
cmdLineNodeMenuItem_actionPerformed(nodeTree);
setNodeCommandLine((DefaultMutableTreeNode)nodeTree.getLastSelectedPathComponent());
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
deleteNodeMenuItem_actionPerformed(e);
deleteNodesFromTree(nodeTree);
private void initDisplay() { // host split pane contains host tree and // the bottom split pane which contains the node and agent trees JSplitPane hostPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutable...
globalCmdLineMenuItem_actionPerformed();
setGlobalCommandLine();
public void actionPerformed(ActionEvent e) { globalCmdLineMenuItem_actionPerformed(); }
deleteNodeInHostMenuItem_actionPerformed(e);
deleteNodesFromTree(hostTree);
public void actionPerformed(ActionEvent e) { deleteNodeInHostMenuItem_actionPerformed(e); }
newNodeMenuItem_actionPerformed(e);
createUnassignedNode();
public void actionPerformed(ActionEvent e) { newNodeMenuItem_actionPerformed(e); }
describeNodeMenuItem_actionPerformed(nodeTree);
setNodeDescription(nodeTree);
public void actionPerformed(ActionEvent e) { describeNodeMenuItem_actionPerformed(nodeTree); }
cmdLineNodeMenuItem_actionPerformed(nodeTree);
setNodeCommandLine((DefaultMutableTreeNode)nodeTree.getLastSelectedPathComponent());
public void actionPerformed(ActionEvent e) { cmdLineNodeMenuItem_actionPerformed(nodeTree); }
deleteNodeMenuItem_actionPerformed(e);
deleteNodesFromTree(nodeTree);
public void actionPerformed(ActionEvent e) { deleteNodeMenuItem_actionPerformed(e); }
newHostMenuItem_actionPerformed(e);
createHost();
public void actionPerformed(ActionEvent e) { newHostMenuItem_actionPerformed(e); }
deleteHostMenuItem_actionPerformed(e);
deleteHost();
public void actionPerformed(ActionEvent e) { deleteHostMenuItem_actionPerformed(e); }
newNodeInHostMenuItem_actionPerformed(e);
createAssignedNode();
public void actionPerformed(ActionEvent e) { newNodeInHostMenuItem_actionPerformed(e); }
hostDescriptionMenuItem_actionPerformed(e);
setHostDescription();
public void actionPerformed(ActionEvent e) { hostDescriptionMenuItem_actionPerformed(e); }
hostLocationMenuItem_actionPerformed(e);
setHostLocation();
public void actionPerformed(ActionEvent e) { hostLocationMenuItem_actionPerformed(e); }
hostTypeMenuItem_actionPerformed(e);
setHostType();
public void actionPerformed(ActionEvent e) { hostTypeMenuItem_actionPerformed(e); }
describeNodeMenuItem_actionPerformed(hostTree);
setNodeDescription(hostTree);
public void actionPerformed(ActionEvent e) { describeNodeMenuItem_actionPerformed(hostTree); }
cmdLineNodeMenuItem_actionPerformed(hostTree);
setNodeCommandLine((DefaultMutableTreeNode)hostTree.getLastSelectedPathComponent());
public void actionPerformed(ActionEvent e) { cmdLineNodeMenuItem_actionPerformed(hostTree); }
if (kid == null) { if (log.isWarnEnabled()) { log.warn("Child " + i + " is null in " + parent.getName()); } continue; }
protected boolean alreadyAdded(ComponentData parent, ComponentData self) { ComponentData[] children = parent.getChildren(); for (int i = 0; i < children.length; i++) { boolean isdiff = false; ComponentData kid = children[i]; if (kid.getClassName().equals(self.getClassName())) { if (kid.getType()....
organizer = this; helper = new OrganizerHelper(this);
public Organizer(CSMART csmart) { this(csmart, null); organizer = this; helper = new OrganizerHelper(this); }
if (seed < 0) { seed = -seed; }
public void generateClass(ClassVisitor v) { ClassEmitter ce = new ClassEmitter(v); Method newInstance = ReflectUtils.findNewInstance(keyInterface); if (!newInstance.getReturnType().equals(Object.class)) { throw new IllegalArgumentException("newInstance...
cat.info(varName);
cat.debug(varName);
public String varName() { if(varName == null) { varName = ERXExtensions.replaceStringByStringInString("-", "_", "dhtml-" + context().elementID().hashCode() + "-" + key()); cat.info(varName); } return varName; }
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column)
public TableModelEvent(TableModel source)
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column) { this(source, firstRow, lastRow, column, UPDATE); }
this(source, firstRow, lastRow, column, UPDATE);
this(source, 0, source.getRowCount(), ALL_COLUMNS, UPDATE);
public TableModelEvent(TableModel source, int firstRow, int lastRow, int column) { this(source, firstRow, lastRow, column, UPDATE); }
public boolean equals(Object o)
public boolean equals (DisplayMode dm)
public boolean equals(Object o) { if (! (o instanceof DisplayMode)) return false; DisplayMode m = (DisplayMode) o; return width == m.width && height == m.height && bitDepth == m.bitDepth && refreshRate == m.refreshRate; }
if (! (o instanceof DisplayMode)) return false; DisplayMode m = (DisplayMode) o; return width == m.width && height == m.height && bitDepth == m.bitDepth && refreshRate == m.refreshRate;
return (width == dm.width && height == dm.height && bitDepth == dm.bitDepth && refreshRate == dm.refreshRate);
public boolean equals(Object o) { if (! (o instanceof DisplayMode)) return false; DisplayMode m = (DisplayMode) o; return width == m.width && height == m.height && bitDepth == m.bitDepth && refreshRate == m.refreshRate; }
if ( findAncestorWithClass( GuardTag.class ) == null ) { throw new JellyException( "Unable to locate guard" ); }
System.err.println( "PassTag#####doTag()" );
public void doTag(XMLOutput output) throws Exception { if ( findAncestorWithClass( GuardTag.class ) == null ) { throw new JellyException( "Unable to locate guard" ); } throw new PassException(); }
return (MulticastDelegate)super.create(iface);
return (MulticastDelegate)super.create(iface.getName());
public MulticastDelegate create() { setNamePrefix(MulticastDelegate.class.getName()); return (MulticastDelegate)super.create(iface); }
catch (InterruptedIOException iioe) { Thread.currentThread().interrupt(); }
public void flush () { try { out.flush(); } catch (IOException e) { setError (); } }
} catch (InterruptedIOException iioe) { Thread.currentThread().interrupt();
public void close () { try { out.close(); } catch (IOException e) { setError (); } }
public ObjectStreamField (String name, Class type)
ObjectStreamField (Field field)
public ObjectStreamField (String name, Class type) { this (name, type, false); }
this (name, type, false);
this (field.getName(), field.getType()); this.field = field; toset = !Modifier.isFinal(field.getModifiers());
public ObjectStreamField (String name, Class type) { this (name, type, false); }
if (this.type.isPrimitive())
if (isPrimitive())
public String getTypeString () { // use intern() if (this.type.isPrimitive()) return null; return typename.intern(); }
return type.isPrimitive ();
return typename.length() == 1;
public boolean isPrimitive () { return type.isPrimitive (); }
public final static String readUTF(DataInput in) throws IOException
public final String readUTF() throws IOException
public final static String readUTF(DataInput in) throws IOException { final int UTFlen = in.readUnsignedShort(); byte[] buf = new byte[UTFlen]; StringBuffer strbuf = new StringBuffer(); // This blocks until the entire string is available rather than // doing partial processing on the bytes that are av...
final int UTFlen = in.readUnsignedShort(); byte[] buf = new byte[UTFlen]; StringBuffer strbuf = new StringBuffer(); in.readFully(buf, 0, UTFlen); for (int i = 0; i < UTFlen; ) { if ((buf[i] & 0x80) == 0) strbuf.append((char) (buf[i++] & 0xFF)); else if ((buf[i] & 0xE0) == 0xC0) { if (i + 1 >= UTFlen || (buf[i+1] &...
return readUTF(this);
public final static String readUTF(DataInput in) throws IOException { final int UTFlen = in.readUnsignedShort(); byte[] buf = new byte[UTFlen]; StringBuffer strbuf = new StringBuffer(); // This blocks until the entire string is available rather than // doing partial processing on the bytes that are av...
EOModelGroup aModelGroup = EOModelGroup.defaultGroup(); EOEntity anEntity = aModelGroup.entityNamed(anEntityName); if (anEntity == null) { throw new IllegalStateException("<" + getClass().getName() + " could not find entity named " + anEntityName + ">"); } EOEntity destinationEntity = entityWithEntityAndKeyPath(anEnt...
protected EODataSource _localDataSource() { if (null==dataSource()) { setDataSource((EODatabaseDataSource)valueForBinding("dataSource")); if (null==dataSource()) { String anEntityName = _localSourceEntityName(); // FIXME (msanchez, 08/00, 2520053): use mode...
EOEntity anEntity = ERXEOAccessUtilities.entityNamed(anEditingContext, anEntityName); if (anEntity == null) { throw new IllegalStateException("<" + getClass().getName() + " could not find entity named " + anEntityName + ">"); } EOEntity destinationEntity = entityWithEntityAndKeyPath(anEntity, _localRelationshipKey());
protected EODataSource _localDataSource() { if (null==dataSource()) { setDataSource((EODatabaseDataSource)valueForBinding("dataSource")); if (null==dataSource()) { String anEntityName = _localSourceEntityName(); // FIXME (msanchez, 08/00, 2520053): use mode...
runExit();
quit = true;
public void init(GLDrawable drawable) { GL gl = drawable.getGL(); GLU glu = drawable.getGLU(); // Try and disable synch-to-retrace for fastest framerate if (gl.isFunctionAvailable("wglSwapIntervalEXT")) { System.err.println("wglSwapIntervalEXT available; disabling sync-to-refresh for be...
throw new RuntimeException("OpenGL routine \"" + function + "\" not available");
final String message = "OpenGL routine \"" + function + "\" not available"; new Thread(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, message, "Unavailable extension", JOptionPane.ERROR_MESSAGE); runExit(); } }).start(); throw new RuntimeException(message);
private void ensurePresent(String function) { if (!canvas.getGL().isFunctionAvailable(function)) { throw new RuntimeException("OpenGL routine \"" + function + "\" not available"); } }
gnu.java.security.provider.DSASignature.class.getName());
"gnu.java.security.provider.DSASignature");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
gnu.java.security.provider.DSAKeyPairGenerator.class.getName());
"gnu.java.security.provider.DSAKeyPairGenerator");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
put("MessageDigest.SHA", gnu.java.security.provider.SHA.class.getName()); put("MessageDigest.MD5", gnu.java.security.provider.MD5.class.getName());
put("MessageDigest.SHA", "gnu.java.security.provider.SHA"); put("MessageDigest.MD5", "gnu.java.security.provider.MD5");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
gnu.java.security.provider.DSAParameters.class.getName());
"gnu.java.security.provider.DSAParameters");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
gnu.java.security.provider.DSAParameterGenerator.class.getName());
"gnu.java.security.provider.DSAParameterGenerator");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
gnu.java.security.provider.SHA1PRNG.class.getName());
"gnu.java.security.provider.SHA1PRNG");
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Sign...
protected FastClass(Class type) { this.type = type;
protected FastClass() { Error e = new Error("Using the FastClass empty constructor--please report to the cglib-devel mailing list"); e.printStackTrace(); throw e;
protected FastClass(Class type) { this.type = type; }
abstract public Object invoke(int index, Object obj, Object[] args) throws InvocationTargetException;
public Object invoke(String name, Class[] parameterTypes, Object obj, Object[] args) throws InvocationTargetException { return invoke(getIndex(name, parameterTypes), obj, args); }
abstract public Object invoke(int index, Object obj, Object[] args) throws InvocationTargetException;
ReflectOps.method_switch(e, methods, new GetIndexCallback(e, methods));
ComplexOps.method_switch(e, methods, new GetIndexCallback(e, methods));
public FastClassEmitter(ClassVisitor v, String className, Class type) { super(v); begin_class(Constants.ACC_PUBLIC, className, FAST_CLASS, null, Constants.SOURCE_FILE); // constructor CodeEmitter e = begin_method(Constants.ACC_PUBLIC, CSTRUCT_CLASS, null); e.load_this(); e....
ReflectOps.constructor_switch(e, constructors, new GetIndexCallback(e, constructors));
ComplexOps.constructor_switch(e, constructors, new GetIndexCallback(e, constructors));
public FastClassEmitter(ClassVisitor v, String className, Class type) { super(v); begin_class(Constants.ACC_PUBLIC, className, FAST_CLASS, null, Constants.SOURCE_FILE); // constructor CodeEmitter e = begin_method(Constants.ACC_PUBLIC, CSTRUCT_CLASS, null); e.load_this(); e....
Action selectAllAction = new AbstractAction(SELECT_ALL_ACTION) { public void actionPerformed(ActionEvent e) { selectAll_actionPerformed(); } }; displayMenu.add(selectAllAction);
public ConsoleInternalFrame(NodeComponent node, ConsoleNodeListener listener, JScrollPane pane, JRadioButton statusButton, String logFileName) { super("", // title true, //resizable ...
searchNext_actionPerformed();
selectAll_actionPerformed();
public void actionPerformed(ActionEvent e) { searchNext_actionPerformed(); }
notify_actionPerformed();
search_actionPerformed();
public void actionPerformed(ActionEvent e) { notify_actionPerformed(); }
notifyNext_actionPerformed();
searchNext_actionPerformed();
public void actionPerformed(ActionEvent e) { notifyNext_actionPerformed(); }
history_actionPerformed();
notify_actionPerformed();
public void actionPerformed(ActionEvent e) { history_actionPerformed(); }
display_actionPerformed();
public void actionPerformed(ActionEvent e) { display_actionPerformed(); }
displayAll_actionPerformed();
display_actionPerformed();
public void actionPerformed(ActionEvent e) { displayAll_actionPerformed(); }
search_actionPerformed();
displayAll_actionPerformed();
public void actionPerformed(ActionEvent e) { search_actionPerformed(); }
new Insets(10, 0, 5, 5),
new Insets(0, 0, 5, 5),
public void displayAbout() { ArrayList agentNames = (ArrayList)getPropertyValue((ConfigurableComponent)node, "AgentNames"); JPanel aboutPanel = new JPanel(); aboutPanel.setLayout(new GridBagLayout()); int x = 0; int y = 0; aboutPanel.add(new JLabel("Status:"), new GridBagCons...
new Insets(10, 0, 5, 0),
new Insets(0, 0, 5, 0),
public void displayAbout() { ArrayList agentNames = (ArrayList)getPropertyValue((ConfigurableComponent)node, "AgentNames"); JPanel aboutPanel = new JPanel(); aboutPanel.setLayout(new GridBagLayout()); int x = 0; int y = 0; aboutPanel.add(new JLabel("Status:"), new GridBagCons...
private Method getDatabaseCheckMethod(String databaseCheck) { Method dbCheckMethod = null;
private void getDatabaseCheckMethod() {
private Method getDatabaseCheckMethod(String databaseCheck) { Method dbCheckMethod = null; Class[] paramClasses = { String.class }; try { dbCheckMethod = ExperimentDB.class.getMethod(databaseCheck, paramClasses); } catch (NoSuchMethodException e) { if(log.isErrorEnabled()) { log.er...
return dbCheckMethod;
private Method getDatabaseCheckMethod(String databaseCheck) { Method dbCheckMethod = null; Class[] paramClasses = { String.class }; try { dbCheckMethod = ExperimentDB.class.getMethod(databaseCheck, paramClasses); } catch (NoSuchMethodException e) { if(log.isErrorEnabled()) { log.er...
private boolean isInDatabase(String name, Method dbCheckMethod) {
private boolean isInDatabase(String name) { if (databaseCheck == null) return false; if (dbCheckMethod == null) getDatabaseCheckMethod(); if (dbCheckMethod == null) return false;
private boolean isInDatabase(String name, Method dbCheckMethod) { boolean inDatabase = false; Object[] args = new Object[1]; args[0] = name; try { Object result = dbCheckMethod.invoke(null, args); if (result instanceof Boolean) inDatabase = ((Boolean)result).booleanValue(); else ...
c = chars[i];
public Name(String name) throws IllegalArgumentException, NullPointerException { // name must not be null // this will throw a NullPointerException if it is char chars[] = name.toCharArray(); // there must be at least one character if (chars.length == 0) throw new IllegalArgumentE...
if(qLog.isDebugEnabled()) { qLog.debug("Query: " + dbQuery); }
static int deleteItems(String table, String column, String val, String qFile){ String dbQuery = "delete from "+ table.toUpperCase() +" where "+column+"="+val; int count=0; try { Connection conn = DBUtils.getConnection(qFile); if(execute){ try { Statement stmt = conn.createStatement(); //System...
if(log.isDebugEnabled()) { log.info("Deleted "+count+" items from the database"); }
static int deleteItems(String table, String column, String val, String qFile){ String dbQuery = "delete from "+ table.toUpperCase() +" where "+column+"="+val; int count=0; try { Connection conn = DBUtils.getConnection(qFile); if(execute){ try { Statement stmt = conn.createStatement(); //System...
System.out.println("dbDelete: "+dbQuery); e.printStackTrace();
if(log.isErrorEnabled()) { log.error("dbDelete: "+dbQuery, e); }
static int deleteItems(String table, String column, String val, String qFile){ String dbQuery = "delete from "+ table.toUpperCase() +" where "+column+"="+val; int count=0; try { Connection conn = DBUtils.getConnection(qFile); if(execute){ try { Statement stmt = conn.createStatement(); //System...
if(qLog.isDebugEnabled()) { qLog.debug("Query: " + dbQuery); }
static void executeQueries(ArrayList queries, String qFile) { if (!execute) return; String dbQuery = ""; try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); for (int i = 0; i < queries.size(); i++) { dbQuery = (String)queries.get(i); // ...
if(log.isDebugEnabled()) { log.debug("Deleted "+count+" items from the database"); }
static void executeQueries(ArrayList queries, String qFile) { if (!execute) return; String dbQuery = ""; try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); for (int i = 0; i < queries.size(); i++) { dbQuery = (String)queries.get(i); // ...
System.out.println("dbDelete: "+dbQuery); e.printStackTrace();
if(log.isErrorEnabled()) { log.error("dbDelete: "+dbQuery, e); }
static void executeQueries(ArrayList queries, String qFile) { if (!execute) return; String dbQuery = ""; try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); for (int i = 0; i < queries.size(); i++) { dbQuery = (String)queries.get(i); // ...
Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.db");
static String query1String(String query, Map substitutions, String qFile){ String dbQuery = DBUtils.getQuery(query, substitutions, qFile); String res = null; try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(db...
System.out.println("query1String: "+dbQuery); e.printStackTrace();
if(log.isErrorEnabled()) { log.error("query1String: "+dbQuery, e); }
static String query1String(String query, Map substitutions, String qFile){ String dbQuery = DBUtils.getQuery(query, substitutions, qFile); String res = null; try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(db...
System.out.println("DBUtils:queryHT: Got no connection");
if(log.isDebugEnabled()) { log.info("DBUtils:queryHT: Got no connection"); }
static SortedMap queryHT(String query, Map substitutions, String qFile){ String dbQuery = DBUtils.getQuery(query, substitutions, qFile); Connection conn = null; Map ht = new TreeMap(); try { conn = DBUtils.getConnection(qFile); if (conn == null) { System.out.println("DBUtils:queryHT: Got no conn...
System.out.println("queryHT: "+dbQuery); e.printStackTrace();
if(log.isErrorEnabled()) { log.error("queryHT: "+dbQuery, e); }
static SortedMap queryHT(String query, Map substitutions, String qFile){ String dbQuery = DBUtils.getQuery(query, substitutions, qFile); Connection conn = null; Map ht = new TreeMap(); try { conn = DBUtils.getConnection(qFile); if (conn == null) { System.out.println("DBUtils:queryHT: Got no conn...
System.out.println("querySet: "+dbQuery); e.printStackTrace();
if(log.isErrorEnabled()) { log.error("querySet: "+dbQuery, e); }
static Set querySet(String query, Map substitutions, String qFile){ String dbQuery = DBUtils.getQuery(query, substitutions, qFile); Set s = new HashSet(); try { Connection conn = DBUtils.getConnection(qFile); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(dbQuery);...
public Component add (String name, Component comp)
public Component add(Component comp)
public Component add (String name, Component comp) { /* FIXME */ return comp; }
return comp;
return null;
public Component add (String name, Component comp) { /* FIXME */ return comp; }
for (int i = componentCount; --i >= 0; ) components[i].addNotify();
for (int i = ncomponents; --i >= 0; ) component[i].addNotify();
public void addNotify () { for (int i = componentCount; --i >= 0; ) components[i].addNotify(); }
if (n < 0 || n >= componentCount)
if (n < 0 || n >= ncomponents)
public Component getComponent (int n) { if (n < 0 || n >= componentCount) throw new ArrayIndexOutOfBoundsException("no such component"); return components[n]; }
return components[n];
return component[n];
public Component getComponent (int n) { if (n < 0 || n >= componentCount) throw new ArrayIndexOutOfBoundsException("no such component"); return components[n]; }
Component[] result = new Component[componentCount]; if (componentCount > 0) System.arraycopy(components, 0, result, 0, componentCount);
Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents);
public Component[] getComponents() { Component[] result = new Component[componentCount]; if (componentCount > 0) System.arraycopy(components, 0, result, 0, componentCount); return result; }
public void setLayout (LayoutManager layout) { }
public void setLayout(LayoutManager mgr) { layoutMgr = mgr; }
public void setLayout (LayoutManager layout) { /* FIXME */ }
public static PropertyTree toPropertyTree(Workflow wf, String agent) { PropertyTree pt = toBasicPropertyTree(PropertyNames.WORKFLOW_OBJECT, getUIDAsString(wf.getUID()), agent); pt.put(PropertyNames.WORKFLOW_PARENT_TASK_UID, getUIDAsString(wf.getParentTask().getUID())); Enumeration tasks = wf.getTasks(); StringBuffer sb...
public static PropertyTree toPropertyTree(Object o, String agent) { return (o instanceof UniqueObject) ? toPropertyTree((UniqueObject)o, agent) : null;
public static PropertyTree toPropertyTree(Workflow wf, String agent) { PropertyTree pt = toBasicPropertyTree(PropertyNames.WORKFLOW_OBJECT, getUIDAsString(wf.getUID()), agent); pt.put(PropertyNames.WORKFLOW_PARENT_TASK_UID, getUIDAsString(wf.getParentTask().getUID())); Enumeration tasks = wf...
private boolean findServlet() {
private String findServlet() {
private boolean findServlet() { ArrayList componentData = new ArrayList(); ComponentData societyData = experiment.getSocietyComponentData(); ComponentData[] cdata = societyData.getChildren(); for (int i = 0; i < cdata.length; i++) componentData.add(cdata[i]); for (int i = 0; i < componentData.siz...
if (hasServlet((AgentComponentData)o)) return true;
AgentComponentData acd = (AgentComponentData)o; if (hasServlet(acd)) { String name = acd.getName().substring(acd.getName().lastIndexOf('.') + 1); if (log.isDebugEnabled()) { log.debug("Found GLSServlet in agent " + name); } return name; }
private boolean findServlet() { ArrayList componentData = new ArrayList(); ComponentData societyData = experiment.getSocietyComponentData(); ComponentData[] cdata = societyData.getChildren(); for (int i = 0; i < cdata.length; i++) componentData.add(cdata[i]); for (int i = 0; i < componentData.siz...
return false;
return null;
private boolean findServlet() { ArrayList componentData = new ArrayList(); ComponentData societyData = experiment.getSocietyComponentData(); ComponentData[] cdata = societyData.getChildren(); for (int i = 0; i < cdata.length; i++) componentData.add(cdata[i]); for (int i = 0; i < componentData.siz...
private String getOPlanAgentURL() {
private String getOPlanAgentURL(String agent) { if (agent == null || agent.equals("")) agent = "NCA";
private String getOPlanAgentURL() { HostComponent[] hosts = experiment.getHostComponents(); for (int i = 0; i < hosts.length; i++) { NodeComponent[] nodes = hosts[i].getNodes(); for (int j = 0; j < nodes.length; j++) { AgentComponent[] agents = nodes[j].getAgents(); for (int k = 0; k < a...
if (agents[k].getShortName().equals("NCA")) {
if (agents[k].getShortName().equals(agent)) {
private String getOPlanAgentURL() { HostComponent[] hosts = experiment.getHostComponents(); for (int i = 0; i < hosts.length; i++) { NodeComponent[] nodes = hosts[i].getNodes(); for (int j = 0; j < nodes.length; j++) { AgentComponent[] agents = nodes[j].getAgents(); for (int k = 0; k < a...
return "http:
return GLS_PROTOCOL + ":
private String getOPlanAgentURL() { HostComponent[] hosts = experiment.getHostComponents(); for (int i = 0; i < hosts.length; i++) { NodeComponent[] nodes = hosts[i].getNodes(); for (int j = 0; j < nodes.length; j++) { AgentComponent[] agents = nodes[j].getAgents(); for (int k = 0; k < a...
if (names[i].endsWith("org.cougaar.mlm.plugin.organization.GLSInitServlet"))
if (names[i].endsWith(GLS_SERVLET))
private boolean hasServlet(AgentComponentData cdata) { String[] names = cdata.getPluginNames(); for (int i = 0; i < names.length; i++) { if (names[i].endsWith("org.cougaar.mlm.plugin.organization.GLSInitServlet")) return true; } return false; }
} else
} else {
private void runTrial() { setTrialValues(); runStart = new Date(); nodeCreationInfoList = new ArrayList(); prepareToCreateNodes(); stopNodeCreation = false; startTimers(); nodeCreator = new Thread("CreateNodes") { public void run() { createNodes(); starting = false; // r...
if(findServlet()) {
final String glsAgent = findServlet(); if(glsAgent != null) {
private void runTrial() { setTrialValues(); runStart = new Date(); nodeCreationInfoList = new ArrayList(); prepareToCreateNodes(); stopNodeCreation = false; startTimers(); nodeCreator = new Thread("CreateNodes") { public void run() { createNodes(); starting = false; // r...