-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrowseWML.cs
41 lines (37 loc) · 1.46 KB
/
BrowseWML.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using COM.IBM.ML.ILOG;
using System;
public class BrowseWML
{
public static void Main()
{
log4net.Config.BasicConfigurator.Configure();
log4net.ILog logger =
log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
logger.Info("Starting the example");
logger.Info("Credentials are " + Credentials.GetCredentials());
Connector connector = null;
try
{
Credentials credentials = Credentials.GetCredentials();
connector = WMLHelper.GetConnector(credentials);
connector.InitToken();
logger.Info("Browsing WML");
logger.Info(" Instances = " + connector.GetInstances().ToString());
logger.Info(" Spaces = " + connector.GetDeploymentSpaces().ToString());
logger.Info(" Software Specifications = " + connector.GetSoftwareSpecifications().ToString());
logger.Info("Browsing WML by space id");
logger.Info(" Deployments " + connector.GetDeployments().ToString());
logger.Info(" Models " + connector.GetModels().ToString());
logger.Info(" Jobs " + connector.GetDeploymentJobs().ToString());
logger.Info(" Storage " + connector.GetStorage().ToString());
}
catch (Exception e)
{
logger.Info("Something bad happened " + e.Message);
}
finally
{
connector.End();
}
}
}