rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
for(int i=0; i < children.length; i++) {
for(int i=children.length-1; i >= 0; i--) {
public ComponentData addComponentData(ComponentData data) { ComponentData[] children = data.getChildren(); for(int i=0; i < children.length; i++) { ComponentData child = children[i]; if(child.getType() == ComponentData.AGENT) { Iterator iter = ((Collection)getDescendentsOfClass(AgentComponent.c...
data.setChild(i, nchild);
int idx; if((idx = data.getChildIndex(child)) != -1 ) { data.setChild(idx, nchild); }
public ComponentData addComponentData(ComponentData data) { ComponentData[] children = data.getChildren(); for(int i=0; i < children.length; i++) { ComponentData child = children[i]; if(child.getType() == ComponentData.AGENT) { Iterator iter = ((Collection)getDescendentsOfClass(AgentComponent.c...
} else {
} else if( child.getType() == ComponentData.NODE || child.getType() == ComponentData.HOST ) {
public ComponentData addComponentData(ComponentData data) { ComponentData[] children = data.getChildren(); for(int i=0; i < children.length; i++) { ComponentData child = children[i]; if(child.getType() == ComponentData.AGENT) { Iterator iter = ((Collection)getDescendentsOfClass(AgentComponent.c...
data = addComponentData(child);
addComponentData(child);
public ComponentData addComponentData(ComponentData data) { ComponentData[] children = data.getChildren(); for(int i=0; i < children.length; i++) { ComponentData child = children[i]; if(child.getType() == ComponentData.AGENT) { Iterator iter = ((Collection)getDescendentsOfClass(AgentComponent.c...
return alibID();
return aLibID;
public String getAlibID() { return alibID(); }
this.alibID = alibID;
this.aLibID = alibID;
public void setAlibID(String alibID) { this.alibID = alibID; }
nchild.setParent(child.getParent());
public ComponentData addComponentData(ComponentData data) { ComponentData[] children = data.getChildren(); for(int i=0; i < children.length; i++) { ComponentData child = children[i]; if(child.getType() == ComponentData.AGENT) { Iterator iter = ((Collection)getDescendentsOfClass(AgentComponent.c...
*/
public static Test suite() throws Exception{ System.getProperties().list(System.out); TestSuite suite = new TestSuite(); //security // proxy suite.addTest(TestEnhancer.suite()); suite.addTest(TestProxy.suite()); suite.addTest(TestDispatch...
Message.debug("connection to "+getHost()+" closed");
private synchronized void closeConnection() { if (_connectionCleaner != null) { _connectionCleaner.interrupt(); } if (_errorsReader != null) { _errorsReader.interrupt(); } try { _process.destroy(); } catch (Exception ex) {} try { _in.close(); } catch (Exception e) {} try { _err.close(); } catch (Ex...
_errorsLastUpdateTime = System.currentTimeMillis();
private void exec(String command) throws IOException { Message.debug("launching '"+command+"'"); _process = Runtime.getRuntime().exec(command); _in = new InputStreamReader(_process.getInputStream()); _err = new InputStreamReader(_process.getErrorStream()); _out = new PrintWriter(_process.getOutputStream()); _e...
_errorsLastUpdateTime = System.currentTimeMillis();
public void run() { int c; try { while (_err != null && (c = _err.read()) != -1) { _errors.append((char)c); } } catch (IOException e) { } }
try { int c; while ((c = _in.read()) != -1) { response.append((char)c); if (response.length() >= PROMPT.length() && response.substring(response.length() - PROMPT.length(), response.length()).equals(PROMPT)) { response.setLength(response.length() - PROMPT.length()); break; } } if (_errors.length() > 0) { if (sendErrorAs...
synchronized (VsftpRepository.this) { try { int c; boolean getPrompt = false; for (int attempts = 0; !getPrompt && attempts < 5; attempts++) { while ((c = _in.read()) != -1) { attempts = 0; response.append((char)c); if (response.length() >= PROMPT.length() && response.substring(response.length() - PROMPT.length(), res...
public void run() { try { int c; while ((c = _in.read()) != -1) { response.append((char)c); if (response.length() >= PROMPT.length() && response.substring(response.length() - PROMPT.length(), response.length()).equals(PROMPT)) { response.setLength(response.length() - PROMPT.length(...
experimentBuilder.setModified(true);
public void treeNodesChanged(TreeModelEvent e) { reconcileExperimentNodes(); }
experimentBuilder.setModified(true);
public void treeNodesInserted(TreeModelEvent e) { reconcileExperimentNodes(); }
experimentBuilder.setModified(true);
public void treeNodesRemoved(TreeModelEvent e) { reconcileExperimentNodes(); }
experimentBuilder.setModified(true);
public void treeStructureChanged(TreeModelEvent e) { reconcileExperimentNodes(); }
public UnboundPropertyBuilder(Experiment experiment) {
public UnboundPropertyBuilder(Experiment experiment, ExperimentBuilder experimentBuilder) {
public UnboundPropertyBuilder(Experiment experiment) { this.experiment = experiment; isEditable = experiment.isEditable(); isRunnable = experiment.isRunnable(); root = new DefaultMutableTreeNode(); model = new DefaultTreeModel(root); societies = new DefaultMutableTreeNode(ExperimentTree.SOCIETIES); ...
this.experimentBuilder = experimentBuilder;
public UnboundPropertyBuilder(Experiment experiment) { this.experiment = experiment; isEditable = experiment.isEditable(); isRunnable = experiment.isRunnable(); root = new DefaultMutableTreeNode(); model = new DefaultTreeModel(root); societies = new DefaultMutableTreeNode(ExperimentTree.SOCIETIES); ...
super(new SimpleName(tail));
super(SimpleName.getSimpleName(tail));
public ConcatenatedName(CompositeName head, String tail) { super(new SimpleName(tail)); parentName = head; }
private static void debug(String msg)
static void debug(String msg)
private static void debug(String msg) { System.err.print(">> PolicyFile: "); System.err.println(msg); }
lastIndex=(Number)lastIndex.valueForKey(indexKey());
lastIndex=(Number)lastObject.valueForKey(indexKey());
public WOComponent selectAction() { EOEnterpriseObject _localEoToAddToRelationship = _eoToAddToRelationship != null ? EOUtilities.localInstanceOfObject(editingContext(),_eoToAddToRelationship) : null; if (_localEoToAddToRelationship != null) { // we create a join EO EOEnte...
validationFailedWithException(ex, anObject, propertyKey());
public Object validateTakeValueForKeyPath (Object anObject, String aPath) throws NSValidation.ValidationException { Number number = null; try { if (anObject instanceof String) { number = (Number)numberFormatValueForString((String)anObject); } else if (anObject!=nul...
if (selected == null || selected.length > 1)
if (selected == null || selected.length != 1)
getSelectedIndex(){ if (peer != null) { ListPeer l = (ListPeer) peer; selected = l.getSelectedIndexes (); } if (selected == null || selected.length > 1) return -1; return selected[0];}
if(log.isDebugEnabled()) { log.debug("getPropertyInfo, result is null"); }
private PropertyInfo getPropertyInfo(String pgName, String propName) throws SQLException { if(log.isDebugEnabled()) { log.debug("getPropertyInfo("+pgName+", "+propName+")"); } PropertyKey key = new PropertyKey(pgName, propName); PropertyInfo result = (PropertyInfo) propertyInfos.get(k...
if(log.isDebugEnabled()) { log.debug("getPropertyInfo, found a result"); }
private PropertyInfo getPropertyInfo(String pgName, String propName) throws SQLException { if(log.isDebugEnabled()) { log.debug("getPropertyInfo("+pgName+", "+propName+")"); } PropertyKey key = new PropertyKey(pgName, propName); PropertyInfo result = (PropertyInfo) propertyInfos.get(k...
if(log.isDebugEnabled()) { log.debug("Adding Old Arg: " + rs.getString(1)); } oldArgs.add(new Argument(rs.getString(1), rs.getFloat(2)));
oldArgs.add(new Argument(rs.getString(1), rs.getFloat(2)));
private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); boolean isAdded = false; addComponentDataSubstitutions(data)...
if(log.isDebugEnabled()) { log.debug("PopulateDb:populate, Parent is not null"); }
private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); boolean isAdded = false; addComponentDataSubstitutions(data)...
if(log.isDebugEnabled()) { log.debug("PopulateDb:populate; Param: " + params[i]); }
private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); boolean isAdded = false; addComponentDataSubstitutions(data)...
if(log.isDebugEnabled()) { log.debug("excess: " + excess); }
private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); boolean isAdded = false; addComponentDataSubstitutions(data)...
if(log.isDebugEnabled()) { log.debug("Adding oldArg: " + arg); }
private boolean populate(ComponentData data, float insertionOrder, String assemblyId) throws SQLException { boolean result = false; ComponentData parent = data.getParent(); String id = getComponentAlibId(data); boolean isAdded = false; addComponentDataSubstitutions(data)...
if(log.isDebugEnabled()) { log.debug("isAdded is true!"); }
private void populateAgent(ComponentData data, boolean isAdded) throws SQLException { if(log.isDebugEnabled()) { log.debug("populateAgent: " + data.getName()); } AgentAssetData assetData = data.getAgentAssetData(); if (assetData == null) return; substitutions.put(":agent_...
if(log.isDebugEnabled()) { log.debug("Prop: " + prop.getName() + "::"+prop.toString()); }
private void populateAgent(ComponentData data, boolean isAdded) throws SQLException { if(log.isDebugEnabled()) { log.debug("populateAgent: " + data.getName()); } AgentAssetData assetData = data.getAgentAssetData(); if (assetData == null) return; substitutions.put(":agent_...
if(log.isDebugEnabled()) { log.debug("Adding value: " + values[k]); }
private void populateAgent(ComponentData data, boolean isAdded) throws SQLException { if(log.isDebugEnabled()) { log.debug("populateAgent: " + data.getName()); } AgentAssetData assetData = data.getAgentAssetData(); if (assetData == null) return; substitutions.put(":agent_...
suite.addTest(TestInterface.suite());
public static Test suite() { // System.setSecurityManager( new java.rmi.RMISecurityManager()); System.getProperties().list(System.out); TestSuite suite = new TestSuite(); suite.addTest(TestEnhancer.suite()); suite.addTest(TestMetaClass.suite()); suite.addTest...
suite.addTest(TestLookupDelegator.suite());
suite.addTest(TestDispatcher.suite());
public static Test suite() { // System.setSecurityManager( new java.rmi.RMISecurityManager()); System.getProperties().list(System.out); TestSuite suite = new TestSuite(); suite.addTest(TestEnhancer.suite()); suite.addTest(TestMetaClass.suite()); suite.addTest...
public static List getLocalThread(
private static List getLocalThread(
public static List getLocalThread( AgentMapping am, boolean isDown, String agentName, List uids, int limit) { try { // get host and port String host = am.getHost(agentName); int port = am.getPort(agentName); // create URL// String surl = // "http://"+ho...
g.clearRect(0, 0, width, height);
public void update(Graphics g) { super.update(g); }
if (! isValid())
if (! isValid() && peer != null)
public void validate() { synchronized (getTreeLock ()) { if (! isValid()) { validateTree(); } } }
InputStream in = getClass().getResource("words.txt").openStream();
InputStream in = getClass().getResourceAsStream("words.txt");
private Object[] getTestData() throws IOException { InputStream in = getClass().getResource("words.txt").openStream(); BufferedReader r = new BufferedReader(new InputStreamReader(in)); List list = new ArrayList(); String line; int c = 0; while ((line = r.readLine()) != null...
exLog.warn("JDBC Exception occured: " + throwable, throwable);
public boolean databaseContextShouldHandleDatabaseException(EODatabaseContext databaseContext, Throwable throwable) { if(exLog.isDebugEnabled()) { exLog.debug("JDBC Exception occured: " + throwable, throwable); } exLog.warn("JDBC Exception occured: " + throwable, throwable); r...
if (adaptorCategory.isDebugEnabled() && NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupSQLGeneration)) {
if (adaptorCategory.isDebugEnabled() && !NSLog.debugLoggingAllowedForGroups(NSLog.DebugGroupSQLGeneration)) {
public static void configureAdaptorContextRapidTurnAround(Object observer) { if (!_isConfigureAdaptorContextRapidTurnAround) { // This allows enabling from the log4j system. adaptorCategory = Category.getInstance("er.transaction.adaptor.EOAdaptorDebugEnabled"); sharedEOAdapto...
} else { replaceConfigurationWildcards();
private void checkConfigurations() { if (_md.getConfigurations().length == 0) { _md.addConfiguration(new Configuration("default")); } else { replaceConfigurationWildcards(); } }
replaceConfigurationWildcards();
private void parse(URL xmlURL, Resource res, boolean validate) throws ParseException, IOException { try { setResource(res); URL schemaURL = validate?getClass().getResource("ivy.xsd"):null; XMLHelper.parse(xmlURL, schemaURL, this); checkConfigurations(); ...
name = organizer.getUniqueSocietyName(name, true);
name = organizer.getUniqueSocietyName(name, false);
protected SocietyComponent createSocietyFromFile() { // display file chooser to allow user to select file that defines society JFileChooser chooser = new JFileChooser(SocietyFinder.getInstance().getPath()); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); File file = null; Societ...
if (argCount > 5) il.append(new BIPUSH((byte) argCount)); else il.append(new ICONST((byte) argCount));
il.append(getIntConst(argCount,cp));
static int createArgArray( InstructionList il, InstructionFactory factory, ConstantPoolGen cp, Type[] args) { int argCount = args.length; if (argCount > 5) il.append(new BIPUSH((byte) argCount)); else il.append(new ICONST((byte) argCount)); il.ap...
if (i > 5) il.append(new BIPUSH((byte) i)); else il.append(new ICONST((byte) i));
il.append(getIntConst( i, cp ) );
static int createArgArray( InstructionList il, InstructionFactory factory, ConstantPoolGen cp, Type[] args) { int argCount = args.length; if (argCount > 5) il.append(new BIPUSH((byte) argCount)); else il.append(new ICONST((byte) argCount)); il.ap...
"findClass", cg.getClassName(), il, cp);
FIND_CLASS, cg.getClassName(), il, cp);
static MethodGen generateFindClass( ClassGen cg, ConstantPoolGen cp ){ // generates: /* static private Class findClass(String name ) throws Exception{ try{ return Class.forName(name); }catch( java.lang.ClassNotFoundException cne ){ throw new java.lan...
"findClass","(Ljava/lang/String;)Ljava/lang/Class;")
FIND_CLASS,"(Ljava/lang/String;)Ljava/lang/Class;")
static void loadClass(InstructionList il, ClassGen cg, ConstantPoolGen cp,Class cls ){ Instruction instruction = null; String cln = "Ljava/lang/Class;"; String t = "TYPE"; if(cls == int.class){ instruction = new GETSTATIC( cp.addFieldref(Integer....
EOEntity e = EOModelGroup.defaultGroup().entityNamed(name);
EOEntity e = ERXEOAccessUtilities.entityNamed(null,name);
public void classDescriptionNeededForEntityName(NSNotification n) { log.debug("classDescriptionNeededForEntityName: " + (String)n.object()); String name = (String)n.object(); EOEntity e = EOModelGroup.defaultGroup().entityNamed(name); //FIXME: This isn't the best way to get the ...
ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey((EOEnterpriseObject)o, eo, key);
ERXEOControlUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey((EOEnterpriseObject)o, eo, key);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; EOEditingContext ec = eo.editingContext(); if(stringValue.charAt(0) == '@') { // computed key if(stringValue.equals("@new")) { EOClassDescription cd = ...
ERXUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey((EOEnterpriseObject)e.nextElement(), eo, key);
ERXEOControlUtilities.addObjectToObjectOnBothSidesOfRelationshipWithKey((EOEnterpriseObject)e.nextElement(), eo, key);
public void setValueInObject(EOEnterpriseObject eo) { Object defaultValue = this.stringValue; EOEditingContext ec = eo.editingContext(); if(stringValue.charAt(0) == '@') { // computed key if(stringValue.equals("@new")) { EOClassDescription cd = ...
public void checkEntity() {
protected void checkEntity() {
public void checkEntity() { if(_entity.model() == null) { try { EOEntity registeredEntity = EOModelGroup.defaultGroup().entityNamed(_entity.name()); if(registeredEntity != null) { _entity = registeredEntity; } else { ...
EOEntity registeredEntity = EOModelGroup.defaultGroup().entityNamed(_entity.name());
EOEntity registeredEntity = ERXEOAccessUtilities.entityNamed(null,_entity.name());
public void checkEntity() { if(_entity.model() == null) { try { EOEntity registeredEntity = EOModelGroup.defaultGroup().entityNamed(_entity.name()); if(registeredEntity != null) { _entity = registeredEntity; } else { ...
model = (EOModel)EOModelGroup.defaultGroup().models().lastObject();
model = (EOModel)ERXEOAccessUtilities.modelGroup(null).models().lastObject();
public void checkEntity() { if(_entity.model() == null) { try { EOEntity registeredEntity = EOModelGroup.defaultGroup().entityNamed(_entity.name()); if(registeredEntity != null) { _entity = registeredEntity; } else { ...
return (String)colorDescriptions.get(statusColor);
String s = (String)colorDescriptions.get(statusColor); if (s == null) s = ""; return s;
public static String getStatusColorDescription(Color statusColor) { if (colorDescriptions == null) { colorDescriptions = new Hashtable(); colorDescriptions.put(CSMARTConsole.busyStatus, "extremely busy"); colorDescriptions.put(CSMARTConsole.highBusyStatus, "very busy"); colorDescriptions.put(CS...
selectedPluginsListViewer.setInput(selectedPlugins);
selectedPlugins = getSetPlugins(); selectedPluginsListViewer.setInput(selectedPlugins);
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FormLayout containerLayout = new FormLayout(); container.setLayout(containerLayout); activateLabel = new Label(container, SWT.NULL); FormData activateLabelPosition = new FormData(); activateLabelPosition.wid...
MessageHandler.setScreenLogger(fopLogger);
public void transform() throws ilTransformerException { try { Log4JLogger fopLogger = new Log4JLogger(logger); ByteArrayOutputStream out = new ByteArrayOutputStream(); Driver driver = new Driver(); logger.info("Started driver"); ...
log.debug("before: "+input.length+", after "+compressedData.length+", time: "+(System.currentTimeMillis() - start));
if (log.isDebugEnabled()) { log.debug("before: "+input.length+", after "+compressedData.length+", time: "+(System.currentTimeMillis() - start)); }
public WOResponse dispatchRequest(WORequest request) { WOResponse response = null; try { if(useComponentActionRedirection()) { ERXComponentActionRedirector redirector = ERXComponentActionRedirector.redirectorForRequest(request); if(redirector == null) { ...
expandBranch(newNode); scrollPathToVisible(new TreePath(newNode.getPath()));
protected DefaultMutableTreeNode addNode(DefaultMutableTreeNode node, String name, String type, String communityName) { DefaultTreeModel model = (DefaultTreeModel)getModel(); DefaultMutableTreeNode root = (DefaultMutableTreeNode...
EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName());
EOEntity entity = ERXEOAccessUtilities.entityNamed(editingContext(), entityName());
public NSArray primaryKeyAttributeNames() { EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName()); return entity.primaryKeyAttributeNames(); }
Object pk=rawPrimaryKeyInTransaction(); if(pk == null) return null; if(pk instanceof String || pk instanceof Number) { return pk.toString(); } return NSPropertyListSerialization.stringFromPropertyList(pk);
return ERXEOControlUtilities._stringForPrimaryKey(rawPrimaryKeyInTransaction());
public String primaryKeyInTransaction() { Object pk=rawPrimaryKeyInTransaction(); if(pk == null) return null; if(pk instanceof String || pk instanceof Number) { return pk.toString(); } return NSPropertyListSerialization.stringFromPropertyList(pk); }
EOEntity entity = EOUtilities.entityNamed(ec, entityName()); EOQualifier qual = entity.qualifierForPrimaryKey(primaryKeyDictionary(false)); EOFetchSpecification fetchSpec = new EOFetchSpecification(entityName(), qual, null); fetchSpec.setRefreshesRefetchedObjects(true); NSArray results = ec.objectsWithFetchSpecificatio...
EOEntity entity = ERXEOAccessUtilities.entityNamed(ec, entityName()); EOQualifier qual = entity.qualifierForPrimaryKey(primaryKeyDictionary(false)); EOFetchSpecification fetchSpec = new EOFetchSpecification(entityName(), qual, null); fetchSpec.setRefreshesRefetchedObjects(true); NSArray results = ec.objectsWithFetchSpe...
public ERXGenericRecord refetchObjectFromDBinEditingContext(EOEditingContext ec){ EOEntity entity = EOUtilities.entityNamed(ec, entityName()); EOQualifier qual = entity.qualifierForPrimaryKey(primaryKeyDictionary(false)); EOFetchSpecification fetchSpec = new EOFetchSpecification(entityName(), qual, null); fet...
EOEntity entity=EOModelGroup.defaultGroup().entityNamed(entityName);
EOEntity entity=ERXEOAccessUtilities.entityNamed(null, entityName);
private static synchronized NSArray stringAttributeListForEntityNamed(String entityName) { // FIXME: this will need to be synchronized if you go full-MT NSArray result=(NSArray)_attributeKeysPerEntityName.objectForKey(entityName); if (result==null) { // FIXME: Bad way of getting the ...
}
} else if (selected.isAgent()) { hostAgentMenu.show(hostTree, e.getX(), e.getY()); }
private void displayHostTreeMenu(MouseEvent e) { // the path to the node the mouse is pointing at TreePath selPath = hostTree.getPathForLocation(e.getX(), e.getY()); if (selPath == null) return; // if the mouse is pointing at a selected node // and all selected nodes are of the same type, then act...
hostAgentMenu.add(showComponentsMenuItem);
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.HORIZONTAL_SPLIT); // tree of hosts and assigned nodes and agents DefaultMutableTreeNode root = new DefaultMutab...
displayArguments(viewOnlyMenu.getInvoker());
showAgentComponents();
public void actionPerformed(ActionEvent e) { displayArguments(viewOnlyMenu.getInvoker()); }
debugProperties();
private Config() { configureLog4j(); configureProperties(); validateProperties(); }
+ " gcj-dbtool -p - Print default database name\n"
private static void usage(PrintStream out) { out.println ("gcj-dbtool: Manipulate gcj map database files\n" + "\n" + " Usage: \n" + " gcj-dbtool -n file.gcjdb [size] - Create a new gcj map database\n" + " gcj-dbtool -a file.gcjdb file.jar file.so\n" + " - A...
+ " To add to dest, include dest in the list of sources");
+ " To add to dest, include dest in the list of sources\n" + " gcj-dbtool -p - Print default database name");
private static void usage(PrintStream out) { out.println ("gcj-dbtool: Manipulate gcj map database files\n" + "\n" + " Usage: \n" + " gcj-dbtool -n file.gcjdb [size] - Create a new gcj map database\n" + " gcj-dbtool -a file.gcjdb file.jar file.so\n" + " - A...
public RealWorldEvent getParent();
RealWorldEvent getParent();
public RealWorldEvent getParent();
public boolean isBusyType();
boolean isBusyType();
public boolean isBusyType();
public boolean isDownType();
boolean isDownType();
public boolean isDownType();
public boolean isWireType();
boolean isWireType();
public boolean isWireType();
Vector agentURLs = new Vector(); getCommunities();
getCommunities();
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
PSPId + "?" + PropertyNames.PLAN_OBJECTS_TO_IGNORE + "=" + filterValue, null); if (objectsFromPSP == null)
baseURL, null, filterLimit); int nObjs = ((objectsFromPSP != null) ? objectsFromPSP.size() : (0)); if (nObjs <= 0) {
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
int duplicates = 0; Vector UIDs = new Vector(); for (Iterator i = objectsFromPSP.iterator(); i.hasNext(); ) { PropertyTree properties = (PropertyTree)i.next();
int nDuplicates = 0; Set UIDs = new HashSet(); Iterator iter = objectsFromPSP.iterator(); for (int i = 0; i < nObjs; i++) { PropertyTree properties = (PropertyTree)iter.next();
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
if (!UIDs.contains(UID)) {
if (!(UIDs.contains(UID))) {
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
String communityName = ""; if (agentName != null) communityName = (String)agentToCommunity.get(agentName);
String communityName = ((agentName != null) ? ((String)agentToCommunity.get(agentName)) : "");
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
duplicates++;
nDuplicates++; }
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
} } int n = filter.getNumberOfObjects(); if (nodeObjects.size() > n) nodeObjects.setSize(n);
}
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
if (filterValue == null || filterValue.indexOf(PropertyNames.DIRECT_OBJECT) == -1)
if (!(filteringDirectObjects)) {
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
}
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i...
String UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID != null) { String agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName != null) makeThreadGraph(UID, agentName, true);
String UID; String agentName; int limit; boolean isDown; UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID == null) { return;
private void makeThreadGraph() { String UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID != null) { String agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName != null) makeThreadGraph(UID, agentName, true); // default to down } }
agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName == null) { return; } String sLimit = JOptionPane.showInputDialog("Limit (e.g. 200): "); if (sLimit == null) { return; } try { limit = Integer.parseInt(sLimit); } catch (NumberFormatException nfe) { System.err.println("Illegal number: "+sLimit); retu...
private void makeThreadGraph() { String UID = JOptionPane.showInputDialog("Plan Object UID: "); if (UID != null) { String agentName = JOptionPane.showInputDialog("Agent name: "); if (agentName != null) makeThreadGraph(UID, agentName, true); // default to down } }
VariableResolverFactory.getResolver(name, new WrapperComponentManager(m_manager)), VariableResolverFactory.getResolver(value, new WrapperComponentManager(m_manager)));
VariableResolverFactory.getResolver(name, m_manager), VariableResolverFactory.getResolver(value, m_manager));
private final Map getParameters(final Configuration configuration) throws ConfigurationException { final Configuration[] children = configuration.getChildren("parameter"); if (children.length == 0) { return null; } final Map parameters = new HashMap(); f...
if (! dateformats_initialized) initializeDateFormats();
public long getHeaderFieldDate(String name, long val) { String str = getHeaderField(name); if (str != null) { Date date; if ((date = dateFormat1.parse(str, new ParsePosition(0))) != null) val = date.getTime(); else if ((date = dateFormat2.parse(str, new ParsePosition(0))) != null) val = date.ge...
if (society != null && CSMART.isSocietyInEditor(society))
if (society != null && !society.isEditable()) {
private static boolean isActionAllowedOnExperiment(String action, Organizer organizer, Experiment experiment) { if (action.equals(DUPLICATE_ACTION)) return true; SocietyComponent society = experiment.get...
if (CSMART.isRecipeInEditor(recipes[i]))
if (!recipes[i].isEditable()) {
private static boolean isActionAllowedOnExperiment(String action, Organizer organizer, Experiment experiment) { if (action.equals(DUPLICATE_ACTION)) return true; SocietyComponent society = experiment.get...
}
private static boolean isActionAllowedOnExperiment(String action, Organizer organizer, Experiment experiment) { if (action.equals(DUPLICATE_ACTION)) return true; SocietyComponent society = experiment.get...
if (!recipe.isEditable()) return false;
private static boolean isActionAllowedOnRecipe(String action, Organizer organizer, RecipeComponent recipe) { if (isNodeInExperiment(organizer)) { if (action.equals(DUPLICATE_ACTION) || action.equals(DELETE...
action.equals(DELETE_ACTION))
action.equals(DELETE_ACTION) || action.equals(RUN_ACTION))
private static boolean isActionAllowedOnSociety(String action, Organizer organizer, SocietyComponent society) { if (isNodeInExperiment(organizer)) { if (action.equals(DUPLICATE_ACTION) || action.equals(B...
D2WContext newContext=new D2WContext(session); newContext.takeValueForKey(context.task(),"task"); newContext.takeValueForKey("csv","forcedSubTask"); newContext.takeValueForKey(context.valueForKey("pageName"),"existingPageName"); newContext.takeValueForKey(context.valueForKey("subTask"),"existingSubTask"); newContext....
return ERD2WFactory.erFactory().csvExportPageForD2WContext(context, session);
public static WOComponent csvExportPageForD2WContext(D2WContext context, WOSession session) { D2WContext newContext=new D2WContext(session); newContext.takeValueForKey(context.task(),"task"); // not using subTask directly here because the cache mechanism relies on being able to compute wether t...
public static WOComponent errorPageForException(Throwable e, WOSession s) { ErrorPageInterface epi=D2W.factory().errorPage(s); epi.setMessage(ERXUtilities.stackTrace(e)); epi.setNextPage(s.context().page()); return (WOComponent)epi;
public static WOComponent errorPageForException(Throwable e, WOSession session) { return ERD2WFactory.erFactory().errorPageForException(e, session);
public static WOComponent errorPageForException(Throwable e, WOSession s) { ErrorPageInterface epi=D2W.factory().errorPage(s); epi.setMessage(ERXUtilities.stackTrace(e)); epi.setNextPage(s.context().page()); return (WOComponent)epi; }
D2WContext newContext=new D2WContext(session); newContext.setTask(task); newContext.setEntity(EOModelGroup.defaultGroup().entityNamed(entityName)); newContext.takeValueForKey(subtask, "subTask"); WOComponent result=WOApplication.application().pageWithName((String)newContext.valueForKey("pageName"),session.context()); (...
return ERD2WFactory.erFactory().pageForTaskSubTaskAndEntityNamed(task, subtask, entityName, session);
public static WOComponent pageForTaskSubTaskAndEntityNamed(String task, String subtask, String entityName, WOSession session) { D2WContext newContext=new D2WContext(session); newContext.setTask(task); newContext.setEntity(EOModelGroup.defaultGroup().entityNamed(entityName)); newContext.t...
D2WContext newContext=new D2WContext(session); String newTask=context.task().equals("edit") ? "inspect" : context.task(); newContext.takeValueForKey(newTask,"task"); newContext.takeValueForKey("printerFriendly","forcedSubTask"); newContext.takeValueForKey(context.valueForKey("pageName"),"existingPageName"); newConte...
return ERD2WFactory.erFactory().printerFriendlyPageForD2WContext(context, session);
public static WOComponent printerFriendlyPageForD2WContext(D2WContext context, WOSession session) { D2WContext newContext=new D2WContext(session); String newTask=context.task().equals("edit") ? "inspect" : context.task(); newContext.takeValueForKey(newTask,"task"); // not using subTask d...
public static QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession s) { WOComponent result= pageForTaskSubTaskAndEntityNamed("query", "fetchSpecification", entityName,s); result.takeValueForKey(fsName, "fetchSpecificationName"); return (QueryPageInterface)result;
public static QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession session) { return ERD2WFactory.erFactory().queryPageWithFetchSpecificationForEntityNamed(fsName, entityName, session);
public static QueryPageInterface queryPageWithFetchSpecificationForEntityNamed(String fsName, String entityName, WOSession s) { WOComponent result= pageForTaskSubTaskAndEntityNamed("query", "fetchSpecification", entityName,s); result.takeValueForKey(fsName, "fetchSpecificationName"); return (Qu...
response.append(ERXFileUtilities.stringFromInputStream(p.getInputStream()));
response.append(isr.getResult());
public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, ERXTimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer...
if (p != null && exitValue == 0) { InputStream is = p.getErrorStream(); if (is != null) error = ERXFileUtilities.stringFromInputStream(is); if (log.isDebugEnabled()) { log.debug("response = " + response); log.debug("error = " + error); } freeProcessResources(p); }
freeProcessResources(p);
public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, ERXTimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer...
return new Result(response.toString(), error);
return new Result(isr.getResult(), esr.getResult());
public final static Result execute(String[] command, String[] envp, File dir, long timeout) throws IOException, ERXTimeoutException { File outputFile = null; Runtime rt = Runtime.getRuntime(); Process p = null; int exitValue = 0; StringBuffer response = new StringBuffer...
minimumCapacity = Math.max(minimumCapacity, value.length*2+2);
int max = (minimumCapacity > value.length ? value.length*2+2 : value.length); minimumCapacity = Math.max(minimumCapacity, max);
public synchronized void ensureCapacity (int minimumCapacity) { if (shared || minimumCapacity > value.length) { minimumCapacity = Math.max(minimumCapacity, value.length*2+2); char[] nb = new char[minimumCapacity]; System.arraycopy(value, 0, nb, 0, count); value = nb; shared = false; } }