|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.Engage
public final class Engage
Engage supplies login and logout functions to the SE. The handle returned by the login serves all of the Policy and Subscriber API functions which directly affect the SE.
PolicyAPI| Field Summary | |
|---|---|
static byte |
APPLY_FLAG_NO_OVERWRITE
Applying a Policy or a SubscriberPolicy will not overwrite the parameters of another Policy or SubscriberPolicy, respectively. |
static byte |
APPLY_FLAG_OVERWRITE
Applying a Policy or a SubscriberPolicy will overwrite any prior values in the PolicyDomain. |
static java.lang.String |
CAPACITY_CONTROL_FUNCTIONALITY
Deprecated. license system was deprecated |
static byte |
LICENSE_CAPACITY_CONTROL
Deprecated. license system was deprecated |
static byte |
LICENSE_TIERED_CONTROL
Deprecated. license system was deprecated |
static byte |
LICENSE_VIEW
Deprecated. license system was deprecated |
static java.lang.String |
TIERED_CONTROL_FUNCTIONALITY
Deprecated. license system was deprecated |
static java.lang.String |
VERSION_STRING
Engage version String. |
| Method Summary | |
|---|---|
static void |
activateLicense(java.lang.String user,
java.lang.String key)
Deprecated. license system was deprecated |
static void |
addNotificationListener(NotificationListener listener)
Subscribs the specific Engage notification listener to recieve notifications regarding all the operations performed by the Engage API. |
static void |
fireErrorNotification(java.lang.String msg)
|
static void |
fireNotification(Notification notification)
Used to send a notification to the listeners defined by the function addNotificationListener(NotificationListener) |
static void |
fireNotification(java.lang.String msg)
|
static void |
fireNotification(java.lang.String msg,
java.lang.Object source)
|
static void |
fireWarningNotification(java.lang.String msg)
|
static void |
fireWarningNotification(java.lang.String msg,
java.lang.Object source)
|
static java.io.InputStream |
getDefaultProtocolFamilies()
|
static byte |
getLicenseType()
Deprecated. license system was deprecated |
static java.lang.String |
getUserHomePcubeFolderName()
return user home pcube folder name |
static boolean |
isAllowedFullyFunctionalMode()
Deprecated. license system was deprecated |
static boolean |
isPolicyCompatibleWithLicense(Policy policy)
Deprecated. Licensing has been deprecated since 3.0.0 |
static Connection |
login(com.pcube.management.framework.client.SessionObject sessionObject)
Connects to a device by using an existing SessionObject. |
static Connection |
login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password)
Deprecated. use P-Cube SM API instead |
static Connection |
login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password,
byte deviceType)
Connects to the P-cube device. |
static Connection |
login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password,
byte deviceType,
int prpcPort)
Connects to the P-cube device. |
static void |
logout(Connection connection)
Disconnects from the SE. |
static void |
removeNotificationListener(NotificationListener listener)
Unsubscribes the Engage listener from recieving notifications regarding Engage API operations. |
java.lang.String |
toString()
Automatically generated method: toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TIERED_CONTROL_FUNCTIONALITY
public static final java.lang.String CAPACITY_CONTROL_FUNCTIONALITY
public static final byte APPLY_FLAG_NO_OVERWRITE
public static final byte APPLY_FLAG_OVERWRITE
public static final byte LICENSE_VIEW
public static final byte LICENSE_CAPACITY_CONTROL
public static final byte LICENSE_TIERED_CONTROL
public static final java.lang.String VERSION_STRING
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic static final java.lang.String getUserHomePcubeFolderName()
public static Connection login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password)
throws ConnectionFailedException
logout(Connection)
action.
hostName - the SM host addressuserName - the user namepassword - the password
ConnectionFailedException - if the login failed.
The failure reason can be retrieved from the ConnectionFailedException.
public static Connection login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password,
byte deviceType)
throws ConnectionFailedException
Connection.SE_DEVICEto connect to the SE. logout(Connection)action.
hostName - the device host addressuserName - the user namepassword - the passworddeviceType - the device type
ConnectionFailedException - if the login failed.
The failure reason can be retrieved from the ConnectionFailedException.
public static Connection login(java.lang.String hostName,
java.lang.String userName,
java.lang.String password,
byte deviceType,
int prpcPort)
throws ConnectionFailedException
Connection.SE_DEVICEto connect to the SE. logout(Connection)action.
hostName - the device host addressuserName - the user namepassword - the passwordprpcPort - the PRPC PortdeviceType - the device type
ConnectionFailedException - if the login failed.
The failure reason can be retrieved from the ConnectionFailedException.public static Connection login(com.pcube.management.framework.client.SessionObject sessionObject)
logout(Connection)action.
sessionObject - the SessionObject to the Engage device
public static void logout(Connection connection)
connection - the Connection which keeps a handle to the connection to the SE
public static void activateLicense(java.lang.String user,
java.lang.String key)
user - the user namekey - the user's unique key
java.lang.IllegalArgumentException - if the registration key is invalidpublic static byte getLicenseType()
LICENSE_VIEW,
LICENSE_CAPACITY_CONTROL,
LICENSE_TIERED_CONTROLpublic static void addNotificationListener(NotificationListener listener)
listener - the NotificationListenerpublic static void removeNotificationListener(NotificationListener listener)
listener - the NotificationListener to be removed
java.lang.IllegalArgumentException - if the listener was never subscribed to listen to Engage notifictionspublic static void fireNotification(Notification notification)
addNotificationListener(NotificationListener)
notification - the notification to be sentpublic static boolean isPolicyCompatibleWithLicense(Policy policy)
policy -
public static boolean isAllowedFullyFunctionalMode()
public static void fireNotification(java.lang.String msg,
java.lang.Object source)
msg - source -
public static void fireWarningNotification(java.lang.String msg,
java.lang.Object source)
public static java.io.InputStream getDefaultProtocolFamilies()
public static void fireNotification(java.lang.String msg)
public static void fireWarningNotification(java.lang.String msg)
public static void fireErrorNotification(java.lang.String msg)
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||