Search in sources :

Example 1 with StartupTrafficMonitorCommand

use of com.cloud.agent.api.StartupTrafficMonitorCommand in project cloudstack by apache.

the class TrafficSentinelResource method initialize.

@Override
public StartupCommand[] initialize() {
    StartupTrafficMonitorCommand cmd = new StartupTrafficMonitorCommand();
    cmd.setName(_name);
    cmd.setDataCenter(_zoneId);
    cmd.setPod("");
    cmd.setPrivateIpAddress(_ip);
    cmd.setStorageIpAddress("");
    cmd.setVersion(TrafficSentinelResource.class.getPackage().getImplementationVersion());
    cmd.setGuid(_guid);
    return new StartupCommand[] { cmd };
}
Also used : StartupCommand(com.cloud.agent.api.StartupCommand) StartupTrafficMonitorCommand(com.cloud.agent.api.StartupTrafficMonitorCommand)

Aggregations

StartupCommand (com.cloud.agent.api.StartupCommand)1 StartupTrafficMonitorCommand (com.cloud.agent.api.StartupTrafficMonitorCommand)1