public static APIChangeClusterStateMsg __example__() { APIChangeClusterStateMsg msg = new APIChangeClusterStateMsg(); msg.setUuid(uuid()); msg.setStateEvent(ClusterStateEvent.disable.toString()); return msg; }
public static ClusterInventory valueOf(ClusterVO vo) { ClusterInventory inv = new ClusterInventory(); inv.setName(vo.getName()); inv.setDescription(vo.getDescription()); inv.setUuid(vo.getUuid()); inv.setState(vo.getState().toString()); inv.setCreateDate(vo.getCreateDate()); inv.setHypervisorType(vo.getHypervisorType()); inv.setZoneUuid(vo.getZoneUuid()); inv.setType(vo.getType()); inv.setLastOpDate(vo.getLastOpDate()); return inv; }
public static APISearchClusterReply __example__() { APISearchClusterReply reply = new APISearchClusterReply(); //seems deprecated return reply; }
public static APICreateClusterMsg __example__() { APICreateClusterMsg msg = new APICreateClusterMsg(); msg.setClusterName("cluster1"); msg.setDescription("test"); msg.setHypervisorType("KVM"); msg.setZoneUuid(uuid()); return msg; }
@Override public String call(ClusterInventory arg) { return arg.getUuid(); } });
protected void changeClusterStateByLocalMsg(ChangeClusterStateMsg msg) { ChangeClusterStateReply reply = new ChangeClusterStateReply(); try { ClusterInventory inv = changeState(ClusterStateEvent.valueOf(msg.getStateEvent())); reply.setInventory(inv); bus.reply(msg, reply); } catch (Exception e) { bus.logExceptionWithMessageDump(msg, e); bus.replyErrorByMessageType(msg, e); } }
public static APIDeleteClusterEvent __example__() { APIDeleteClusterEvent event = new APIDeleteClusterEvent(); event.setSuccess(true); return event; }
public static APIDeleteClusterMsg __example__() { APIDeleteClusterMsg msg = new APIDeleteClusterMsg(); msg.setUuid(uuid()); return msg; }
@Override public void after(APIEvent evt) { ntfy("Changed the state to %s", ((APIChangeClusterStateEvent)evt).getInventory().getState()) .resource(uuid, ClusterVO.class.getSimpleName()) .messageAndEvent(that, evt).done(); } };
public static APIListClusterReply __example__() { APIListClusterReply reply = new APIListClusterReply(); //deprecated return reply; }
public static APIGetClusterReply __example__() { APIGetClusterReply reply = new APIGetClusterReply(); //deprecated return reply; }
@Override public void run(ClusterDeleteExtensionPoint arg) { arg.beforeDeleteCluster(cinv); } });
public static APIGetClusterMsg __example__() { APIGetClusterMsg msg = new APIGetClusterMsg(); //deprecated return msg; }
@Override public void run(ClusterUpdateOSExtensionPoint arg) { arg.beforeUpdateClusterOS(cls); } });
@Override public String getClusterUuid() { return getUuid(); } }
@Override public void run(ClusterDeleteExtensionPoint arg) { arg.afterDeleteCluster(cinv); } });
@Override public void run(ClusterUpdateOSExtensionPoint arg) { arg.afterUpdateClusterOS(cls); } });
@Override public void run(ClusterChangeStateExtensionPoint extp) { extp.beforeChangeClusterState(cinv, event, next); } });
@Override public String call(ClusterInventory arg) { return arg.getUuid(); } });
@Override public String call(ClusterInventory arg) { return arg.getUuid(); } });