org.mmbase.remotepublishing
Class CloudManager

java.lang.Object
  extended byorg.mmbase.remotepublishing.CloudManager

public final class CloudManager
extends java.lang.Object

class using the cloud builder nodes to help identify clouds


Field Summary
(package private) static org.mmbase.util.logging.Logger log
           
 
Method Summary
static org.mmbase.bridge.Cloud getCloud(org.mmbase.bridge.Cloud nameServerCloud, int number)
           
static org.mmbase.bridge.Cloud getCloud(org.mmbase.bridge.Cloud nameServerCloud, java.lang.String name)
           
static org.mmbase.bridge.Cloud getCloudByAlias(org.mmbase.bridge.Cloud nameServerCloud, java.lang.String alias)
           
static int getCloudNumber(org.mmbase.bridge.Cloud nameServerCloud, org.mmbase.bridge.Cloud cloud)
          gets the node-number of the remote cloud in the list in the cloud-builder this routine depends on unique and consistent names for clouds in the cloud builder see also applications/Publisher/builders/cloud.xml
static int getCloudNumber(org.mmbase.bridge.Cloud nameServerCloud, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.mmbase.util.logging.Logger log
Method Detail

getCloud

public static org.mmbase.bridge.Cloud getCloud(org.mmbase.bridge.Cloud nameServerCloud,
                                               java.lang.String name)
                                        throws org.mmbase.bridge.BridgeException
Parameters:
nameServerCloud - the cloud containing the cloud nodes to use
name - the name of the cloud ( in the cloud list)
Throws:
org.mmbase.bridge.BridgeException - if the cloud was not found

getCloudNumber

public static int getCloudNumber(org.mmbase.bridge.Cloud nameServerCloud,
                                 java.lang.String name)
                          throws org.mmbase.bridge.BridgeException
Parameters:
nameServerCloud - the cloud containing the cloud nodes to use
name - the name of the cloud ( in the cloud list)
Throws:
org.mmbase.bridge.BridgeException - if the cloud was not found

getCloudByAlias

public static org.mmbase.bridge.Cloud getCloudByAlias(org.mmbase.bridge.Cloud nameServerCloud,
                                                      java.lang.String alias)
                                               throws org.mmbase.bridge.BridgeException
Parameters:
nameServerCloud - name cloud containing the cloud nodes to use
alias - node number of alias of the cloud node
Throws:
org.mmbase.bridge.BridgeException - if the node does not exist

getCloud

public static org.mmbase.bridge.Cloud getCloud(org.mmbase.bridge.Cloud nameServerCloud,
                                               int number)
                                        throws org.mmbase.bridge.BridgeException
Parameters:
nameServerCloud - name cloud containing the cloud nodes to use
number - the node number of the cloud in the nameServerCloud
Throws:
org.mmbase.bridge.BridgeException

getCloudNumber

public static int getCloudNumber(org.mmbase.bridge.Cloud nameServerCloud,
                                 org.mmbase.bridge.Cloud cloud)
gets the node-number of the remote cloud in the list in the cloud-builder this routine depends on unique and consistent names for clouds in the cloud builder see also applications/Publisher/builders/cloud.xml

Parameters:
nameServerCloud - Cloud where the number shoud be found
cloud - Cloud to determine the number from
Returns:
Number of the remoteCloud as used in localCloud


Copyright © 2003-2004 mmapps. All Rights Reserved.