mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
Whitespace cleanup
This commit is contained in:
1 parent
fc831b7c99
commit
4b08d76fbf
290 files changed
+1618
-1618
No files matched your search
@@ -78,7 +78,7 @@ do_documentation()
|
||||
{
|
||||
echo "Generating javadocs..."
|
||||
|
||||
rm -rf $DOC_DIR > /dev/null 2>&1
|
||||
rm -rf $DOC_DIR > /dev/null 2>&1
|
||||
mkdir -p $DOC_DIR
|
||||
javadoc -quiet -classpath $LIB_DIR"/*" -d $DOC_DIR \
|
||||
-sourcepath ./src/ \
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
||||
@@ -239,7 +239,7 @@ public class Cluster extends PoolElement{
|
||||
{
|
||||
return delete(client, id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Replaces the cluster template.
|
||||
*
|
||||
@@ -343,7 +343,7 @@ public class Cluster extends PoolElement{
|
||||
// =================================
|
||||
// Helpers
|
||||
// =================================
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether or not the host is part of this cluster
|
||||
*
|
||||
@@ -354,7 +354,7 @@ public class Cluster extends PoolElement{
|
||||
{
|
||||
return containsResource("HOSTS", id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns whether or not the datastore is part of this cluster
|
||||
*
|
||||
|
||||
@@ -131,7 +131,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the owner/group
|
||||
*
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The template id of the target template we want to modify.
|
||||
* @param uid The new owner user ID. Set it to -1 to leave the current one.
|
||||
@@ -145,7 +145,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the template permissions
|
||||
*
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The template id of the target template.
|
||||
* @param owner_u 1 to allow, 0 deny, -1 do not change
|
||||
@@ -172,7 +172,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the permissions
|
||||
*
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The id of the target object.
|
||||
* @param octet Permissions octed , e.g. 640
|
||||
@@ -185,7 +185,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the permissions
|
||||
*
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The id of the target object.
|
||||
* @param octet Permissions octed , e.g. 640
|
||||
@@ -198,7 +198,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Creates a VM instance from a Template
|
||||
*
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param id The template id of the target template.
|
||||
* @param name A string containing the name of the VM instance, can be empty.
|
||||
@@ -322,7 +322,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the owner/group
|
||||
*
|
||||
*
|
||||
* @param uid The new owner user ID. Set it to -1 to leave the current one.
|
||||
* @param gid The new group ID. Set it to -1 to leave the current one.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
@@ -334,7 +334,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the owner
|
||||
*
|
||||
*
|
||||
* @param uid The new owner user ID.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
@@ -345,7 +345,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the group
|
||||
*
|
||||
*
|
||||
* @param gid The new group ID.
|
||||
* @return If an error occurs the error message contains the reason.
|
||||
*/
|
||||
@@ -356,7 +356,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Changes the template permissions
|
||||
*
|
||||
*
|
||||
* @param owner_u 1 to allow, 0 deny, -1 do not change
|
||||
* @param owner_m 1 to allow, 0 deny, -1 do not change
|
||||
* @param owner_a 1 to allow, 0 deny, -1 do not change
|
||||
@@ -402,7 +402,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Creates a VM instance from a Template
|
||||
*
|
||||
*
|
||||
* @param name A string containing the name of the VM instance, can be empty.
|
||||
* @param onHold False to create this VM in pending state, true on hold
|
||||
* @param template User provided Template to merge with the one
|
||||
@@ -416,7 +416,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Creates a VM instance from a Template
|
||||
*
|
||||
*
|
||||
* @param name A string containing the name of the VM instance, can be empty.
|
||||
* @return If successful the message contains the VM Instance ID.
|
||||
*/
|
||||
@@ -427,7 +427,7 @@ public class Template extends PoolElement
|
||||
|
||||
/**
|
||||
* Creates a VM instance from a Template
|
||||
*
|
||||
*
|
||||
* @return If successful the message contains the VM Instance ID.
|
||||
*/
|
||||
public OneResponse instantiate()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -104,7 +104,7 @@ public class HostTest
|
||||
{
|
||||
res = host.info();
|
||||
assertTrue( res.getErrorMessage(), !res.isError() );
|
||||
|
||||
|
||||
// assertTrue( host.getId().equals("0") );
|
||||
assertTrue( host.id() >= 0 );
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ public class SecurityGroupTest
|
||||
assertTrue( sg.xpath("PERMISSIONS/OTHER_M").equals("1") );
|
||||
assertTrue( sg.xpath("PERMISSIONS/OTHER_A").equals("1") );
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void attributes()
|
||||
{
|
||||
|
||||
@@ -21,9 +21,9 @@ import org.w3c.dom.Node;
|
||||
|
||||
public class SessionTest {
|
||||
|
||||
@Test
|
||||
public void createSession()
|
||||
{
|
||||
@Test
|
||||
public void createSession()
|
||||
{
|
||||
Client oneClient = null;
|
||||
try
|
||||
{
|
||||
@@ -35,12 +35,12 @@ public class SessionTest {
|
||||
}
|
||||
|
||||
assertNotNull(oneClient);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void wrong_url()
|
||||
{
|
||||
Client oneClient = null;
|
||||
@Test
|
||||
public void wrong_url()
|
||||
{
|
||||
Client oneClient = null;
|
||||
try
|
||||
{
|
||||
// The HTTP is misspelled
|
||||
@@ -52,7 +52,7 @@ public class SessionTest {
|
||||
}
|
||||
|
||||
assertNull("Client should complain about misspelled url", oneClient);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void version()
|
||||
|
||||
@@ -228,7 +228,7 @@ public class TemplateTest
|
||||
assertTrue( template.xpath("PERMISSIONS/OTHER_M").equals("1") );
|
||||
assertTrue( template.xpath("PERMISSIONS/OTHER_A").equals("1") );
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void attributes()
|
||||
{
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2002-2015, OpenNebula Project (OpenNebula.org), C12G Labs
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@@ -172,7 +172,7 @@ public class VirtualNetworkTest
|
||||
@Test
|
||||
public void updateAr()
|
||||
{
|
||||
String new_template =
|
||||
String new_template =
|
||||
"AR = [ AR_ID = 0, ATT2 = NEW_VAL, ATT3 = VAL3 ]";
|
||||
|
||||
res = vnet.updateAr(new_template);
|
||||
|
||||
Reference in new issue
Block a user