Project

General

Profile

« Previous | Next » 

Revision 7175

instead of generating SM and ORE maps during dataone configuration/MN registration, moved this all to the replication admin screen where we can target generation for specific nodes. That way it's more controlled as to when and where we generate DataONE required content.
https://redmine.dataone.org/issues/2740

View differences:

GenerateORE.java
44 44

  
45 45
	private static Log log = LogFactory.getLog(GenerateORE.class);
46 46
	
47
	private int serverLocation = 1;
48

  
47 49
    public boolean upgrade() throws AdminException {
48 50
        boolean success = true;
49 51
        
50 52
        // include ORE, data, for this server only
51 53
        boolean includeOre = true;
52 54
        boolean downloadData = false;
53
        int serverLocation = 1;
54 55

  
55 56
        try {
56 57
        	// get only local ids for this server
......
81 82
    	return success;
82 83
    }
83 84
    
84
    public static void main(String [] ags){
85
    public int getServerLocation() {
86
		return serverLocation;
87
	}
85 88

  
89
	public void setServerLocation(int serverLocation) {
90
		this.serverLocation = serverLocation;
91
	}
92

  
93
	public static void main(String [] ags){
94

  
86 95
        try {
87 96
        	// set up the properties based on the test/deployed configuration of the workspace
88 97
        	SortedProperties testProperties = 

Also available in: Unified diff